Description Usage Arguments Value Author(s) References Examples
View source: R/augmentedZagreb.R
This method calculates the augmented Zagreb index.
1 | augmentedZagreb(g, deg = NULL)
|
g |
a graph as a graphNEL object. |
deg |
the degree of each node of g. Will be automatically calculated if not supplied. |
This method returns the augmented Zagreb index of a graph as a double-precision floating point value.
Lavanya Sivakumar, Michael Schutte
B. Furtula and A. Graovac and D. Vukicevic: Augmented Zagreb Index. Journal of Mathematical Chemistry, 48:370-380, 2010.
1 2 3 4 5 6 7 8 | library(graph)
set.seed(123)
g <- randomEGraph(as.character(1:8), 0.6)
# optional: pre-calculate degree of nodes in g
vec.degree <- graph::degree(g)
augmentedZagreb(g, vec.degree)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.