igraph / igraph

Library for the analysis of networks
https://igraph.org
GNU General Public License v2.0
1.75k stars 405 forks source link

Wishlist: Better interface for contracting vertices #2465

Open szhorvat opened 9 months ago

szhorvat commented 9 months ago

What is the feature or improvement you would like to see?

igraph_contract_vertices() requires a mapping as input. This is almost always inconvenient. There should be alternative interfaces to contraction that:

Use cases for the feature

The proposed interfaces fit most graph theory applications better.

References

elena-schafer commented 7 months ago

Is anyone working on this? If not I'd like to.

szhorvat commented 7 months ago

@EdgarAlenPoe Let's finish your blossom algorithm pull requests before starting with another project.