distanceCodeCentric: Distance code centric index

Description Usage Arguments Value Author(s) References Examples

View source: R/distanceCodeCentric.R

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)

QuACN documentation built on May 29, 2017, 9:51 p.m.

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