Edge constructor

Edge(
  1. Vertex a,
  2. Vertex b,
  3. double weight
)

Implementation

Edge(this.a, this.b, this.weight)
    : assert(!weight.isNegative, 'weight is not allowed to be negative.');