Closed szhorvat closed 3 months ago
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.
Your comment with guidelines does not mention adding an example.
Resolved conflicts and rebased on main
.
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
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 usingmax(degree())
? This function produces0
instead of-Inf
for empty vertex sets, which is convenient when using it as a building block.There was a documentation item for
\dots
fordegree()
, which did not seem to make sense. I removed it.This is blocked on the decision-making issue #853: do we use
v
orvids
?Explanation for beginners on how this PR was produced:
igraph_maxdegree()
was (re-)enabled infunctions-R.yaml
PARAM_NAMES
can be used to rename parameters from the upstreamfunctions.yaml
to fit the standards used in the R interfacePARAM_ORDER
is used not to reorder parameters, but to add the...
parameter to the R interface (denoted by*
in the interface definition). In the R interface, parameters following the...
must be spelt out with full name....
was added, we need@inheritParams rlang::args_dots_empty
in the documentationmake -f Makefile-cigraph src/rinterface.c R/aaa-auto.R
. The two files mentioned in this command are automatically generated. The generated R function (maxdegree_impl
) can either be wrapped by the final public function (max_degree()
) or in simple cases (like here) just assigned to it.R -q -e 'cpp11::cpp_register()'
since a new C function was added.R -q -e 'devtools::document()'
to (re-)generate the documentation files inman
as well as theNAMESPACE
file.#' @examples
devtools::test()
before submitting the PR.