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

Description Usage Arguments Value Author(s) References Examples

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))


Search within the QuACN package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.