Description Usage Arguments Value See Also Examples
Translates a sequence of nodes from a G* graph, generated with any of the available transformations, to a sequence of nodes in terms of the original G.
1 | parse_vpath(vpath)
|
vpath |
A vector of character type, representing a path as a sequence of nodes. The nodes are supposed to belong to an original graph G, but be written in terms of G*. |
A new vector of character type, representing the same path as vpath
but with
the nodes names translated to the original graph G's names.
Other Parsers: direct_graph
,
get_all_nodes
1 2 3 4 5 6 | # Obtain the vpath from any way, an algorithm or random walk.
# Call the parsing function
translated_vpath <- parse_vpath( c("s|u", "s|u|v", "u|v|y", "t") )
# Print the result
translated_vpath
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.