From 821bacba156738d590a55505e03c8488c5db5db8 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Mon, 6 Oct 2025 13:31:00 +0200 Subject: Filter out large instant recipe clusters --- server/protocol/src/book.rs | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'server/protocol/src') diff --git a/server/protocol/src/book.rs b/server/protocol/src/book.rs index 73b14c07..7c529f22 100644 --- a/server/protocol/src/book.rs +++ b/server/protocol/src/book.rs @@ -70,3 +70,12 @@ pub struct DiagramEdge { pub dst: usize, pub label: Option, } + +impl NodeStyle { + pub fn is_procuct(&self) -> bool { + matches!( + self, + NodeStyle::IntermediateProduct | NodeStyle::FinalProduct + ) + } +} -- cgit v1.2.3-70-g09d2