Learn R Programming

QuACN (version 1.8.0)

distanceCodeCentric: Distance code centric index

Description

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

Usage

distanceCodeCentric(g, dist = NULL)

Arguments

g
the input graph as a graphNEL object
dist
distance matrix of the graph g. Will be automatically calculated if not supplied.

Value

double-precision floating point number.

References

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

Examples

Run this code
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)

Run the code above in your browser using DataLab