[][src]Trait qmc::sse::semi_classical::EdgeNavigator

pub trait EdgeNavigator {
    fn bonds_for_var(&self, var: usize) -> &[usize];
fn vars_for_bond(&self, bond: usize) -> (usize, usize);
fn bond_prefers_aligned(&self, bond: usize) -> bool; fn other_var_for_bond(&self, var: usize, bond: usize) -> Option<usize> { ... } }

A struct which allows navigation around the variables in a model.

Required methods

fn bonds_for_var(&self, var: usize) -> &[usize]

Get the bonds attached to this variable.

fn vars_for_bond(&self, bond: usize) -> (usize, usize)

Get the variables associated with this bond.

fn bond_prefers_aligned(&self, bond: usize) -> bool

Does the bond prefer aligned variables or antialigned.

Loading content...

Provided methods

fn other_var_for_bond(&self, var: usize, bond: usize) -> Option<usize>

Get the other variable attached by a bond

Loading content...

Implementors

Loading content...