harary: Harary Index

Description Usage Arguments Details Value Author(s) References Examples

View source: R/harary.R

Description

This method calculates the Harary Index.

Usage

1

Arguments

g

a graph as a graphNEL object.

dist

the distance matrix of the graph. If the parameter is empty the distance matrix will be calculated within the function.

Details

This method calculates the Hararay index:

Value

It returns the Harary Index.

Author(s)

Laurin Mueller

References

A. T. Balaban and O. Ivanciuc, Historical Development of Topological Indices, in Topological Indices and Related Descriptors in QSAR and QSPAR, J. Devillers and A. T. Balaban, Eds. Gordon and Breach Science Publishers, 1999, pp. 21-57, Amsterdam, The Netherlands.

Examples

1
2
3
4
5
library(RBGL)
set.seed(123)
g <- randomGraph(1:8, 1:5, 0.36, weights=FALSE)

harary(g)

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