We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent de01034 commit d4581b4Copy full SHA for d4581b4
pydatastructs/utils/tests/test_misc_util.py
@@ -36,12 +36,16 @@ def test_AdjacencyListGraphNode():
36
h.add_adjacent_node('h_1', 4)
37
assert h.adjacent['h_1'] == 4
38
assert str(h) == "('h', 0)"
39
+ h_5 = AdjacencyListGraphNode('h_5', h_1, backend = Backend.CPP)
40
+ assert h_5.data == h_1
41
42
def test_AdjacencyMatrixGraphNode():
43
g = AdjacencyMatrixGraphNode("1", 3)
44
g2 = AdjacencyMatrixGraphNode("1", 3, backend = Backend.CPP)
45
assert str(g) == "('1', 3)"
46
assert str(g2) == "('1', 3)"
47
+ g3 = AdjacencyListGraphNode("3", g2, backend = Backend.CPP)
48
+ assert g3.data == g2
49
50
51
def test_GraphEdge():
0 commit comments