util.graph
Class PermGraph
java.lang.Object
|
+--util.graph.Graph
|
+--util.graph.PermGraph
- Direct Known Subclasses:
- SQLGraph
- public abstract class PermGraph
- extends Graph
- See Also:
- Serialized Form
Method Summary |
void |
addEdge(Edge e)
Overrides addEdge in Graph -- makes sure that every time we add
an edge, we reflect it in the permanent storage |
protected abstract Edge |
loadEdge()
Return the next edge in a table. |
void |
loadGraph(String graph)
Load a graph from a given table. |
protected abstract void |
openTable(String table)
Open the table for read/write to save/load graph. |
protected abstract void |
saveEdge(Edge e)
Save an edge to the table. |
void |
saveGraph(String toTable)
Save graph as series of edges. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
PermGraph
public PermGraph()
saveGraph
public void saveGraph(String toTable)
- Save graph as series of edges.
addEdge
public void addEdge(Edge e)
- Overrides addEdge in Graph -- makes sure that every time we add
an edge, we reflect it in the permanent storage
- Overrides:
- addEdge in class Graph
openTable
protected abstract void openTable(String table)
- Open the table for read/write to save/load graph.
saveEdge
protected abstract void saveEdge(Edge e)
- Save an edge to the table.
loadEdge
protected abstract Edge loadEdge()
- Return the next edge in a table. Return null
if no edges remaining, otherwise return an Edge object.
loadGraph
public void loadGraph(String graph)
- Load a graph from a given table.