An open API service indexing awesome lists of open source software.

https://github.com/arpith/rewiring

Perform random rewiring of a graph
https://github.com/arpith/rewiring

Last synced: 4 months ago
JSON representation

Perform random rewiring of a graph

Awesome Lists containing this project

README

          

# rewiring
Rewiring of two disjoint edges is a natural operation on a graph G that preserves the degree sequence.

Let (u,v) and (x,y) be two disjoint edges with 4 distinct vertices.
In a rewiring of these edges we omit both and replace them with the edges (u,x) and (v,y) or with the edges (u,y) and (v,x) if these edges do not already exist.

Depending on the existing edges from u and v to x and y, sometimes there are 2 possible ways to do the rewiring, sometimes only one way, and sometimes it is impossible.