Description Usage Arguments Value Author(s) References Examples

View source: R/geometricArithmetic3.R

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

1 | ```
geometricArithmetic3(g, dist = NULL)
``` |

`g` |
a graph as a graphNEL object. |

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

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

Lavanya Sivakumar, Michael Schutte

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

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)
geometricArithmetic3(g, mat.dist)
``` |

QuACN documentation built on May 19, 2017, 8:36 p.m.

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.