Edge constructor

Edge([
  1. int from = -1,
  2. int to = -1,
  3. double cost = 0
])

Constructs a new edge.

Implementation

Edge( [this.from = - 1, this.to = - 1, this.cost = 0] );