igraph

How do I get the vertices on the shortest path using igraph?

How do I get the vertices on the shortest path using igraph? Question: I’m using igraph to generate a matrix of shortest path distances between pairs of vertices but I can’t figure out how to return the vertices. So far I have: path_length_matrix = ig_graph.shortest_paths_dijkstra(None,None,”distance”, “ALL”) I’m looking for a function which returns a matrix …

Total answers: 3