|
SandMark version 2.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--sandmark.watermark.ct.encode.Split
This class is responsible for splitting a sandmark.util.graph.Graph into an array of subgraphs. The splitting is done in such a way that each subgraph has a root, a special node from which all other nodes in the graph can be reached. This allows us to store only pointers to root nodes in global storage to prevent the garbage collector from collecting the subgraphs.
This class returns two pieces of data:
Call like this:
sandmark.util.graph.Graph graph = ... sandmark.watermark.ct.encode.Split split = new sandmark.watermark.ct.encode.Split(graph,2); split.split(); sandmark.util.graph.Graph subGraphs[] = split.subGraphs; sandmark.util.graph.Graph componentGraph = split.componentGraph;
Field Summary | |
Graph |
componentGraph
|
(package private) int |
components
|
(package private) Graph |
graph
|
Graph[] |
subGraphs
|
Constructor Summary | |
Split(Graph graph,
int components)
Create a new Split object. |
Method Summary | |
static void |
main(java.lang.String[] args)
|
void |
split()
Perform the split. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public Graph[] subGraphs
public Graph componentGraph
int components
Graph graph
Constructor Detail |
public Split(Graph graph, int components)
Method Detail |
public void split()
public static void main(java.lang.String[] args)
|
SandMark version 2.0 Mon Jun 17 12:30:47 MST 2002 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |