Last active
September 26, 2015 20:20
-
-
Save ralfbecher/a44eb3a4ecdafacfd676 to your computer and use it in GitHub Desktop.
QlikView transform matrix into adjacencylist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// matrix has numeric field names starting from "0" and a record number: | |
for i=0 to 34 | |
for j=0 to 34 | |
adj_list: | |
LOAD $(i) as node1, | |
$(j) as node2, | |
"$(j)" as measure | |
resident matrix | |
Where rec - 1= $(i) and "$(j)" > 0; | |
next | |
next |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment