pub trait IsRegular {
// Required method
fn is_regular(&self) -> bool;
}Expand description
Check whether a digraph is regular.
Required Methods§
Sourcefn is_regular(&self) -> bool
fn is_regular(&self) -> bool
Check whether the digraph is regular.
§Examples
use graaf::{
AdjacencyList,
Circuit,
IsRegular,
RemoveArc,
};
let mut digraph = AdjacencyList::circuit(7);
assert!(digraph.is_regular());
digraph.remove_arc(6, 0);
assert!(!digraph.is_regular());