Skip to content

Commit

Permalink
Only yield output neighbours in petgraph's IntoNeighbors trait (#88)
Browse files Browse the repository at this point in the history
  • Loading branch information
aborgna-q authored Jun 28, 2023
1 parent 9943eec commit bc221b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/view/petgraph.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}

Expand Down

0 comments on commit bc221b8

Please sign in to comment.