[][src]Trait qmc::sse::qmc_traits::rvb::EdgeNavigator

pub trait EdgeNavigator {
    pub fn n_bonds(&self) -> usize;
pub fn bonds_for_var(&self, var: usize) -> &[usize];
pub fn vars_for_bond(&self, bond: usize) -> (usize, usize);
pub fn bond_prefers_aligned(&self, bond: usize) -> bool; pub 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

pub fn n_bonds(&self) -> usize[src]

Number of bonds

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

Get the bonds attached to this variable.

pub fn vars_for_bond(&self, bond: usize) -> (usize, usize)[src]

Get the variables associated with this bond.

pub fn bond_prefers_aligned(&self, bond: usize) -> bool[src]

Does the bond prefer aligned variables or antialigned.

Loading content...

Provided methods

pub fn other_var_for_bond(&self, var: usize, bond: usize) -> Option<usize>[src]

Get the other variable attached by a bond

Loading content...

Implementors

Loading content...