From 465d94b6ad2938689db1ee2078d00a048c63fa4a Mon Sep 17 00:00:00 2001 From: James Pace Date: Sun, 5 Jul 2026 09:26:53 -0400 Subject: [PATCH] Add back in root(). --- src/lib.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index b5f60d7..f7ff80a 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -49,6 +49,12 @@ impl DiagnosticGraph { } } + /// Get the root key. + /// Needed to do searches in the graph outside of this crate. + pub fn root(&self) -> limbo_graph::Key { + self.graph.root_key() + } + /// Get the value of a specific element of the graph. /// Will error if the key is not in the graph, or if the key /// is the root, which doesn't have a value.