Class KGraphIterators

java.lang.Object
de.cau.cs.kieler.klighd.kgraph.util.KGraphIterators

public final class KGraphIterators extends Object
Collection of Iterators for KGraphs.
Author:
nbw
  • Method Details

    • getKGraphElementIterator

      public static Iterator<KGraphElement> getKGraphElementIterator(KGraphElement root, boolean includeRoot)
      Iterator that returns all KGraphElements contained below the given KGraphElement.
      Parameters:
      root - The starting KGraphElement of the iteration.
      includeRoot - Flag to indicate whether the root KGraphElement should be included in the iteration.
      Returns:
      The iterator for all KGraphElements
    • getKNodeIterator

      public static Iterator<KNode> getKNodeIterator(KNode root, boolean includeRoot)
      Iterator for all contained KNodes below the passed root KNode.
      Parameters:
      root - The starting KNode for the iterator.
      includeRoot - Flag to indicate whether the root KNode should be included in the iteration.
      Returns:
      The iterator for all KNodes.