Learn R Programming

QuACN (version 1.8.0)

geometricArithmetic3: Third geometric-arithmetic index

Description

This method calculates the third geometric-arithmetic (GA3) index.

Usage

geometricArithmetic3(g, dist = NULL)

Arguments

g
a graph as a graphNEL object.
dist
the distance matrix of g. Will be automatically calculated if not supplied.

Value

as a double-precision floating point value.

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

Run this code

library(graph)
set.seed(123)
g <- randomEGraph(as.character(1:9), 0.5)

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

geometricArithmetic3(g, mat.dist)

Run the code above in your browser using DataLab