code: @Override
      public Collection<N> getNodes() {
          List<N> nodes = new ArrayList<>();
          Iterables.addAll(nodes, GraphTraversal.breadthFirstOrder(this, Collections.singleton(root)));
          return nodes;
      }
docs: /*
  AutomataLib Graph API