def test_raise_exception_when_edge_added_from_non_existing_node(self):
        gr = graph()
        gr.add_nodes([0,1])
        try:
            gr.add_edge((3,0))
        except __HOLE__:
            pass
        else:
            fail()
        assert gr.node_neighbors == {0: [], 1: []}
dataset/ETHPy150Open pmatiello/python-graph/tests/unittests-graph.py/test_graph.test_raise_exception_when_edge_added_from_non_existing_node