Added fn to cleanly print names of vertices in before graph