Interface EdgeManager<T>

    • Method Detail

      • getPredNodes

        java.util.Iterator<T> getPredNodes​(T n)
        Return an Iterator over the immediate predecessor nodes of n This method never returns null.
        Returns:
        an Iterator over the immediate predecessor nodes of this Node.
      • getPredNodeCount

        int getPredNodeCount​(T n)
        Return the number of immediate predecessor nodes of n
        Returns:
        the number of immediate predecessors of n.
      • getSuccNodes

        java.util.Iterator<T> getSuccNodes​(T n)
        Return an Iterator over the immediate successor nodes of n

        This method never returns null.

        Returns:
        an Iterator over the immediate successor nodes of n
      • getSuccNodeCount

        int getSuccNodeCount​(T N)
        Return the number of immediate successor nodes of this Node in the Graph
        Returns:
        the number of immediate successor Nodes of this Node in the Graph.
      • addEdge

        void addEdge​(T src,
                     T dst)
      • removeEdge

        void removeEdge​(T src,
                        T dst)
                 throws java.lang.UnsupportedOperationException
        Throws:
        java.lang.UnsupportedOperationException
      • removeAllIncidentEdges

        void removeAllIncidentEdges​(T node)
                             throws java.lang.UnsupportedOperationException
        Throws:
        java.lang.UnsupportedOperationException
      • removeIncomingEdges

        void removeIncomingEdges​(T node)
                          throws java.lang.UnsupportedOperationException
        Throws:
        java.lang.UnsupportedOperationException
      • removeOutgoingEdges

        void removeOutgoingEdges​(T node)
                          throws java.lang.UnsupportedOperationException
        Throws:
        java.lang.UnsupportedOperationException
      • hasEdge

        boolean hasEdge​(T src,
                        T dst)