Edge class abstract

The representation of an edge.

Implementers

Constructors

Edge(Vertex a, Vertex b, double weight)

Properties

a Vertex
One of the points of the edge
getter/setter pair
b Vertex
One of the points of the edge
getter/setter pair
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.
final

Methods

copy() Edge
Returns a copy of the instance of your object
equalToEdge(Edge other) bool
For checking if an Edge contains the same vertices as other.
equalToVertices(Vertex a, Vertex b) bool
For checking if an Edge contains Vertices a and b.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Serializes an object
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited