Learn R Programming

QuACN (version 1.8.0)

distSumConnectMatrix: Distance-sum-connectivity matrix

Description

This method calculates the distance-sum-connectivity matrix of a given graph.

Usage

distSumConnectMatrix(g, dist=NULL)

Arguments

g
a graph as a graphNEL object.
dist
the pre-computed distance matrix of the graph. Will be calculated automatically if NULL.

Value

given graph. This is an adjacency matrix where each edge is weighted according to the reciprocal square root of the product of the adjacent vertices' distance sum.

References

K. Szymanski, W. Mueller, J. Knop, and N. Trinajsti\'c. On the Identification Numbers for Chemical Structures. International Journal of Quantum Chemistry, 30(S20):173-183, 1986

Examples

Run this code
library(RBGL)
set.seed(123)
g <- randomGraph(1:8, 1:5, 0.36, weights=FALSE)

distSumConnectMatrix(g)

Run the code above in your browser using DataLab