public class MemoryEfficientGraph extends HashMutableDirectedGraph
heads, nodeToPreds, nodeToSuccs, tails| Constructor and Description |
|---|
MemoryEfficientGraph() |
| Modifier and Type | Method and Description |
|---|---|
void |
addEdge(java.lang.Object from,
java.lang.Object to)
Adds an edge to the graph between 2 nodes.
|
void |
addNode(java.lang.Object o)
Adds a node to the graph.
|
void |
removeEdge(java.lang.Object from,
java.lang.Object to)
Removes an edge between 2 nodes in the graph.
|
void |
removeNode(java.lang.Object o)
Removes a node from the graph.
|
clearAll, clone, containsEdge, containsNode, getHeads, getNodes, getPredsOf, getPredsOfAsSet, getSuccsOf, getSuccsOfAsSet, getTails, iterator, printGraph, sizepublic void addNode(java.lang.Object o)
MutableDirectedGraphaddNode in interface MutableDirectedGraphaddNode in class HashMutableDirectedGrapho - a node to add to the graph.DirectedGraph.getHeads(),
DirectedGraph.getTails()public void removeNode(java.lang.Object o)
MutableDirectedGraphremoveNode in interface MutableDirectedGraphremoveNode in class HashMutableDirectedGrapho - the node to be removed.public void addEdge(java.lang.Object from,
java.lang.Object to)
MutableDirectedGraphaddEdge in interface MutableDirectedGraphaddEdge in class HashMutableDirectedGraphfrom - out node for the edge.to - in node for the edge.public void removeEdge(java.lang.Object from,
java.lang.Object to)
MutableDirectedGraphremoveEdge in interface MutableDirectedGraphremoveEdge in class HashMutableDirectedGraphfrom - out node for the edge to remove.to - in node for the edge to remove.Copyright © 2012-2019 RoboVM AB. All Rights Reserved.