Description Usage Arguments Value Author(s) References Examples
View source: R/complexityIndexB.R
This method calcualtes the complexity index B of a given graph
1 | complexityIndexB(g, dist = NULL, deg = NULL)
|
g |
a graph as a graphNEL object. |
dist |
the distance matrix of the graph. If the parameter is empty the distance matrix will be calculated within the function. |
deg |
the degree of each node |
This returns calcualtes the complexity index B.
Laurin Mueller
D. Bonchev and D. H. Rouvray, Complexity in Chemistry, Biology, and Ecology, ser. Mathematical and Computational Chemistry. Springer, 2005, New York, NY, USA.
1 2 3 4 5 | library(RBGL)
set.seed(123)
g <- randomGraph(1:8, 1:5, 0.36, weights=FALSE)
complexityIndexB(g)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.