Skip to content

Conversation

dcoudert
Copy link
Contributor

Fixes #35532.

📚 Description

Fix corner cases (empty graph, graph without edges) in graph.maximum_average_degree.

📝 Checklist

  • The title is concise, informative, and self-explanatory.
  • The description explains in detail what this PR is about.
  • I have linked a relevant issue or discussion.
  • I have created tests covering the changes.
  • I have updated the documentation accordingly.

⌛ Dependencies

Accept suggestion of the referee.

Co-authored-by: Travis Scrimshaw <clfrngrown@aol.com>
Copy link
Collaborator

@tscrim tscrim left a comment

Choose a reason for hiding this comment

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

Thanks. LGTM.

@tscrim tscrim added this to the sage-10.0 milestone Apr 19, 2023
@github-actions
Copy link

Documentation preview for this PR is ready! 🎉
Built with commit: dcddb70

@vbraun vbraun merged commit 133a345 into sagemath:develop Apr 23, 2023
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.

ZeroDivisionError in graph.maximum_average_degree for the empty graph
4 participants