Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: statnet/ergm
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: statnet/ergm
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: loops
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 8 commits
  • 29 files changed
  • 1 contributor

Commits on Dec 17, 2025

  1. Implemented support for networks with self-loops:

    * *Network structs now have an additional element, Rboolean loops_flag.
    * *NetworkInitialize() functions now takes an additional argument, Rboolean loops_flag.
    * Redgelist2*Network() functions now set this flag as well.
    * Macro-based backwards compatibility for calling without a loops_flag has been provided.
    * GetRandDyad() returns self-loop dyads if nwp->loops_flag is TRUE.
    * *EXEC_THROUGH_EDGES*() macros now skip the self-edge for the in-edge half of the iteration.
    krivit committed Dec 17, 2025
    Configuration menu
    Copy the full SHA
    7d19c1a View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    470278f View commit details
    Browse the repository at this point in the history
  3. Added an inline function *NetworkInitializeLike(nwp) to construct an …

    …empty network with the same attributes as nwp.
    krivit committed Dec 17, 2025
    Configuration menu
    Copy the full SHA
    3e995d7 View commit details
    Browse the repository at this point in the history
  4. In *NetworkInitialize(), bipartite != 0 sets loops_flag to 0; *Networ…

    …kCopy() now copies loops_flag; *Network2Redgelist() now also sets the "loops" attribute; and a TODO to fix *FindithNonedge() for self-loops has been added.
    krivit committed Dec 17, 2025
    Configuration menu
    Copy the full SHA
    4021cce View commit details
    Browse the repository at this point in the history
  5. Terms and utilities that call *NetworkInitialize() now either also sp…

    …ecify loops_flag or use NetworkInitializeLike().
    krivit committed Dec 17, 2025
    Configuration menu
    Copy the full SHA
    6c976a0 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    56ce9d6 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    82bbb5e View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    135146c View commit details
    Browse the repository at this point in the history
Loading