Learn R Programming

QuACN (version 1.8.0)

minBalabanID: Balaban ID number considering shortest paths only

Description

This method calculates a modified, faster version of the Balaban ID number.

Usage

minBalabanID(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

weights of all the shortest paths in the graph. This results in different values only if the graph contains cycles.

References

O. Ivanciuc and A. Balaban. Design of Topological Indices. Part 3. New Identification Numbers for Chemical Structures: MINID and MINSID. Croatica chemica acta, 69:9-16, 1996

Examples

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

minBalabanID(g)

Run the code above in your browser using DataLab