Description Usage Arguments Value Author(s) References See Also Examples
determine a path between two nodes in a graph,
using output of dijkstra.sp
.
1 | extractPath(s, f, pens)
|
s |
index of starting node in nodes vector
of the graph from which |
f |
index of ending node in nodes vector |
pens |
predecessor index vector as returned
in the |
numeric vector of indices of nodes along shortest path
Vince Carey <stvjc@channing.harvard.edu>
Boost Graph Library ( www.boost.org/libs/graph/doc/index.html )
The Boost Graph Library: User Guide and Reference Manual; by Jeremy G. Siek, Lie-Quan Lee, and Andrew Lumsdaine; (Addison-Wesley, Pearson Education Inc., 2002), xxiv+321pp. ISBN 0-201-72914-8
1 2 3 | data(FileDep)
dd <- dijkstra.sp(FileDep)
extractPath(1,9,dd$pen)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.