gf_shortest_paths: Shortest paths

Description Usage Arguments Examples

View source: R/gf_shortest_paths.R

Description

Computes shortest paths from every vertex to the given set of landmark vertices. Note that this takes edge direction into account.

Usage

1
gf_shortest_paths(x, landmarks, ...)

Arguments

x

An object coercable to a GraphFrame (typically, a gf_graphframe).

landmarks

IDs of landmark vertices.

...

Optional arguments, currently not used.

Examples

1
2
3
4
5
## Not run: 
g <- gf_friends(sc)
gf_shortest_paths(g, landmarks = c("a", "d"))

## End(Not run)

rstudio/graphframes documentation built on May 17, 2019, 8:44 p.m.