generatePath: Find one path in a graph

Description Usage Arguments Value See Also

View source: R/main_function.R

Description

Find one shortest path in the graph between two given nodes.

Usage

1
generatePath(graph, from = NULL, to = NULL)

Arguments

graph

A directed or undirected graph represented as a graphNEL object.

from, to

The nodes (character node id) giving the first and the last nodes of the path to be calculated. If NULL then the from and to nodes are randomly choosen.

Value

A list of edges in edgesList format (see gRbase).

See Also

get.all.shortest.paths


simPATHy documentation built on June 1, 2021, 5:06 p.m.