Interface Vertex<V,​E>

    • Method Detail

      • getAdjacentVertices

        Collection<Vertex<V,​E>> getAdjacentVertices()
        vertex has a collection of edges, thus pointing to several other vertices
        Returns:
        a collection of vertex
      • getEdges

        Collection<Edge<V,​E>> getEdges()
        Returns:
        returns a collection of edges
      • getIncomingEdges

        Collection<Edge<V,​E>> getIncomingEdges()

        Returns all edges that are incoming into this vertex.

        If this vertex is seen as v, then all edges e are returned that match x-(e)->v

        Returns:
        returns a collection of edges
      • getOutgoingEdges

        Collection<Edge<V,​E>> getOutgoingEdges()

        Returns all edges which are outgoing from this vertex.

        If this vertex is seen as v, then all edges e are returned that match v-(e)->x

        Returns:
        returns a collection of edges
      • getElement

        V getElement()
        Returns:
        returns the decorated element