added legacy nesting to graph.py. bin programs now share argument parsing code.