graphtool_to_gjgf¶
- graphtool_to_gjgf(graph)¶
Convert a graph-tool graph object to gJGF.
- Parameters
graph (graph object from graph-tool)
- Returns
gjgf (dict) – Dictionary adhering to gravis JSON Graph Format (gJGF)
Caution
0 and 0.0 values are ignored because they represent missing values in graph-tool. This can cause problems when such values have the usual meaning of a quantity being zero.