Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

igraph_rewire() should take an igraph_edge_type_sw_t parameter instead of igraph_rewiring_t #2554

Open
szhorvat opened this issue Mar 31, 2024 · 1 comment
Milestone

Comments

@szhorvat
Copy link
Member

szhorvat commented Mar 31, 2024

In igraph 1.0, igraph_rewire() should take an igraph_edge_type_sw_t parameter instead of igraph_rewiring_t. This way we will be able to control separately whether multi-edges and self-loops are allowed to be created.

I plan to implement rewiring procedures for multigraphs. This change prepares the ground for this feature. For now, IGRAPH_UNIMPLEMENTED should be returned for unsupported combinations.

Related: #1062.

@szhorvat szhorvat added this to the 1.0 milestone Mar 31, 2024
@szhorvat
Copy link
Member Author

Ideally it should also return the fraction (or absolute number) of failed rewirings. It's a bit unclear how this will be done when multiple moves are allowed (not just plain edge switches), so perhaps we leave this for a later version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant