Learn R Programming

QuACN (version 1.8.0)

productOfRowSums: Product of Row Sums

Description

This method calculates the product of row sums.

Usage

productOfRowSums(g, dist = NULL, log = FALSE)

Arguments

g
a graph as a graphNEL object.

dist
the distance matrix of the graph. If the parameter is empty the distance matrix will be calculated within the function.

log
if TRUE it returns the log of the product. The default value is FALSE.

Value

References

H. P. Schultz, E. B. Schultz, and T. P. Schultz, Topological Organic Chemistry. 4. Graph Theory, Matrix Permanents, and Topological Indices of Alkanes, Journal of Chemical Information and Computer Sciences, vol. 32, no. 1, pp. 69-72, 1992.

Examples

Run this code

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

productOfRowSums(g)

Run the code above in your browser using DataLab