Fix create_graph, command line arg support, tested with small input