infovis.graph.io
Class GraphMLWriter

java.lang.Object
  extended by infovis.io.AbstractWriter
      extended by infovis.io.AbstractXMLWriter
          extended by infovis.graph.io.GraphMLWriter

public class GraphMLWriter
extends AbstractXMLWriter

Writer for the GraphML format.

Version:
$Revision: 1.22 $
Author:
Jean-Daniel Fekete
InfoVis factory arguments:
GraphWriterFactory gml GraphML

Constructor Summary
GraphMLWriter(OutputStream out, Graph graph)
           
 
Method Summary
 void addAllColumnLabels()
          Adds the name of all the non-internal Columns to the list of written columns.
 void addAllEdgeLabels()
           
 void addEdgeLabel(String name)
           
 String getEdgeId(int edge)
           
 Column getEdgeIdColumn()
           
 String getEdgeLabelAt(int col)
           
 ArrayList getEdgeLabels()
           
 String getVertexId(int node)
           
 Column getVertexIdColumn()
           
 boolean isInterlaced()
          Returns the interlaced.
 void setEdgeIdColumn(Column edgeIdColumn)
           
 void setInterlaced(boolean interlaced)
          Sets the interlaced.
 void setVertexIdColumn(Column vertexIdColumn)
           
 boolean write()
          Abstract method that performs the actual writing of data.
 
Methods inherited from class infovis.io.AbstractXMLWriter
indent, isIdenting, setIdenting
 
Methods inherited from class infovis.io.AbstractWriter
addColumnLabel, flush, getColumnLabelAt, getColumnLabels, getEncoding, getName, getOut, getWriter, namedType, setEncoding, write, write, writeBuffer, writeln
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GraphMLWriter

public GraphMLWriter(OutputStream out,
                     Graph graph)
Method Detail

addEdgeLabel

public void addEdgeLabel(String name)

getVertexId

public String getVertexId(int node)

getEdgeId

public String getEdgeId(int edge)

addAllEdgeLabels

public void addAllEdgeLabels()

addAllColumnLabels

public void addAllColumnLabels()
Description copied from class: AbstractWriter
Adds the name of all the non-internal Columns to the list of written columns.

Overrides:
addAllColumnLabels in class AbstractWriter

getEdgeLabelAt

public String getEdgeLabelAt(int col)

getEdgeLabels

public ArrayList getEdgeLabels()

write

public boolean write()
Description copied from class: AbstractWriter
Abstract method that performs the actual writing of data.

Specified by:
write in class AbstractWriter
See Also:
AbstractWriter.write()

isInterlaced

public boolean isInterlaced()
Returns the interlaced.

Returns:
boolean

setInterlaced

public void setInterlaced(boolean interlaced)
Sets the interlaced.

Parameters:
interlaced - The interlaced to set

getEdgeIdColumn

public Column getEdgeIdColumn()

setEdgeIdColumn

public void setEdgeIdColumn(Column edgeIdColumn)

getVertexIdColumn

public Column getVertexIdColumn()

setVertexIdColumn

public void setVertexIdColumn(Column vertexIdColumn)


Copyright © 2005 by Jean-Daniel Fekete and INRIA, France All rights reserved.