DirectedEdge class abstract
An implementation of an Edge in which a directionality exists.
- Inheritance
- Implementers
Constructors
- DirectedEdge(Vertex source, Vertex target, 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
- source → Vertex
-
Source Vertex of your current DirectedEdge
no setter
- target → Vertex
-
Target Vertex of your current DirectedEdge
no setter
- weight → double
-
Weight of this edge.
finalinherited
Methods
-
copy(
) → Edge -
Returns a copy of the instance of your object
inherited
-
equalToEdge(
Edge other) → bool -
For checking if an Edge contains the same vertices as
other
.inherited -
equalToVertices(
Vertex source, Vertex target) → bool -
For checking if an Edge contains the
source
andtarget
Vertices. This method has a directionality.source
andtarget
are not interchangeable.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Serializes an object
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited