SimpleUndirectedEdge class

A simple implementation of an UndirectedEdge. For quick and easy use.

Inheritance

Constructors

SimpleUndirectedEdge(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() SimpleUndirectedEdge
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 and b.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
reversedEdge() SimpleUndirectedEdge
override
toJson() Map<String, dynamic>
Serializes an object
override
toString() String
A string representation of this object.
inherited

Operators

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