Fastest way to traverse all edge of a directed attributed graph which stores in adjacency matrix

659 views Asked by At

I have a adjacency matrix which represent a directed attributed graph. Now I want to traverse all of the edge of the graph. One way is too traverse all rows of the matrix but my problem is that when the number of rows are more than 10000 the performance of traversing edges degrade significantly. So I want to know is there any efficient way to do that?

1

There are 1 answers

0
object On