Package dev.nm.graph

Interface DiGraph<V,​E extends Arc<V>>

    • Method Detail

      • outgoingArcs

        Set<E> outgoingArcs​(V v)
        Gets the set of all outgoing arcs associated with a vertex in this graph.
        Parameters:
        v - a vertex
        Returns:
        all outgoing arcs associated with a vertex
      • incomingArcs

        Set<E> incomingArcs​(V v)
        Gets the set of all incoming arcs associated with a vertex in this graph.
        Parameters:
        v - a vertex
        Returns:
        all incoming arcs associated with a vertex
      • parents

        Set<V> parents​(V v)
        Gets the set of all parents of this vertex.
        Parameters:
        v - a vertex
        Returns:
        the set of all parents
      • children

        Set<V> children​(V v)
        Gets the set of all children of this vertex.
        Parameters:
        v - a vertex
        Returns:
        the set of all children