edu.iastate.metnet.graphmodel
Class JGraphEncoder

java.lang.Object
  extended by edu.iastate.metnet.graphmodel.JGraphEncoder

public class JGraphEncoder
extends java.lang.Object

create Dot format file to describe the graph data in memory. Attach id for receovering

Author:
Jie Li

Field Summary
(package private) static java.util.Hashtable hash
           
(package private) static org.apache.log4j.Logger logger
           
 
Constructor Summary
JGraphEncoder()
           
 
Method Summary
static java.lang.String encode(org.jgraph.JGraph graph, java.lang.Object[] cells)
          encode the graph by encoding vertices and edges
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

static org.apache.log4j.Logger logger

hash

static transient java.util.Hashtable hash
Constructor Detail

JGraphEncoder

public JGraphEncoder()
Method Detail

encode

public static java.lang.String encode(org.jgraph.JGraph graph,
                                      java.lang.Object[] cells)
encode the graph by encoding vertices and edges

Parameters:
graph - the graph to be encoded
cells - the cells
Returns:
the encoded bitstream