Interface Graph<N,​E>

    • Method Detail

      • getOutgoingEdges

        Collection<E> getOutgoingEdges​(N node)
        Retrieves, for a given node, the (finite) collection of all outgoing edges.
        Parameters:
        node - the node
        Returns:
        a collection containing the outgoing edges
      • getAdjacentNodes

        default Collection<N> getAdjacentNodes​(N node)
        Retrieves, for a given node, the (finite) collection of all adjacent nodes.
        Parameters:
        node - the node
        Returns:
        a collection containing the outgoing edges
      • getOutgoingEdgesIterator

        default Iterator<E> getOutgoingEdgesIterator​(N node)
        Description copied from interface: IndefiniteGraph
        Retrieves, for a given node, all outgoing edges.
        Specified by:
        getOutgoingEdgesIterator in interface IndefiniteGraph<N,​E>
        Parameters:
        node - the node
        Returns:
        an iterator over the outgoing edges