Skip to content

Fix Graph.power deleting isolated vertices - #42625

Open
Ordoviz wants to merge 1 commit into
sagemath:developfrom
Ordoviz:graph-power-fix
Open

Fix Graph.power deleting isolated vertices#42625
Ordoviz wants to merge 1 commit into
sagemath:developfrom
Ordoviz:graph-power-fix

Conversation

@Ordoviz

@Ordoviz Ordoviz commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

According to Wikipedia, the kth power of a graph is another graph that has the same set of vertices. Our implementation, however, deletes isolated vertices. The fix is simple.

📝 Checklist

  • I have checked the documentation preview.

@github-actions

github-actions Bot commented Aug 4, 2026

Copy link
Copy Markdown

Documentation preview for this PR (built with commit 6cc10c2; changes) is ready! 🎉
This preview will update shortly after each push to this PR.

@dcoudert dcoudert left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

good catch. LGTM.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants