annas.graph.export
Class DOTExporter<N,A extends ArcInterface<N>>

java.lang.Object
  extended by annas.graph.export.DOTExporter<N,A>
Type Parameters:
N - Node type
A - Arc type
All Implemented Interfaces:
Exporter<N,A>

public class DOTExporter<N,A extends ArcInterface<N>>
extends java.lang.Object
implements Exporter<N,A>

Export graph to the standard .DOT format @see shown here

Author:
Sam Wilson

Constructor Summary
DOTExporter()
           
DOTExporter(java.io.OutputStream pw)
           
 
Method Summary
 void export(GraphInterface<N,A> graph)
          Exports the provided graph.
 void export(java.io.OutputStream ops, GraphInterface<N,A> graph)
          Exports the provided graph.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DOTExporter

public DOTExporter()

DOTExporter

public DOTExporter(java.io.OutputStream pw)
Method Detail

export

public void export(java.io.OutputStream ops,
                   GraphInterface<N,A> graph)
Exports the provided graph.

Specified by:
export in interface Exporter<N,A extends ArcInterface<N>>
Parameters:
ops - Stream to output the graph to
graph - Graph to export

export

public void export(GraphInterface<N,A> graph)
Exports the provided graph.

Specified by:
export in interface Exporter<N,A extends ArcInterface<N>>
Parameters:
graph - Graph to export