Learn R Programming

QuACN (version 1.8.0)

balabanJ: The Balaban J index

Description

This method calculates the Balaban J index.

Usage

balabanJ(g, dist = NULL)

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.

Value

It returns the Balaban J index.

Details

This method calculates the Balaban J index.

References

A. T. Balaban. Highly discriminating distance-based topological index. Chem.Phys.Lett., 89:383-397, 1991

Examples

Run this code
library(graph)
library(RBGL)
set.seed(123)
g <- randomGraph(1:8, 1:5, 0.36, weights=FALSE)

#calculate Distance Matrix
mat.dist <- distanceMatrix(g)

balabanJ(g)

Run the code above in your browser using DataLab