Fixed NodeIds Bug

Dependecy Graphs were linked based on index not node ids