distanceDegreeCentric: Distance degree centric index

Description Usage Arguments Value Author(s) References Examples

View source: R/distanceDegreeCentric.R

Description

This method calculates the distance degree 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 degree 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)

distanceDegreeCentric(g, dist)

QuACN documentation built on May 2, 2019, 5:46 p.m.