Class DirectedEdgeContainer<V,E>
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).
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final long -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddIncomingEdge(E e) Add an incoming edge.voidaddOutgoingEdge(E e) Add an outgoing edge.A lazy build of unmodifiable incoming edge set.A lazy build of unmodifiable outgoing edge set.voidRemove an incoming edge.voidRemove an outgoing edge.
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
incoming
-
outgoing
-
unmodifiableIncoming
-
unmodifiableOutgoing
-
-
Constructor Details
-
DirectedEdgeContainer
DirectedEdgeContainer(EdgeSetFactory<V, E> edgeSetFactory, V vertex)
-
-
Method Details
-
getUnmodifiableIncomingEdges
-
getUnmodifiableOutgoingEdges
-
addIncomingEdge
-
addOutgoingEdge
-
removeIncomingEdge
-
removeOutgoingEdge
-