pub fn signless_laplacian_energy(graph: &Graph) -> IgraphResult<f64>Expand description
Compute the signless Laplacian energy.
QE = Σ |q_i - 2m/n| where m = |E| and n = |V|.
This is the deviation of the signless Laplacian eigenvalues from
their mean value 2m/n.
§Examples
use rust_igraph::{Graph, signless_laplacian_energy};
// K_3: eigenvalues {1, 1, 4}, mean = 6/3 = 2
// QE = |1-2| + |1-2| + |4-2| = 1 + 1 + 2 = 4
let g = Graph::from_edges(&[(0,1),(1,2),(0,2)], false, Some(3)).unwrap();
let qe = signless_laplacian_energy(&g).unwrap();
assert!((qe - 4.0).abs() < 0.1);