I have a directed graph with an incidence matrix like this:
AP=[1,0,0,0,0,0,0,0;-1,0,1,1,1,0,0,0;0,0,-1,0,0,1,0,0;0,0,0,-1,0,0,0,0;0,0,0,0,-1,0,0,0;0,0,0,0,0,-1,0,0]
AP =
1 0 0 0 0 0 0 0 -1 0 1 1 1 0 0 0 0 0 -1 0 0 1 0 0 0 0 0 -1 0 0 0 0 0 0 0 0 -1 0 0 0 0 0 0 0 0 -1 0 0
How can I construct an adjacency list with this information? Thank you!
Best Answer