Skip to contents

Find the shortest path from one node to many

Not all graphs support this function. Currently only DirectedAcyclicGraph supports this.

Usage

find_path_one_to_many(graph, from, to)

Arguments

graph

A graph object

from

The starting node of the path

to

A character vector of nodes

Value

A list of paths