igraph / rigraph

igraph R package
https://r.igraph.org
543 stars 201 forks source link

feat: `max_degree()` #1403

Closed szhorvat closed 3 months ago

szhorvat commented 3 months ago

Please see the chatroom before you comment here.

This adds max_degree(), and is also meant to serve as an example for beginner contirbutors on how to expose a new function.

Why do we want max_degree() instead of just using max(degree())? This function produces 0 instead of -Inf for empty vertex sets, which is convenient when using it as a building block.

There was a documentation item for \dots for degree(), which did not seem to make sense. I removed it.

This is blocked on the decision-making issue #853: do we use v or vids?


Explanation for beginners on how this PR was produced:

aviator-app[bot] commented 3 months ago

Current Aviator status

Aviator will automatically update this comment as the status of the PR changes. Comment /aviator refresh to force Aviator to re-examine your PR (or learn about other /aviator commands).

This PR was merged using Aviator.


See the real-time status of this PR on the Aviator webapp.
Use the Aviator Chrome Extension to see the status of your PR within GitHub.
maelle commented 3 months ago

Your comment with guidelines does not mention adding an example.

szhorvat commented 3 months ago

Resolved conflicts and rebased on main.

winnieywu commented 3 months ago

Unsubscirbe

On Thu, Jun 20, 2024 at 10:18 AM Szabolcs Horvát @.***> wrote:

Resolved conflicts and rebased on main.

— Reply to this email directly, view it on GitHub https://github.com/igraph/rigraph/pull/1403#issuecomment-2180960683, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADMU227WTZQYHLYOW24VRLTZILXELAVCNFSM6AAAAABJMUOOV2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOBQHE3DANRYGM . You are receiving this because you are subscribed to this thread.Message ID: @.***>

--

About Winnie http://about.me/winnieywu| Facebook page http://www.facebook.com/profile.php?id=1290459410 | Twitter @Winnietph https://twitter.com/#%21/Winnietph