def test_subportgraph_vertices(): pg = get_pg() sub = SubPortGraph(pg, (0, 2)) assert set(sub.vertices()) == {0, 2}
def test_subportgraph_vertices(): pg = get_pg() sub = SubPortGraph(pg, (0, 2)) assert set(sub.vertices()) == {0, 2}
def test_subportgraph_init(): pg = PortGraph() sub = SubPortGraph(pg) assert len(tuple(sub.vertices())) == 0
def test_subportgraph_init(): pg = PortGraph() sub = SubPortGraph(pg) assert len(tuple(sub.vertices())) == 0