Return the Shortest-Path from the given node to other nodes

ShortestPathFromNode(g, n, Nodes)

Arguments

g

an igraph object obtained from adjacency matrix

n

integer the node id

Nodes

scalar, number of nodes

Value

A igraph object containing the list of shortest paths