java.lang.Object
org.jgrapht.graph.specifics.UndirectedEdgeContainer<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
Add a vertex edgeint
Get number of vertex edgesA lazy build of unmodifiable list of vertex edgesvoid
removeEdge
(E e) Remove a vertex edge
-
Method Details
-
getUnmodifiableVertexEdges
A lazy build of unmodifiable list of vertex edges- Returns:
- an unmodifiable set of vertex edges
-
addEdge
Add a vertex edge- Parameters:
e
- the edge to add
-
edgeCount
public int edgeCount()Get number of vertex edges- Returns:
- the number of vertex edges
-
removeEdge
Remove a vertex edge- Parameters:
e
- the edge to remove
-