UndirectedEdge class
Abstract class extending Edge. When building an undirected Edge this class should be extended. An undirected edge in a graph has ne directionality. That means that using a Vertex a or b as a starting point will not change if an operation is true or not.
- Inheritance
- Implementers
Constructors
- UndirectedEdge(Vertex a, Vertex b, double weight)
Properties
- a ↔ Vertex
-
One of the points of the edge
getter/setter pairinherited
- b ↔ Vertex
-
One of the points of the edge
getter/setter pairinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- weight → double
-
Weight of this edge.
finalinherited
Methods
-
copy(
) → UndirectedEdge -
Returns a copy of the instance of your object
override
-
equalToEdge(
Edge other) → bool -
For checking if an Edge contains the same vertices as
other
.inherited -
equalToVertices(
Vertex a, Vertex b) → bool -
For checking if an Edge contains Vertices
a
andb
.inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
reversedEdge(
) → UndirectedEdge -
toJson(
) → Map< String, dynamic> -
Serializes an object
override
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited