class WeightedEdge extend Edge weight: number; [Symbol.toPrimitive](hint: any): any;}
number
any
A method that converts a WeightedEdge object to a corresponding primitive value. Called by the ToPrimitive abstract operation.
weight