Fix adding of edges to graph in pushGraph

The issue was that `addNode` was being called instead of `addEdge`.

This fixes issue #76.