Description Usage Arguments Value Author(s) References Examples
View source: R/distanceDegreeCompactness.R
This method calculates a compactness measure based on recognizing the center of a graph and analyzing the distance degrees of the vertices in all of its j-spheres.
Note that this function only gives reliable results for acyclic graphs.
1 |
g |
a graph as a graphNEL object. |
dist |
the distance matrix of the graph. Will be calculated automatically if not supplied. |
The distance-degree-based compactness value as a double-precision floating point value.
Michael Schutte
S. C. Basak, A. T. Balaban and S. Bertelsen, New centric topological indexes for acyclic molecules (trees) and substituents (rooted trees), and coding of rooted trees, MATCH Commun. Math. Comput. Chem., 30:55-72, 1994
1 2 3 4 | set.seed(987)
g <- randomEGraph(as.character(1:10), 0.3)
distanceDegreeCompactness(g)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.