pub trait PriorKnowledge: Sync {
// Required methods
fn forbidden(&self) -> &HashSet<(usize, usize)>;
fn has_forbidden(&self, x: usize, y: usize) -> bool;
fn add_forbidden(&mut self, x: usize, y: usize) -> bool;
fn del_forbidden(&mut self, x: usize, y: usize) -> bool;
fn required(&self) -> &HashSet<(usize, usize)>;
fn has_required(&self, x: usize, y: usize) -> bool;
fn add_required(&mut self, x: usize, y: usize) -> bool;
fn del_required(&mut self, x: usize, y: usize) -> bool;
fn labels(&self) -> &BTreeSet<String>;
}
Expand description
Prior knowledge trait
Required Methods§
Sourcefn has_forbidden(&self, x: usize, y: usize) -> bool
fn has_forbidden(&self, x: usize, y: usize) -> bool
Checks if edge is forbidden.
Sourcefn add_forbidden(&mut self, x: usize, y: usize) -> bool
fn add_forbidden(&mut self, x: usize, y: usize) -> bool
Add edge to the forbidden set.
Sourcefn del_forbidden(&mut self, x: usize, y: usize) -> bool
fn del_forbidden(&mut self, x: usize, y: usize) -> bool
Delete edge from the forbidden set.
Sourcefn has_required(&self, x: usize, y: usize) -> bool
fn has_required(&self, x: usize, y: usize) -> bool
Checks if edge is required.
Sourcefn add_required(&mut self, x: usize, y: usize) -> bool
fn add_required(&mut self, x: usize, y: usize) -> bool
Add edge to the required set.
Sourcefn del_required(&mut self, x: usize, y: usize) -> bool
fn del_required(&mut self, x: usize, y: usize) -> bool
Delete edge from the required set.