Added ability to test whether edge exists in network