to be added to graph2plot.py.
to be added to graph2plot.py.