Interface Graph<V extends Vertex,​E extends Edge>

    • Method Detail

      • getVertexes

        Set<V> getVertexes()
        Returns the set of vertexes comprising the graph.
        Returns:
        set of vertexes
      • getEdges

        Set<E> getEdges()
        Returns the set of edges comprising the graph.
        Returns:
        set of edges
      • getEdgesFrom

        Set<E> getEdgesFrom​(V src)
        Returns all edges leading out from the specified source vertex.
        Parameters:
        src - source vertex
        Returns:
        set of egress edges; empty if no such edges
      • getEdgesTo

        Set<E> getEdgesTo​(V dst)
        Returns all edges leading towards the specified destination vertex.
        Parameters:
        dst - destination vertex
        Returns:
        set of ingress vertexes; empty if no such edges