Cytoscape 2.6.2 (c) 2006,2007 ISB, MSKCC, UCSD

cytoscape.data.readers
Class GMLWriter

java.lang.Object
  extended by cytoscape.data.readers.GMLWriter

public class GMLWriter
extends Object

The purpse of this class is to translate cytoscape data structures into a gml object tree, we can then use the gml parser to write this tree out into a file


Constructor Summary
GMLWriter()
           
 
Method Summary
 void writeGML(CyNetwork network, CyNetworkView view, List oldList)
          Given an object tree given in oldList, update it with the information provided in network and optionall view (if view is not null).
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GMLWriter

public GMLWriter()
Method Detail

writeGML

public void writeGML(CyNetwork network,
                     CyNetworkView view,
                     List oldList)
Given an object tree given in oldList, update it with the information provided in network and optionall view (if view is not null). The GML spec requires that we remember all information provided in the original gml file. Therefore, we pass in the old object tree as oldList, as execute functions which will update that data structure. We would also like to save files that may not have been loaded from a gml file. This list is empty in that case. Those same update functions must be able to create all relevant key-value pairs as well then.


www.cytoscape.org