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.
2 parents 279fe0a + 2896d30 commit 7ed87b2Copy full SHA for 7ed87b2
tests/test_graph_builder.py
@@ -50,3 +50,12 @@ def test_graph_builder_rebuilds_pt(pt_path):
50
51
assert len(list(rebuilt.parameters())) == len(expected_edges)
52
assert len(rebuilt.node_types) == len(data.node_types)
53
+
54
+ # Verify that the rebuilt computation graph is identical to the original
55
+ if str(rebuilt.graph) != str(original.graph):
56
+ print("Original graph:\n", original.graph)
57
+ print("Rebuilt graph:\n", rebuilt.graph)
58
+ assert str(rebuilt.graph) == str(original.graph), (
59
+ "\nOriginal graph:\n" + str(original.graph) +
60
+ "\nRebuilt graph:\n" + str(rebuilt.graph)
61
+ )
0 commit comments