adding test for inverse edges