Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement degree-preserving network shuffle #116

Open
cthoyt opened this issue Oct 2, 2017 · 3 comments
Open

Implement degree-preserving network shuffle #116

cthoyt opened this issue Oct 2, 2017 · 3 comments
Assignees

Comments

@cthoyt
Copy link
Member

cthoyt commented Oct 2, 2017

@ddomingof do you have a reference for the paper talking about making randomized graphs?

@ddomingof
Copy link
Member

https://www.ncbi.nlm.nih.gov/pmc/articles/PMC3307026/
"""
In order to obtain an appropriate null distribution on causal graphs, it is important to require that the randomized graphs share basic structural properties with the original causal graph, yet have enough flexibility to reflect the space of reasonable graphical models. We propose to fix the vertex set V of our original graph G = (V, E) and randomize the edges, requiring that the randomized versions G' = (V, E') maintain three properties:

  1. Vertex degrees. We require that each vertex a ∈ V have the same positive and negative in- and out-degrees in G' as in G. This requirement is important as biological networks typically have long-tailed degree distributions that include highly connected "hubs" as well as vertices with few incident edges.

  2. Simplicity. We disallow self-edges and parallel edges in G' as these are not present in G. In other words, for any two vertices a, b ∈ V, there cannot be an edge from a to itself and there can be at most one directed edge from a to b, either positive or negative.

  3. Connectedness. We require that G' be connected, as is the case for our original biological network G. For our signed directed graphs, we take connectedness to mean that the graph induced by ignoring edge signs and directions is connected.
    """

@cthoyt
Copy link
Member Author

cthoyt commented Oct 2, 2017

Awesome, thanks. This is a low priority but good to have on the to-do list

@ddomingof
Copy link
Member

Definitely

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants