Description Usage Arguments Details Value
View source: R/functions_graph.R
Get all of shortest paths from initial states to goal states (or to specified states). It may take a long time.
1 | getAllShortestPaths(g, target = NULL)
|
g |
an 'igraph' object generated by |
target |
a numerical vector, which gives IDs of target states. NULL means IDs of goal states. |
see makeGraph
for example code.
a list with following elements:
a list of character vectors. ith element gives states in the ith path.
a list of character vectors. ith element gives transitions in the ith path.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.