Learn R Programming

QuACN (version 1.8.0)

balabanlike1: BALABAN-like information index U(G)

Description

This method calculates the BALABAN-like information index U(G).

Usage

balabanlike1(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 return the BALABAN-like information index U(G).

Details

This method calculates the BALABAN-like information index U(G).

References

A. T. Balaban and T. S. Balaban, New Vertex Invariants and Topological Indices of Chemical Graphs Based on Information on Distances., J. Math. Chem., 1991, 8:383-397

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)

balabanlike1(g,mat.dist)

Run the code above in your browser using DataLab