WeightedEdge<V> class final Graphs

A weighted graph edge connecting two nodes.

In UndirectedGraphs, the edge is an unordered pair of nodes.

Inheritance
Annotations

Constructors

WeightedEdge(V source, V target, double weight)
Creates a new weighted edge from source to target with a weight.
const

Properties

hashCode int
The hash code for this object.
no setteroverride
reversed WeightedEdge<V>
The edge with the source and target nodes reversed.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
source → V
The source node of the edge.
finalinherited
target → V
The target node of the edge.
finalinherited
weight double
The weight of the edge.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

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