Learn R Programming

simPATHy (version 0.6)

generatePath: Find one path in a graph

Description

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

Usage

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