Learn R Programming

QuACN (version 1.8.0)

balabanID: Balaban ID number

Description

This method calculates the Balaban ID number.

Usage

balabanID(g, dist=NULL)

Arguments

g
a graph as a graphNEL object.
dist
the pre-computed distance matrix of the graph. Will be calculated automatically if NULL.

Value

weighted path count based on the vertex distance degree.

References

A. T. Balaban. Numerical Modelling of Chemical Structures: Local Graph Invariants and Topological Indices. In Graph Theory and Topology in Chemistry, R. King and D. Rouvray, Eds., pp. 159-176, 1987

Examples

Run this code
set.seed(987)
g <- randomEGraph(LETTERS[1:10], 0.3)

balabanID(g)

Run the code above in your browser using DataLab