Description Usage Arguments Value Author(s) Examples
This method calculates the energy of a graph.
1 | energy(g)
|
g |
a graph as a graphNEL object. |
This method returns the energy of a graph as a double-precision floating point value.
Lavanya Sivakumar, Michael Schutte
1 2 3 4 5 | library(graph)
set.seed(123)
g <- randomEGraph(as.character(1:6), 0.35)
energy(g)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.