Skip to content

BUG: Raise on directed graphs in nx.find_cliques_recursive - #8211

Merged
MridulS merged 2 commits into
networkx:mainfrom
Peiffap:bug/dc
Aug 29, 2025
Merged

MridulS merged 2 commits into
networkx:mainfrom
Peiffap:bug/dc

Conversation

@Peiffap

@Peiffap Peiffap commented Aug 29, 2025

Copy link
Copy Markdown
Member

Fixes #8209.

This PR adds the not_implemented_for("directed") decorator to nx.find_cliques_recursive, similarly to nx.find_cliques. It also adds a test (for both functions) that directed graphs now raise nx.NetworkXNotImplemented.

@Peiffap

Peiffap commented Aug 29, 2025

Copy link
Copy Markdown
Member Author

I'll follow up with a separate PR to update the test suite as a whole—and maybe simplify the common initialization step between the recursive and iterative versions of find_cliques.

@rossbar rossbar left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM thanks @Peiffap !

@MridulS
MridulS merged commit 5cfb44f into networkx:main Aug 29, 2025
@jarrodmillman jarrodmillman added this to the 3.6 milestone Aug 29, 2025
@Peiffap
Peiffap deleted the bug/dc branch August 29, 2025 19:29
alfred-mikhael pushed a commit to alfred-mikhael/networkx that referenced this pull request Sep 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

nx.find_cliques_recursive: nonsensical output for some directed graphs

4 participants