Description Usage Arguments Value Author(s) References Examples
View source: R/distanceDegreeCentric.R
This method calculates the distance degree centric index of a graph.
1 | distanceDegreeCentric(g, dist = NULL)
|
g |
the input graph as a graphNEL object |
dist |
distance matrix of the graph g. Will be automatically calculated if not supplied. |
This returns the distance degree centric index of the graph as a double-precision floating point number.
Lavanya Sivakumar, Michael Schutte
R. Todeschini and V. Consonni and R. Mannhold, Handbook of Molecular Descriptors, Wiley-VCH, Weinheim, Germany, 2002
1 2 3 4 5 6 7 8 9 | library(graph)
library(RBGL)
set.seed(123)
g <- randomGraph(1:8, 1:5, 0.36, weights=FALSE)
# calculate Distance Matrix
dist <- distanceMatrix(g)
distanceDegreeCentric(g, dist)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.