sequence

Function sequence 

Source
pub fn sequence(
    adj: &DMatrix<f64>,
    mu: f64,
    influence: f64,
    dependency: f64,
) -> Vec<usize>
Expand description

Sequencing a graph based on Markov steady-state flow calculations on its adjacency matrix.

§Arguments

  • adj - Square adjacency matrix with nodes in identical order on both axis. Only positive adjacency values are used in the calculations.
  • mu - Evaporation constant. Factor by which flow is reduced after passing through a node.
  • influence - The weight by which nodal influence is taken into account. Forces influential nodes to be put earlier in the chain.
  • dependency - The weight by which nodal dependency is taken into account. Forces dependent nodes to be put later in the chain.

§Returns

A vector with the node indices in the sequenced order. E.g. the first vector entry denotes the node index w.r.t. the adjacency matrix that should be put first.