WeightedEdge<V> constructor

const WeightedEdge<V>(
  1. V source,
  2. V target,
  3. double weight
)

Creates a new weighted edge from source to target with a weight.

Implementation

const WeightedEdge(super.source, super.target, this.weight);