java.lang.Object
org.jgrapht.graph.specifics.DirectedEdgeContainer<V,E>
- Type Parameters:
V
- the graph vertex typeE
- the graph edge type
- All Implemented Interfaces:
Serializable
A container for vertex edges.
In this edge container we use array lists to minimize memory toll. However, for high-degree vertices we replace the entire edge container with a direct access subclass (to be implemented).
- Author:
- Barak Naveh
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addIncomingEdge
(E e) Add an incoming edge.void
addOutgoingEdge
(E e) Add an outgoing edge.A lazy build of unmodifiable incoming edge set.A lazy build of unmodifiable outgoing edge set.void
Remove an incoming edge.void
Remove an outgoing edge.
-
Method Details
-
getUnmodifiableIncomingEdges
A lazy build of unmodifiable incoming edge set.- Returns:
- an unmodifiable version of the incoming edge set
-
getUnmodifiableOutgoingEdges
A lazy build of unmodifiable outgoing edge set.- Returns:
- an unmodifiable version of the outgoing edge set
-
addIncomingEdge
Add an incoming edge.- Parameters:
e
- the edge to add
-
addOutgoingEdge
Add an outgoing edge.- Parameters:
e
- the edge to add
-
removeIncomingEdge
Remove an incoming edge.- Parameters:
e
- the edge to remove
-
removeOutgoingEdge
Remove an outgoing edge.- Parameters:
e
- the edge to remove
-