Fix numNode initiation bug
graph.py

Fix indexing bugs and add debug prints
Fix indexing bugs and add debug prints