powered by
Shortest paths between one vertex and all other vertices.
shortPath(model=NULL,edges=NULL,v=NULL,p=NULL)
gRapHD object.
gRapHD
matrix with 2 columns, each row representing one edge, and each column one of the vertices in the edge. Column 1 contains the vertex with lower index.
vertex.
number of vertices. If NULL, the number of vertices will be considered as equal the maximum vertices' index, i.e., p=max(edges).
NULL
p=max(edges)
with length equal p, with the shortest path length from v to each other vertex.
p
v
Calculates the shortest path between the vertex v and all other vertices.
# NOT RUN { data(dsCont) m1 <- minForest(dsCont,homog=TRUE,forbEdges=NULL,stat="LR") shortPath(edges=m1@edges,v=1) # }
Run the code above in your browser using DataLab