Graph class
The topology of a graph.
Use the various members of this class to access different representations of the topology. After initialisation, the members are unmodifiable so as to ensure that the topology information is consistent across representations.
Constructors
- Graph.fromAdjacencyList(AdjacencyList adjacencyList)
- Create a Graph using its adjacency list.
- Graph.fromAdjacencyListString(String adjacencyListString)
-
Create a Graph using a String format of its adjacency list.
factory
- Graph.fromEdgeList(EdgeList edgeList)
- Create a Graph using its edge list.
- Graph.fromEdgeListString(String edgeListString)
-
Create a Graph using a String format of its edge list.
factory
Properties
- adjacencyList ↔ AdjacencyList
-
An adjacency list
representation of the graph's topology.
latefinal
- edgeList ↔ EdgeList
-
An edge list representation of
the graph's topology.
latefinal
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
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