org.caida.otter
Class GraphIO

java.lang.Object
  |
  +--org.caida.otter.GraphIO

public class GraphIO
extends java.lang.Object

This class will read in a graph file as defined in the LibSea graph library. It will also write out the file in the graph file format.


Constructor Summary
GraphIO()
           
 
Method Summary
 org.caida.libsea.Graph loadGraph(java.lang.String filename)
           
 void writeGraph(java.lang.String filename, org.caida.libsea.Graph graph, boolean isVerbose)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GraphIO

public GraphIO()
Method Detail

loadGraph

public org.caida.libsea.Graph loadGraph(java.lang.String filename)
Parameters:
filename - The file that contains the graph data

writeGraph

public void writeGraph(java.lang.String filename,
                       org.caida.libsea.Graph graph,
                       boolean isVerbose)
Parameters:
filename - The filename that will be written.
graph - The graph that you want written to the file.
isVerbose - Whether you want identifiers placed in graph file.