Description Usage Arguments Value Author(s) References Examples
View source: R/productOfRowSums.R
This method calculates the product of row sums.
1 | productOfRowSums(g, dist = NULL, log = FALSE)
|
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. |
This method returns the product of row sums.
Laurin Mueller
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.
1 2 3 4 5 | library(RBGL)
set.seed(123)
g <- randomGraph(1:8, 1:5, 0.36, weights=FALSE)
productOfRowSums(g)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.