netkit.graph.io
Class EdgeWriterRN

java.lang.Object
  extended by netkit.graph.io.EdgeWriterRN

public final class EdgeWriterRN
extends java.lang.Object

This class outputs Edge data in RN format. The output format matches that read in by EdgeReaderRN.

Author:
Kaveh R. Ghazi
See Also:
EdgeReaderRN, SchemaReader, SchemaWriter, Graph

Constructor Summary
EdgeWriterRN()
           
 
Method Summary
static void writeEdges(Edge[] edges, java.io.Writer writer)
          Writes Edges to the supplied Writer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EdgeWriterRN

public EdgeWriterRN()
Method Detail

writeEdges

public static void writeEdges(Edge[] edges,
                              java.io.Writer writer)
Writes Edges to the supplied Writer.

Parameters:
edges - an array of Edges to be output. All of the supplied Edges must share the same EdgeType reference.
writer - a Writer object where the output will go. The Writer is flushed but not closed.
Throws:
java.lang.RuntimeException - if any constraints are violated.