Skip to content

Commit 8fefbad

Browse files
authored
Base definition for the MultiPortGraph (#116)
* Base definition for the MultiPortGraph * Apply review comments Some doctests require the iterators PR coming next
1 parent ad8a00b commit 8fefbad

File tree

3 files changed

+765
-4
lines changed

3 files changed

+765
-4
lines changed

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ smol_str = {version = "0.1.24", features = ["serde"]}
3939
derive_more = "0.99.17"
4040
itertools = "0.10.5"
4141
html-escape = "0.2.13"
42+
bitvec = { version = "1.0.1", features = ["serde"] }
4243

4344
[features]
4445
pyo3 = ["dep:pyo3"]

src/hugr.rs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
//! The Hugr data structure, and its basic component handles.
22
33
mod hugrmut;
4-
pub mod view;
54

5+
pub mod multiportgraph;
66
pub mod serialize;
77
pub mod validate;
8+
pub mod view;
89

9-
use derive_more::From;
10-
pub use hugrmut::HugrMut;
11-
pub use validate::ValidationError;
10+
pub use self::hugrmut::HugrMut;
11+
pub use self::validate::ValidationError;
1212

13+
use derive_more::From;
1314
use portgraph::dot::{hier_graph_dot_string_with, DotEdgeStyle};
1415
use portgraph::{Hierarchy, PortGraph, UnmanagedDenseMap};
1516
use thiserror::Error;

0 commit comments

Comments
 (0)