类 CyclePresentException

所有已实现的接口:
Serializable

public final class CyclePresentException extends IllegalArgumentException
An exception thrown for graphs with cycles as an argument for topological sort.
另请参阅:
  • 字段详细资料

    • serialVersionUID

      private static final long serialVersionUID
      另请参阅:
    • cycles

      private final Set<Set<?>> cycles
  • 构造器详细资料

    • CyclePresentException

      CyclePresentException(Set<Set<?>> cycles)
      Creates the exception.
      参数:
      cycles - the cycles present
  • 方法详细资料

    • getCycles

      public <T> Set<Set<T>> getCycles()
      Accesses the cycles present in the sorted graph.

      Each element in the outer set represents a cycle; each cycle, or the inner set, forms a strongly connected component with two or more elements.

      类型参数:
      T - the type of node sorted
      返回:
      the cycles identified