GraphFactory<V, E> class
Factory methods to create common graphs types efficiently.
Constructors
-
GraphFactory({bool isDirected = true, bool isUnmodifiable = false, V vertexProvider(int index)?, E edgeProvider(V source, V target)?, Random? random, StorageStrategy<
V> ? vertexStrategy})
Properties
- edgeProvider → (E Function(V source, V target)?)
-
Optional provider of edge data.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isDirected → bool
-
Flag indicating if the graph is directed.
final
- isUnmodifiable → bool
-
Flag indicating if the resulting graph can be further modified.
final
- random → Random
-
Random generator used when creating random graphs.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- vertexProvider → (V Function(int index)?)
-
Optional provider of vertex data.
final
-
vertexStrategy
→ StorageStrategy<
V> -
The strategy describing how vertices are stored.
final
Methods
-
newBuilder(
) → GraphBuilder< V, E> - Internal graph builder based on this configuration.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited