From e40bc38e1aa27a8aac6943c55cd2d04bec95969a Mon Sep 17 00:00:00 2001 From: Agustin Borgna Date: Tue, 27 Jun 2023 17:31:45 +0100 Subject: [PATCH] Only yield output neighbours in petgraph's IntoNeighbors trait --- src/view/petgraph.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/view/petgraph.rs b/src/view/petgraph.rs index 8ffc54c..2f43d5b 100644 --- a/src/view/petgraph.rs +++ b/src/view/petgraph.rs @@ -115,7 +115,7 @@ macro_rules! impl_petgraph_traits { type Neighbors = <$graph as LinkView>::Neighbours<'g>; fn neighbors(self, n: Self::NodeId) -> Self::Neighbors { - self.all_neighbours(n) + self.output_neighbours(n) } }