Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Jan 27, 2026

The consensus_tree() example used the default num.samples = 10000, causing slow execution during R CMD check (~several seconds).

Changes:

  • Set num.samples = 100 in the example
  • Example now runs in ~0.2 seconds (verified under 1 second requirement)
  • Regenerated documentation with devtools::document()
## The consensus tree for it
consensus_tree(g, hrg = hrg, start = TRUE, num.samples = 100)

  • By submitting this pull request, I assign the copyright of my contribution to The igraph development team.

💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Co-authored-by: krlmlr <1741643+krlmlr@users.noreply.github.com>
Copilot AI changed the title [WIP] Add example for consensus_tree from fit_hrg example docs: limit iterations in consensus_tree() example for fast execution Jan 27, 2026
Copilot AI requested a review from krlmlr January 27, 2026 08:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants