SimpleDirectedEdge class
A Simple implementation for quick use an a directed edge. A directed edge has a source -> target relation which does not work the other way around.
- Inheritance
-
- Object
- Edge
- DirectedEdge
- SimpleDirectedEdge
Constructors
- SimpleDirectedEdge(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 setterinherited
- target → Vertex
-
Target Vertex of your current DirectedEdge
no setterinherited
- weight → double
-
Weight of this edge.
finalinherited
Methods
-
copy(
) → Edge -
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 source, Vertex target) → bool -
For checking if an Edge contains the
source
andtarget
Vertices. This method has a directionality.source
andtarget
are not interchangeable.inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
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