Package netconv :: Module gml
[show private | hide private]
[frames | no frames]

Module netconv.gml

Functions to work with GML files

Author: Marcio Rosa da Silva

Contact: mrs@gbf.de

Organization: Systems Biology Group / GBF

License: GPL

Function Summary
  addGMLEdge(obj, arq)
Adds GML edge to the the network
  addGMLNode(obj, arq)
Adds GML node to the the network
  exportGML(obj, filename)
Exports network to GML file
  importGML(obj, filename)
Exports network to GML file
  _bExportGML(obj, name, attribs, indent)
Exports attributes in GML format
  _bImportGML(obj, arq, attribs)
Imports the attributes in GML format
  _neExportGML(obj, name, attribs, indent)
Exports the attributes of the node in GML format
  _neImportGML(obj, arq, attribs)
Imports the attributes of the node in GML format

Variable Summary
str gml_tab: used to indent GML file
str gml_tab_i: internal field separation in GML file

Function Details

addGMLEdge(obj, arq)

Adds GML edge to the the network
Parameters:
obj - edge
arq - .gml file

addGMLNode(obj, arq)

Adds GML node to the the network
Parameters:
obj - node
arq - .gml file

exportGML(obj, filename='-')

Exports network to GML file
Parameters:
obj - network
filename - .gml file

importGML(obj, filename='-')

Exports network to GML file
Parameters:
obj - network
filename - .gml file

_bExportGML(obj, name, attribs, indent)

Exports attributes in GML format
Parameters:
obj - network
name - name of the group being exported
attribs - attribute to export (use recursively to work on dictionary attributes)
indent - level of indentation (tabs)

_bImportGML(obj, arq, attribs)

Imports the attributes in GML format
Parameters:
obj - network
arq - .gml file
attribs - attributes dict (used recursively)

_neExportGML(obj, name=None, attribs=None, indent=0)

Exports the attributes of the node in GML format
Parameters:
obj - node/edge
name - name of the group being exported
attribs - attribute to export (use recursively to work on dictionary attributes)
indent - level of indentation (tabs)

_neImportGML(obj, arq, attribs=None)

Imports the attributes of the node in GML format
Parameters:
obj - node/edge
arq - .gml file
attribs - attributes list (used recursively)

Variable Details

gml_tab

used to indent GML file
Type:
str
Value:
'\t'                                                                   

gml_tab_i

internal field separation in GML file
Type:
str
Value:
'\t'                                                                   

Generated by Epydoc 2.1 on Tue Aug 30 11:04:16 2005 http://epydoc.sf.net