Magnitude-based information index by Bonchev I_D^W(G)

Share:

Description

This method calculates the magnitude-based information index by Bonchev I_D^W(G)

Usage

1
bonchev2(g, dist = NULL, wien = 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.

wien

the Wiener index of g.

Value

This method returns the magnitude-based information index by Bonchev I_D^W(G).

Author(s)

Laurin Mueller <laurin@eigenlab.net>

References

D. Bonchev and N. Trinajstic, Information theory, distance matrix and molecular branching, J. Chem. Phys., 67:4517-4533, 1977

Examples

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


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

bonchev2(g)
bonchev2(g,mat.dist, wiener(g))

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.