diff --git a/Cargo.toml b/Cargo.toml
index 068bd4a76..47fe78cfd 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -22,7 +22,7 @@ missing_docs = "warn"
debug_assert_with_mut_call = "warn"
[workspace.dependencies]
-portgraph = { version = "0.12.1" }
+portgraph = { version = "0.12.2" }
insta = { version = "1.34.0" }
bitvec = "1.0.1"
cgmath = "0.18.0"
diff --git a/hugr-core/src/hugr/views/snapshots/hugr_core__hugr__views__tests__mmd_cfg.snap b/hugr-core/src/hugr/views/snapshots/hugr_core__hugr__views__tests__mmd_cfg.snap
index 99b546a22..33f9fad3e 100644
--- a/hugr-core/src/hugr/views/snapshots/hugr_core__hugr__views__tests__mmd_cfg.snap
+++ b/hugr-core/src/hugr/views/snapshots/hugr_core__hugr__views__tests__mmd_cfg.snap
@@ -8,24 +8,23 @@ graph LR
subgraph 2 ["(2) DataflowBlock"]
direction LR
3["(3) Input"]
- 3--"0:0
usize"-->5
4["(4) Output"]
5["(5) Tag"]
+ 3--"0:0
usize"-->5
5--"0:0
[usize]+[usize]"-->4
end
- 2-."0:0".->6
- 2-."1:0".->1
1["(1) ExitBlock"]
subgraph 6 ["(6) DataflowBlock"]
direction LR
7["(7) Input"]
- 7--"0:1
usize"-->8
8["(8) Output"]
9["(9) const:seq:{}"]
- 9--"0:0
[]"-->10
10["(10) LoadConstant"]
+ 7--"0:1
usize"-->8
+ 9--"0:0
[]"-->10
10--"0:0
[]"-->8
end
+ 2-."0:0".->6
+ 2-."1:0".->1
6-."0:0".->1
end
-
diff --git a/hugr-core/src/hugr/views/snapshots/hugr_core__hugr__views__tests__mmd_dfg.snap b/hugr-core/src/hugr/views/snapshots/hugr_core__hugr__views__tests__mmd_dfg.snap
index 0ab5fcceb..11378ac54 100644
--- a/hugr-core/src/hugr/views/snapshots/hugr_core__hugr__views__tests__mmd_dfg.snap
+++ b/hugr-core/src/hugr/views/snapshots/hugr_core__hugr__views__tests__mmd_dfg.snap
@@ -6,14 +6,14 @@ graph LR
subgraph 0 ["(0) DFG"]
direction LR
1["(1) Input"]
- 1--"0:0
qubit"-->3
- 1--"1:1
qubit"-->3
2["(2) Output"]
3["(3) test.quantum.CX"]
+ 4["(4) test.quantum.CX"]
+ 1--"0:0
qubit"-->3
+ 1--"1:1
qubit"-->3
3--"0:1
qubit"-->4
3--"1:0
qubit"-->4
3-."2:2".->4
- 4["(4) test.quantum.CX"]
4--"0:0
qubit"-->2
4--"1:1
qubit"-->2
end
diff --git a/hugr-core/src/hugr/views/snapshots/hugr_core__hugr__views__tests__mmd_empty_dfg.snap b/hugr-core/src/hugr/views/snapshots/hugr_core__hugr__views__tests__mmd_empty_dfg.snap
index ff4422889..52e8ce4e7 100644
--- a/hugr-core/src/hugr/views/snapshots/hugr_core__hugr__views__tests__mmd_empty_dfg.snap
+++ b/hugr-core/src/hugr/views/snapshots/hugr_core__hugr__views__tests__mmd_empty_dfg.snap
@@ -6,6 +6,6 @@ graph LR
subgraph 0 ["(0) DFG"]
direction LR
1["(1) Input"]
- 1--"0:0
[]+[]"-->2
2["(2) Output"]
+ 1--"0:0
[]+[]"-->2
end