Contents Menu Expand Light mode Dark mode Auto light/dark, in light mode Auto light/dark, in dark mode Skip to content
Reticula
Reticula
  • Home
  • Installation
  • Quick Start
  • Networks and network types
  • Input/Output and interoperation
  • Randomness
  • Generating networks
    • Path graphs
    • Cycle graphs
    • Regular ring lattice
    • Square grid graphs
    • Complete graphs
    • Random Erdős–Rényi network
    • Random Barabási–Albert network
    • Random k-regular network
    • Random degree-sequence network
    • Random expected degree-sequence network
    • Random uniform hypergraphs
    • Fully-mixed temporal network
    • Link activation temporal network
    • Node activation temporal network
  • Randomising networks
    • Static Network Link Shuffling
    • Temporal Network Link Shuffling
    • Event shuffling
    • Timeline Shuffling
  • Network operations
    • Subgraph operations
    • Add/Remove operations
    • Occupation operations
    • Cartesian product
    • Graph union
  • Algorithms
    • Vertex degrees
    • Edge degrees (orders)
    • Graphicallity
    • Graph properties
    • Assortativity
    • Static network reachability
    • Temporal network reachability
    • Event graphs
  • Examples
    • Isotropic bond percolation in G(n, p) networks
    • Spreading and reachability in temporal networks
  • Citing Reticula
  • Bibliography
Back to top
View this page
Edit this page

Static Network Link Shuffling¶

Degree-sequence preserving shuffling¶

microcanonical_reference_models.degree_sequence_preserving_shuffling(static_network, random_state)¶
microcanonical_reference_models.degree_sequence_preserving_shuffling(static_network, random_state, rewires: int)¶
template<undirected_static_network_edgec EdgeT, std::uniform_random_bit_generator Gen>
requires is_dyadic_v<EdgeT>
network<EdgeT> microcanonical_reference_models::degree_sequence_preserving_shuffling(const network<EdgeT> &temp, Gen &generator)¶
template<undirected_static_network_edgec EdgeT, std::uniform_random_bit_generator Gen>
requires is_dyadic_v<EdgeT>
network<EdgeT> microcanonical_reference_models::degree_sequence_preserving_shuffling(const network<EdgeT> &temp, Gen &generator, std::size_t rewires)¶

Produces a degree-sequence preserving shuffling of the given undirected dyadic static network. The variant with the rewires parameter performs the given number of rewirings. The variant without the rewires parameter performs a number of rewirings equal to 100 times the number of edges in the network.

Joint degree-sequence preserving shuffling¶

microcanonical_reference_models.joint_degree_sequence_preserving_shuffling(static_network, random_state)¶
microcanonical_reference_models.joint_degree_sequence_preserving_shuffling(static_network, random_state, rewires: int)¶
template<undirected_static_network_edgec EdgeT, std::uniform_random_bit_generator Gen>
requires is_dyadic_v<EdgeT>
network<EdgeT> microcanonical_reference_models::joint_degree_sequence_preserving_shuffling(const network<EdgeT> &temp, Gen &generator)¶
template<undirected_static_network_edgec EdgeT, std::uniform_random_bit_generator Gen>
requires is_dyadic_v<EdgeT>
network<EdgeT> microcanonical_reference_models::joint_degree_sequence_preserving_shuffling(const network<EdgeT> &temp, Gen &generator, std::size_t rewires)¶

Produces a joint degree-sequence preserving shuffling of the given undirected, dyadic static network. The variant with the rewires parameter performs the given number of rewirings. The variant without the rewires parameter performs a number of rewirings equal to 100 times the number of edges in the network.

Next
Temporal Network Link Shuffling
Previous
Randomising networks
Made with Sphinx and @pradyunsg's Furo
On this page
  • Static Network Link Shuffling
    • Degree-sequence preserving shuffling
      • microcanonical_reference_models.degree_sequence_preserving_shuffling()
      • microcanonical_reference_models.degree_sequence_preserving_shuffling()
      • degree_sequence_preserving_shuffling()
      • degree_sequence_preserving_shuffling()
    • Joint degree-sequence preserving shuffling
      • microcanonical_reference_models.joint_degree_sequence_preserving_shuffling()
      • microcanonical_reference_models.joint_degree_sequence_preserving_shuffling()
      • joint_degree_sequence_preserving_shuffling()
      • joint_degree_sequence_preserving_shuffling()