diff options
| author | JSDurand <mmemmew@gmail.com> | 2024-01-08 16:13:19 +0800 |
|---|---|---|
| committer | JSDurand <mmemmew@gmail.com> | 2024-01-08 16:13:19 +0800 |
| commit | 3ae0cf9898485a2ec35df7d23cd274e7dea5796d (patch) | |
| tree | 35acbd1223288eb6f62ab281b57845c0ce2ed1c5 /chain/src/default.rs | |
| parent | 55f7068e91182dfe458fad41c3251388ea461569 (diff) | |
a commit before the forst query
I think the main functionalities are already there, but the lack of
querying capabilities makes this not very useful at the moment.
This commit is right before an attempt to add this missing piece.
Diffstat (limited to 'chain/src/default.rs')
| -rw-r--r-- | chain/src/default.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/chain/src/default.rs b/chain/src/default.rs index 85e3c8f..042f84e 100644 --- a/chain/src/default.rs +++ b/chain/src/default.rs @@ -324,6 +324,11 @@ impl LabelGraph<Edge> for DefaultChain { where Self: 'a; + type TupleIter<'a> = <DLGraph<Edge> as LabelGraph<Edge>>::TupleIter<'a> + where + Self: 'a, + Edge: 'a; + type LabelIter<'a> = <DLGraph<Edge> as LabelGraph<Edge>>::LabelIter<'a> where Self: 'a, @@ -349,6 +354,11 @@ impl LabelGraph<Edge> for DefaultChain { } #[inline] + fn tuples_of(&self, node_id: usize) -> Result<Self::TupleIter<'_>, GError> { + self.graph.tuples_of(node_id) + } + + #[inline] fn labels_of(&self, node_id: usize) -> Result<Self::LabelIter<'_>, GError> { self.graph.labels_of(node_id) } |
