|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--net.walend.digraph.AbstractHashGEDigraph
|
+--net.walend.digraph.MutableHashGEDigraph
| Nested Class Summary |
| Nested classes inherited from class net.walend.digraph.AbstractHashGEDigraph |
AbstractHashGEDigraph.HashEdgeIterator, AbstractHashGEDigraph.IteratorWrapper, AbstractHashGEDigraph.NodePair |
| Field Summary | |
private static int |
DEFAULTSIZE
|
| Fields inherited from class net.walend.digraph.AbstractHashGEDigraph |
|
| Fields inherited from interface net.walend.digraph.GEDigraph |
EMPTY |
| Constructor Summary | |
MutableHashGEDigraph()
|
|
MutableHashGEDigraph(GEDigraph digraph)
|
|
MutableHashGEDigraph(int nodeCapacity,
int edgeCapacity)
|
|
| Method Summary | |
boolean |
addEdge(java.lang.Object fromNode,
java.lang.Object toNode)
Return true if the digraph changes when this edge is added, false if the digraph is unchanged. |
boolean |
addNode(java.lang.Object node)
Return true if the node is added successfully, false if the digraph does not change. |
boolean |
addNodes(Set nodes)
Return true if adding the nodes changes the digraph. |
void |
clear()
Remove all nodes and edges from the GEDigraph |
void |
clearEdges()
Remove all the edges from the GEDigraph. |
boolean |
removeEdge(java.lang.Object fromNode,
java.lang.Object toNode)
Return true if the digraph changes when the edge is removed, false if the digraph didn't have an edge between these two nodes. |
int |
removeGEDigraph(GEDigraph digraph)
Return the number of edges orphaned when digraph is removed |
int |
removeNode(java.lang.Object node)
Return the number of orphaned edges that were lost when this node is removed. |
int |
removeNodes(Set nodes)
Return the number of edges orphaned edges when these nodes are removed. |
int |
retainNodes(Set nodes)
Return the number of orphaned edges when the nodes are removed. |
| Methods inherited from class net.walend.digraph.AbstractHashGEDigraph |
containsEdge, containsGEDigraph, containsNode, containsNodes, countInboundEdges, countOutboundEdges, edgeCount, edgeNodeIterator, getFromNodes, getNodes, getPrincipleInterface, getToNodes, intersectWithGEDigraph, isEdgeFree, isEmpty, nodeCount, nodeIterator, sameGEDigraphAs, sameStateAs, toString, unionGEDigraph |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface net.walend.digraph.GEDigraph |
containsEdge, containsGEDigraph, containsNode, containsNodes, countInboundEdges, countOutboundEdges, edgeCount, edgeNodeIterator, getFromNodes, getNodes, getToNodes, intersectWithGEDigraph, isEdgeFree, isEmpty, nodeCount, nodeIterator, sameGEDigraphAs, unionGEDigraph |
| Methods inherited from interface net.walend.collection.HasState |
getPrincipleInterface, sameStateAs |
| Field Detail |
private static final int DEFAULTSIZE
| Constructor Detail |
public MutableHashGEDigraph()
public MutableHashGEDigraph(int nodeCapacity,
int edgeCapacity)
public MutableHashGEDigraph(GEDigraph digraph)
| Method Detail |
public boolean addNode(java.lang.Object node)
MutableGEDigraph
addNode in interface MutableGEDigraphaddNode in class AbstractHashGEDigraph
public boolean addEdge(java.lang.Object fromNode,
java.lang.Object toNode)
throws NodeMissingException
MutableGEDigraph
addEdge in interface MutableGEDigraphaddEdge in class AbstractHashGEDigraph
public int removeNode(java.lang.Object node)
throws NodeMissingException
MutableGEDigraph
removeNode in interface MutableGEDigraphremoveNode in class AbstractHashGEDigraph
public boolean removeEdge(java.lang.Object fromNode,
java.lang.Object toNode)
throws NodeMissingException
MutableGEDigraph
removeEdge in interface MutableGEDigraphremoveEdge in class AbstractHashGEDigraphpublic boolean addNodes(Set nodes)
MutableGEDigraph
addNodes in interface MutableGEDigraphaddNodes in class AbstractHashGEDigraphpublic int removeNodes(Set nodes)
MutableGEDigraph
removeNodes in interface MutableGEDigraphremoveNodes in class AbstractHashGEDigraphpublic int removeGEDigraph(GEDigraph digraph)
MutableGEDigraph
removeGEDigraph in interface MutableGEDigraphremoveGEDigraph in class AbstractHashGEDigraphpublic int retainNodes(Set nodes)
MutableGEDigraph
retainNodes in interface MutableGEDigraphretainNodes in class AbstractHashGEDigraphpublic void clear()
MutableGEDigraph
clear in interface MutableGEDigraphclear in class AbstractHashGEDigraphpublic void clearEdges()
MutableGEDigraph
clearEdges in interface MutableGEDigraphclearEdges in class AbstractHashGEDigraph
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||