public class MultiGraph<V extends Vertex,E extends Edge> extends Graph<V,E>
Graph
,
GraphUtils
Constructor and Description |
---|
MultiGraph(boolean directed)
Creates a new multi graph.
|
Modifier and Type | Method and Description |
---|---|
protected int |
containsEdge(E edge)
Checks if the graph already contains the given edge, that means if
getEdge(i).equalsIgnoreWeight(edge)
Notice: Override this method if you want to handle that multiple edges are allowed, etc. |
add, add, afterEdgeAdded, afterEdgeRemoved, afterVertexAdded, afterVertexRemoved, beforeEdgeAdded, beforeVertexAdded, contains, contains, containsVertex, equals, equals, getEdge, getEdge, getEdge, getEdgeByID, getEdgeByIDSet, getEdges, getEdges, getEdgeSet, getOrder, getSize, getType, getVertex, getVertexByCaption, getVertexByID, getVertexByIDSet, getVertexSet, isEdgeAllowed, isRemovable, isRemovable, isVertexAllowed, remove, remove, removeAll, toString
public MultiGraph(boolean directed)
directed
- true
for a directed and false
for an undirected multi graph