Distance code centric index

Share:

Description

This method calculates the distance code centric index of a graph.

Usage

1

Arguments

g

the input graph as a graphNEL object

dist

distance matrix of the graph g. Will be automatically calculated if not supplied.

Value

This returns the distance code centric index of the graph as a double-precision floating point number.

Author(s)

Lavanya Sivakumar, Michael Schutte

References

R. Todeschini and V. Consonni and R. Mannhold, Handbook of Molecular Descriptors, Wiley-VCH, Weinheim, Germany, 2002

Examples

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

# calculate Distance Matrix
dist <- distanceMatrix(g)

distanceCodeCentric(g, dist)

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