Edge<V, E> class

An edge withing a graph connects a source and a target vertex.

Edges are typically ephemeral objects and only created on demand.

Two edges are considered equal if they have matching source and target vertices; the value is not used for comparison.

Mixed in types

Constructors

Edge(V source, V target, {E? value})
Constructs

Properties

defaultToStringPrinter ObjectPrinter
Override to configure the empty ObjectPrinter.
no setterinherited
hashCode int
The hash code for this object.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
source → V
Origin vertex of this edge.
final
target → V
Destination vertex of this edge.
final
toStringPrinter ObjectPrinter
Override and call super to add values to the ObjectPrinter.
no setteroverride
value → E
Edge specific data.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
Standard toString implementation. Do not override, instead implement toStringPrinter to customize.
inherited

Operators

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