Issue 14: possible fix that corrects the addEdge call