asUnweighted method

  1. @override
Walkable<E> asUnweighted()
override

Returns a view of this walkable as an unweighted walkable.

The view is a Walkable where the edges have no associated data, which can be useful when the edge data is not needed, i.e. for algorithms that do not require or expect edge data.

If this walkable is already unweighted, it returns itself.

Implementation

@override
Walkable<E> asUnweighted() => _AsUnweightedWalkable(this);