graphDensity | R Documentation |
The graph density is defined as d = E/(V*(V-1)/2) where E is the number of edges and V of nodes.
graphDensity(graph)
graph |
A graph object |
The density of a graph lies between [0,1]
A value between [0,1]
Jitao David Zhang jitao_david.zhang@roche.com
Aittokallio and Schwikowski (2006), Graph-based methods for analysing networks in cell biology, Briefings in Bioinformatics, 7, 243-255.
tnodes <- c("Hamburg","Dortmund","Bremen", "Paris") tedges <- list("Hamburg"=c("Dortmund", "Bremen"), "Dortmund"=c("Hamburg"), "Bremen"=c("Hamburg"), "Paris"=c()) tgraph <- new("graphNEL", nodes = tnodes, edgeL = tedges) graphDensity(tgraph)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.