use vertex/edge instead of tuples in the test