From 09a98ff45925f66937e44af6f13efbfb92d3edb9 Mon Sep 17 00:00:00 2001 From: jw1912 Date: Tue, 1 Oct 2024 16:55:34 +0100 Subject: [PATCH] v0.6.0 --- Cargo.lock | 2 +- Cargo.toml | 2 +- src/graph.rs | 4 ++++ 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index ece5311..a05664d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4,4 +4,4 @@ version = 3 [[package]] name = "diffable" -version = "0.5.0" +version = "0.6.0" diff --git a/Cargo.toml b/Cargo.toml index 5970cc7..5a65746 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,5 +1,5 @@ [package] name = "diffable" -version = "0.5.0" +version = "0.6.0" edition = "2021" authors = ["Jamie Whiting"] diff --git a/src/graph.rs b/src/graph.rs index 142f21c..cc27d1f 100644 --- a/src/graph.rs +++ b/src/graph.rs @@ -49,6 +49,10 @@ impl Graph { } } + pub fn input_ids(&self) -> Vec { + self.inputs.keys().cloned().collect() + } + pub fn weight_ids(&self) -> Vec { self.weights.keys().cloned().collect() }