pub struct CourcelleMSOLChecker {
pub max_treewidth: usize,
pub formula: String,
pub mso_version: u8,
}Expand description
Courcelle’s MSO₂ model checker for bounded-treewidth graphs.
Fields§
§max_treewidth: usizeMaximum treewidth bound.
formula: StringThe MSO formula (as a string description).
mso_version: u8Whether to use MSO₁ or MSO₂.
Implementations§
Source§impl CourcelleMSOLChecker
impl CourcelleMSOLChecker
Sourcepub fn new(
max_treewidth: usize,
formula: impl Into<String>,
mso_version: u8,
) -> Self
pub fn new( max_treewidth: usize, formula: impl Into<String>, mso_version: u8, ) -> Self
Construct a Courcelle MSO checker.
Sourcepub fn running_time(&self) -> String
pub fn running_time(&self) -> String
Returns the running time of the MSO model-checking algorithm.
Sourcepub fn check(&self, adj: &[Vec<usize>]) -> bool
pub fn check(&self, adj: &[Vec<usize>]) -> bool
Check if the graph (given as adjacency list) satisfies the stored formula. Simplified: checks if treewidth is within bounds, then returns true.
Sourcepub fn decidable_properties(&self) -> String
pub fn decidable_properties(&self) -> String
Returns the class of graph properties decidable by this checker.
Trait Implementations§
Source§impl Clone for CourcelleMSOLChecker
impl Clone for CourcelleMSOLChecker
Source§fn clone(&self) -> CourcelleMSOLChecker
fn clone(&self) -> CourcelleMSOLChecker
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for CourcelleMSOLChecker
impl RefUnwindSafe for CourcelleMSOLChecker
impl Send for CourcelleMSOLChecker
impl Sync for CourcelleMSOLChecker
impl Unpin for CourcelleMSOLChecker
impl UnsafeUnpin for CourcelleMSOLChecker
impl UnwindSafe for CourcelleMSOLChecker
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more