gf_shortest_paths {graphframes} | R Documentation |
Shortest paths
Description
Computes shortest paths from every vertex to the given set of landmark vertices. Note that this takes edge direction into account.
Usage
gf_shortest_paths(x, landmarks, ...)
Arguments
x |
An object coercable to a GraphFrame (typically, a
|
landmarks |
IDs of landmark vertices. |
... |
Optional arguments, currently not used. |
Examples
## Not run:
g <- gf_friends(sc)
gf_shortest_paths(g, landmarks = c("a", "d"))
## End(Not run)
[Package graphframes version 0.1.2 Index]