petgraph icon indicating copy to clipboard operation
petgraph copied to clipboard

Feature Request: filter_map for GraphMap

Open bramp opened this issue 1 year ago • 1 comments

Summary

Add the filter_map function to the GraphMap type

Motivation

filter_map is a simple way to filter nodes and edges from Graph and StableGraph, but seems missing from GraphMap.

Details

  • What code needs to change? New traits? Which modules?

Sorry I'm not sure.

bramp avatar Dec 27 '24 16:12 bramp

Ok I created a solution here #703

@mark-addams001881 thanks for your solution. It wasn't quite right, so I didn't use it.

bramp avatar Dec 27 '24 18:12 bramp