From 84b2e0c833738992d9fac6c8967f529bc19e71bd Mon Sep 17 00:00:00 2001 From: Jani Monoses Date: Wed, 19 Mar 2025 12:00:22 +0200 Subject: [PATCH] Use Term --- src/core/mod.rs | 4 ---- src/core/operation.rs | 4 +++- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/core/mod.rs b/src/core/mod.rs index 241a155c..795f2ca6 100644 --- a/src/core/mod.rs +++ b/src/core/mod.rs @@ -3,7 +3,3 @@ pub mod operation; pub use object::*; pub use operation::*; - -use open_hypergraphs::prelude::OpenHypergraph; - -pub type Term = OpenHypergraph; diff --git a/src/core/operation.rs b/src/core/operation.rs index 5c2682d7..f4569da0 100644 --- a/src/core/operation.rs +++ b/src/core/operation.rs @@ -30,6 +30,8 @@ pub enum Operation { Copy(NdArrayType), } +pub type Term = OpenHypergraph; + impl Operation { /// Check an operation is *valid* - e.g., for Reshape the input and output types must be /// isomorphic. @@ -81,7 +83,7 @@ impl Operation { } // Make an OpenHypergraph from this operation - pub fn term(self) -> OpenHypergraph { + pub fn term(self) -> Term { let (s, t) = self.interface(); OpenHypergraph::singleton( self,