code: public void traverse(X x, Function<? super X, ? extends Collection<X>> edges)
      {
          traverseS(x, (y)->edges.apply(y).stream());
      }
docs: This algorithm traverses all vertices and all edges once.
  @param x
  @param edges