where method

Graph<V, E> where({
  1. required bool vertexPredicate(
    1. V vertex
    ),
})

Returns a new lazy Graph with all vertices that satisfy the vertexPredicate.

Implementation

Graph<V, E> where({required bool Function(V vertex) vertexPredicate}) =>
    WhereGraph(this, vertexPredicate);