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