Class SelfLoopAddedEdgeManager<T>

  • All Implemented Interfaces:
    EdgeManager<T>

    public class SelfLoopAddedEdgeManager<T>
    extends java.lang.Object
    implements EdgeManager<T>
    • Constructor Detail

      • SelfLoopAddedEdgeManager

        public SelfLoopAddedEdgeManager​(EdgeManager<T> original)
    • Method Detail

      • getPredNodes

        public java.util.Iterator<T> getPredNodes​(T n)
        Description copied from interface: EdgeManager
        Return an Iterator over the immediate predecessor nodes of n This method never returns null.
        Specified by:
        getPredNodes in interface EdgeManager<T>
        Returns:
        an Iterator over the immediate predecessor nodes of this Node.
      • getSuccNodes

        public java.util.Iterator<T> getSuccNodes​(T n)
        Description copied from interface: EdgeManager
        Return an Iterator over the immediate successor nodes of n

        This method never returns null.

        Specified by:
        getSuccNodes in interface EdgeManager<T>
        Returns:
        an Iterator over the immediate successor nodes of n
      • getSuccNodeCount

        public int getSuccNodeCount​(T n)
        Description copied from interface: EdgeManager
        Return the number of immediate successor nodes of this Node in the Graph
        Specified by:
        getSuccNodeCount in interface EdgeManager<T>
        Returns:
        the number of immediate successor Nodes of this Node in the Graph.
      • removeEdge

        public void removeEdge​(T src,
                               T dst)
                        throws java.lang.UnsupportedOperationException
        Specified by:
        removeEdge in interface EdgeManager<T>
        Throws:
        java.lang.UnsupportedOperationException
      • removeAllIncidentEdges

        public void removeAllIncidentEdges​(T node)
                                    throws java.lang.UnsupportedOperationException
        Specified by:
        removeAllIncidentEdges in interface EdgeManager<T>
        Throws:
        java.lang.UnsupportedOperationException
      • removeIncomingEdges

        public void removeIncomingEdges​(T node)
                                 throws java.lang.UnsupportedOperationException
        Specified by:
        removeIncomingEdges in interface EdgeManager<T>
        Throws:
        java.lang.UnsupportedOperationException
      • removeOutgoingEdges

        public void removeOutgoingEdges​(T node)
                                 throws java.lang.UnsupportedOperationException
        Specified by:
        removeOutgoingEdges in interface EdgeManager<T>
        Throws:
        java.lang.UnsupportedOperationException
      • hasEdge

        public boolean hasEdge​(T src,
                               T dst)
        Specified by:
        hasEdge in interface EdgeManager<T>