Skip to content

Fix stale overlapping_sbm() docs about nodes in no block - #77

Draft
alexpghayes wants to merge 1 commit into
mainfrom
docs/overlapping-sbm-membership
Draft

alexpghayes wants to merge 1 commit into
mainfrom
docs/overlapping-sbm-membership

Conversation

@alexpghayes

Copy link
Copy Markdown
Collaborator

Bug

Since overlapping_sbm() started putting every node in at least one block, two places in its docs have been out of date:

  • the description said each node can belong to "zero, one, or several" blocks (R/undirected_overlapping_sbm.R:63);
  • the Z return value said rows "can contain any number of ones, including none".

Fix

  • The description now says each node belongs to one or more blocks.
  • The Z doc now says every row has at least one one, and how nodes that join no block in the Bernoulli draws are reassigned, matching the pi doc and the details.

Tests

Added to tests/testthat/test-undirected-overlapping-sbms.R: man/overlapping_sbm.Rd no longer contains either phrase (skipped when man/ isn't available, e.g. in installed tests), and every row of Z has at least one block. Fails against main's docs (2 failures), passes here. Full suite passes. Docs regenerated with roxygen2 7.3.2.

A test on documentation text is unusual. Drop it if you'd rather not keep it.

NEWS

Left out to avoid conflicting with #59. Probably not needed, since #59's existing overlapping_sbm() entries already describe the behavior.

🤖 Generated with Claude Code

Since every node was put in at least one block, the description and
the `Z` return value docs were wrong to say nodes can belong to zero
blocks and rows of `Z` can contain no ones.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

This branch has not been deployed

No deployments
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.

1 participant