Bugfix and graph print

- printed graph
- bugfix in node labelling