the bug was I was NOT creating an undirected graph