Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
//! Data structure for call graphs of a Hugr
use std::collections::HashMap;

use hugr_core::{HugrView, Node, core::HugrNode, ops::OpType};
use petgraph::Graph;

use crate::{HugrView, Node, core::HugrNode, ops::OpType};

/// Weight for an edge in a [`CallGraph`]
#[derive(Clone, Debug, PartialEq, Eq)]
pub enum CallGraphEdge<N = Node> {
Expand Down
1 change: 1 addition & 0 deletions hugr-core/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#![cfg_attr(coverage_nightly, feature(coverage_attribute))]

pub mod builder;
pub mod call_graph;
pub mod core;
pub mod envelope;
pub mod export;
Expand Down
3 changes: 2 additions & 1 deletion hugr-passes/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
//! Compilation passes acting on the HUGR program representation.
pub mod call_graph;
#[deprecated(note = "Re-exported from hugr-core", since = "0.22.3")]
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The since here commits me to making a patch release, ho hum....

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is fine, if 0.22.3 never happens, people will be smart enough to infer this means 0.23 :)

pub use hugr_core::call_graph;
pub mod composable;
pub use composable::ComposablePass;
pub mod const_fold;
Expand Down
Loading