Interface DirectedGraph<N>

    • Method Detail

      • getHeads

        List<N> getHeads()
        Returns a list of entry points for this graph.
      • getTails

        List<N> getTails()
        Returns a list of exit points for this graph.
      • getPredsOf

        List<N> getPredsOf​(N s)
        Returns a list of predecessors for the given node in the graph.
      • getSuccsOf

        List<N> getSuccsOf​(N s)
        Returns a list of successors for the given node in the graph.
      • size

        int size()
        Returns the node count for this graph.
      • iterator

        Iterator<N> iterator()
        Returns an iterator for the nodes in this graph. No specific ordering of the nodes is guaranteed.
        Specified by:
        iterator in interface Iterable<N>