library(graphframes)
<- gf_friends(sc)
g gf_shortest_paths(g, landmarks = c("a", "d"))
Shortest paths
R/gf_shortest_paths.R
gf_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
Arguments | Description |
---|---|
x | An object coercable to a GraphFrame (typically, a gf_graphframe ). |
landmarks | IDs of landmark vertices. |
… | Optional arguments, currently not used. |