cytoscape.data.readers
Class GMLWriter
java.lang.Object
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
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). |
GMLWriter
public GMLWriter()
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.