add an option to plot node names in plot_graph