@Test
public void testEdgeIncident() {

    EdgeStore edgeStore = new EdgeStore();
    EdgeImpl[] edges = GraphGenerator.generateSmallEdgeList();
    for (EdgeImpl e : edges) {
        for (EdgeImpl f : edges) {
            boolean isIncident = edgeStore.isIncident(e, f);
            boolean should = e.source == f.source || e.target == f.target || e.source == f.target || e.target == f.source;
            Assert.assertEquals(isIncident, should);
        }
    }
}