public abstract class AbstractUndirectedGraph<N extends UndirectedGraphNode,E extends UndirectedGraphEdge<? extends N>> extends AbstractGraph implements UndirectedGraph<N,E>
id
Constructor and Description |
---|
AbstractUndirectedGraph() |
Modifier and Type | Method and Description |
---|---|
protected void |
checkAddEdge(N source,
N target) |
protected abstract void |
cloneFrom(UndirectedGraph<N,E> graph) |
int |
compareTo(UndirectedGraph<N,E> o) |
java.util.Collection<E> |
getEdges(UndirectedGraphNode node) |
protected abstract AbstractUndirectedGraph<N,E> |
getEmptyClone() |
AbstractUndirectedGraph<?,?> |
getGraph() |
abstract void |
removeEdge(UndirectedGraphEdge edge) |
equals, getEdges, graphElementAdded, graphElementChanged, graphElementRemoved, hashCode, removeFromEdges, removeNodeFromCollection
getAttributeMap, getLabel, toString
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
getEdges, getNodes
equals, getLabel, hashCode
getAttributeMap
public AbstractUndirectedGraph<?,?> getGraph()
getGraph
in interface UndirectedGraphElement
protected abstract AbstractUndirectedGraph<N,E> getEmptyClone()
protected abstract void cloneFrom(UndirectedGraph<N,E> graph)
public abstract void removeEdge(UndirectedGraphEdge edge)
removeEdge
in interface UndirectedGraph<N extends UndirectedGraphNode,E extends UndirectedGraphEdge<? extends N>>
public java.util.Collection<E> getEdges(UndirectedGraphNode node)
getEdges
in interface UndirectedGraph<N extends UndirectedGraphNode,E extends UndirectedGraphEdge<? extends N>>
public int compareTo(UndirectedGraph<N,E> o)
compareTo
in interface java.lang.Comparable<UndirectedGraph<N extends UndirectedGraphNode,E extends UndirectedGraphEdge<? extends N>>>