Clean up graph visualization code, label nodes/edges instead of a legend.