Edge class

Base class for graph edges.

@author {@link https://github.com/Mugen87|Mugen87}

Implementers

Constructors

Edge([int from = -1, int to = -1, double cost = 0])
Constructs a new edge.

Properties

cost double
getter/setter pair
from int
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
to int
getter/setter pair

Methods

clone() Edge
Creates a new edge and copies all values from this edge.
copy(Edge edge) Edge
Copies all values from the given edge to this edge.
fromJSON(Map<String, dynamic> json) Edge
Restores this instance from the given JSON object.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJSON() Map<String, dynamic>
Transforms this instance into a JSON object.
toString() String
A string representation of this object.
inherited

Operators

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