weight

abstract val weight: W?

This edge's weight, or null if the graph it belongs to is unweighted (or this edge has no weight).