Interface LabeledEdgeManager<T,​U>

    • Method Detail

      • getDefaultLabel

        U getDefaultLabel()
        Sets the default object used as label for operations where no specific edge label is provided. This is due to compatibility with the EdgeManager interface
      • getPredNodes

        java.util.Iterator<T> getPredNodes​(T N,
                                           U label)
        Return an Iterator over the immediate predecessor nodes of this Node in the Graph on edges with some label. This method never returns null.
        Returns:
        an Iterator over the immediate predecessor nodes of this Node.
      • getPredLabels

        java.util.Iterator<? extends U> getPredLabels​(T N)
        Returns:
        the labels on edges whose destination is N
      • getPredNodeCount

        int getPredNodeCount​(T N,
                             U label)
        Return the number of immediate predecessor nodes of this Node in the Graph on edges with some label.
        Returns:
        the number of immediate predecessor Nodes of this Node in the Graph.
      • getSuccNodes

        java.util.Iterator<? extends T> getSuccNodes​(T N,
                                                     U label)
        Return an Iterator over the immediate successor nodes of this Node in the Graph on edges with some label.

        This method never returns null.

        Returns:
        an Iterator over the immediate successor Nodes of this Node.
      • getSuccLabels

        java.util.Iterator<? extends U> getSuccLabels​(T N)
        Returns:
        the labels on edges whose source is N
      • getSuccNodeCount

        int getSuccNodeCount​(T N,
                             U label)
        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,
                     U label)
        adds an edge with some label
      • removeEdge

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

        boolean hasEdge​(T src,
                        T dst,
                        U label)
      • getEdgeLabels

        java.util.Set<? extends U> getEdgeLabels​(T src,
                                                 T dst)
        Returns a set of all labeled edges between node src and node dst
        Parameters:
        src - source node of the edge
        dst - target node of the edge
        Returns:
        Set of edge labels