@Test
public void testIsIncident() {

    GraphStore graphStore = GraphGenerator.generateTinyGraphStore();
    GraphViewStore store = graphStore.viewStore;
    GraphViewImpl view = store.createView();
    DirectedSubgraph graph = store.getDirectedGraph(view);
    view.fill();
    Node n1 = graph.getNode("1");
    Assert.assertTrue(graph.isIncident(n1, graph.getEdge("0")));
    Edge edge = graphStore.factory.newEdge("edge", n1, n1, EdgeTypeStore.NULL_LABEL, 1.0, true);
    graphStore.addEdge(edge);
    Assert.assertTrue(graph.isIncident(edge, graph.getEdge("0")));
}