geometricArithmetic2: Second geometric-arithmetic index

Description Usage Arguments Value Author(s) References Examples

View source: R/geometricArithmetic2.R

Description

This method calculates the second geometric-arithmetic (GA2) index.

Usage

1

Arguments

g

a graph as a graphNEL object.

dist

the distance matrix of g. Will be automatically calculated if not supplied.

Value

This method returns the second geometric-arithmetic index of a graph as a double-precision floating point value.

Author(s)

Lavanya Sivakumar, Michael Schutte

References

B. Zhou and I. Gutman and B. Furtula and Z. Du: On two types of geometric-arithmetic index. Chemical Physics Letters, 482:153-155, 2009

Examples

1
2
3
4
5
6
7
8
library(graph)
set.seed(123)
g <- randomEGraph(as.character(1:9), 0.5)

# optional: pre-calculate distance matrix
mat.dist <- distanceMatrix(g)

geometricArithmetic2(g, mat.dist)

QuACN documentation built on May 2, 2019, 5:46 p.m.