fromPath method

Graph<V, E> fromPath(
  1. Iterable<V> chain, {
  2. E? value,
})

Creates a Graph from a Iterable of chains.

Implementation

Graph<V, E> fromPath(Iterable<V> chain, {E? value}) =>
    fromPaths([chain], value: value);