Added graph printing compatible with dot