Graph constructor + edge + debug