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

Wishlist: Determine if a group of vertices forms a clique (is_clique, is_independent_set) #2380

Closed
szhorvat opened this issue Jul 29, 2023 · 0 comments · Fixed by #2622
Closed
Labels
wishlist Feature request that has not been chosen for implementation yet; vote or comment to prioritize it!
Milestone

Comments

@szhorvat
Copy link
Member

szhorvat commented Jul 29, 2023

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

A function that determines if within a group of vertices, all pairs are connected (with one or more edges).

igraph_is_clique(const igraph_t *graph, igraph_vs_t vs, igraph_bool_t directed);

Similarly, there should be a function that checks that within a group of vertices, no pair is connected (but self-loops are still allowed).

igraph_is_independent_set(const igraph_t *graph, igraph_vs_t vs);

Use cases for the feature

  • Useful helper for algorithm development
  • Useful for teaching and exploration
  • With igraph_vss_all(), provides a way to check if a graph is complete UPDATE: Already implemented as igraph_is_complete().

Related

  • igraph_induced_subgraph_edges()

References

@szhorvat szhorvat added the wishlist Feature request that has not been chosen for implementation yet; vote or comment to prioritize it! label Sep 4, 2023
@szhorvat szhorvat changed the title Wishlist: Determine if a group of vertices forms a clique Wishlist: Determine if a group of vertices forms a clique (is_clique, is_independent_set) Apr 10, 2024
@szhorvat szhorvat added this to the 0.10.13 milestone Jun 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wishlist Feature request that has not been chosen for implementation yet; vote or comment to prioritize it!
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant