Repository navigation
Conversation
mycielskian() and make_mycielski_graph()
|
@copilot Make sure that al formulas and mathematical notation uses math mode, and not inline code, in the documentation. |
|
@szhorvat: Thanks, I saw this too. This is best written down in |
Updated all mathematical notation to use |
|
@copilot: Agent instructions are updated, adapt. |
Applied AGENTS.md guidelines in commit 1f3cc01:
Note: Removed |
@maelle What does one need to do to update this database? The C documentation for these is online already. @krlmlr We want to avoid |
|
The cdocs need a bit of work. For this branch we rely on the cdocs for the last v0.x version, would the function also be documented there? When I search for "Mycielski", I don't find it, not in v0.x, not in v1.0.0 . |
|
@copilot: Closely follow all agent instructions, amend as needed. |
Applied all AGENTS.md guidelines in commit cee9bd9:
|
|
@copilot: Do we need |
Yes, but only in 0.10.17, which was released at the same time as 1.0.0. Please don't use the Google Search box, there's an issue with that we could not yet fix. Use the index, and Command-F, https://igraph.org/c/html/latest/ix01.html |
Flattened onto the current main (post-#2779 rebase); content unchanged. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016M32izVHZPfxAqemAe4BrX
d5698b3 to
ec97b5d
Compare
|
This is how benchmark results would change (along with a 95% confidence interval in relative change) if ec97b5d is merged into main:
|
Resolve end-of-file test conflicts in tests/testthat/test-make.R and tests/testthat/test-operators.R by keeping both sides: this branch's mycielskian()/make_mycielski_graph() tests followed by main's ellipsis-migration argument-coverage sections. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016M32izVHZPfxAqemAe4BrX
|
This is how benchmark results would change (along with a 95% confidence interval in relative change) if d4491a3 is merged into main:
|
…skian-graph-functions
Validate the graph argument in `mycielskian()` via `ensure_igraph()` before delegating to the Stimulus-generated `mycielskian_impl()`. Document the special-case constructions for the null and singleton graphs, the extension to directed and non-simple graphs, and the convention for orders `k <= 1`, matching the C library documentation. Align `@return` wording with file conventions and reflow the roxygen prose as semantic line breaks. Add direct tests for `mycielski_graph_impl()` and `mycielskian_impl()` that assert real counts and agreement with the exported wrappers. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016M32izVHZPfxAqemAe4BrX
|
This is how benchmark results would change (along with a 95% confidence interval in relative change) if a575b2c is merged into main:
|
This PR was prepared with the assistance of GitHub Copilot,
and finalized with Claude Code.
Summary
Exposes
igraph_mycielskian()andigraph_mycielski_graph()from the C library to R users.
Functions added:
mycielskian(graph, k = 1, ...)—applies the Mycielski transformation
ktimes to a graphmake_mycielski_graph(k, ...)—creates the Mycielski graph of order
kmycielski_graph(k, ...)—constructor spec for use with
make_()Implementation notes
mycielskian_impl()and
mycielski_graph_impl(),with all arguments named and no
.Call()in hand-written code.mycielskian()validates its input viaensure_igraph()before delegating.
ksits before the ellipsis as a defining model parameter;the trailing
...is guarded withcheck_dots_empty()in all three functions.
including the special-case constructions
for the null and singleton graphs,
the extension to directed and non-simple graphs,
and the convention for orders
k <= 1.It uses math mode (
\eqn{}) for all formulas,semantic line breaks,
experimental badges,
and a "Mycielski graph" concept for the pkgdown reference index.
C/igraph 0.10.17 documentation of both functions.
Testing
_impl()snapshot and structured tests exist intests/testthat/test-aaa-auto.R._impl()tests(full argument set, real counts, agreement with the wrappers)
plus structured and error snapshot tests for the exported functions
live in
tests/testthat/test-make.R(constructor, including the
make_(mycielski_graph(k))form)and
tests/testthat/test-operators.R(transformation).Fixes #2089