docs: public boolean containsCycle() {
          for (Iterator<EdgeType> i = graph.edgeIterator(); i.hasNext();) {
              EdgeType edge = i.next();
              if (getDFSEdgeType(edge) == BACK_EDGE) {
                  return true;
              }
          }
          return false;
      }