CollectionGraphFactoryExtension<V, E> extension
Methods
-
fromPath(Iterable<V> chain, {E? value})
→ Graph<V, E>
-
Creates a Graph from a Iterable of chains.
-
fromPaths(Iterable<Iterable<V>> chains, {E? value})
→ Graph<V, E>
-
Creates a Graph from a Iterable of chains.
-
fromPredecessorFunction(Iterable<V> vertices, Iterable<V> predecessors(V vertex))
→ Graph<V, E>
-
Creates a Graph from start
vertices
and a function predecessors
returning its preceding vertices (incoming adjacency).
-
fromPredecessors(Map<V, Iterable<V>?> mapping)
→ Graph<V, E>
-
Creates a Graph from a Map of vertices pointing to an Iterable of
preceding vertices (incoming adjacency).
-
fromSuccessorFunction(Iterable<V> vertices, Iterable<V> successors(V vertex))
→ Graph<V, E>
-
Creates a Graph from start
vertices
and a function successors
returning its succeeding vertices (outgoing adjacency).
-
fromSuccessors(Map<V, Iterable<V>?> mapping)
→ Graph<V, E>
-
Creates a Graph from a Map of vertices pointing to an Iterable of
succeeding vertices (outgoing adjacency).