energy: Graph energy

Description Usage Arguments Value Author(s) Examples

View source: R/energy.R

Description

This method calculates the energy of a graph.

Usage

1
energy(g)

Arguments

g

a graph as a graphNEL object.

Value

This method returns the energy of a graph as a double-precision floating point value.

Author(s)

Lavanya Sivakumar, Michael Schutte

Examples

1
2
3
4
5
library(graph)
set.seed(123)
g <- randomEGraph(as.character(1:6), 0.35)

energy(g)

QuACN documentation built on May 2, 2019, 8:18 a.m.