pub struct DiGraph { /* private fields */ }Expand description
A struct representing a directed graph using an adjacency matrix.
Implementations§
Trait Implementations§
Source§impl BackdoorCriterion for DiGraph
impl BackdoorCriterion for DiGraph
Source§impl<'de> Deserialize<'de> for DiGraph
impl<'de> Deserialize<'de> for DiGraph
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Graph for DiGraph
impl Graph for DiGraph
Source§fn complete<I, V>(labels: I) -> Self
fn complete<I, V>(labels: I) -> Self
Creates a complete graph with the given labels. Read more
Source§impl GraphicalSeparation for DiGraph
impl GraphicalSeparation for DiGraph
Source§impl JsonIO for DiGraph
impl JsonIO for DiGraph
Source§fn write_json(&self, path: &str)
fn write_json(&self, path: &str)
Write the instance to a JSON file. Read more
Source§impl Labelled for DiGraph
impl Labelled for DiGraph
Source§fn label_to_index(&self, x: &str) -> usize
fn label_to_index(&self, x: &str) -> usize
Return the variable index for a given label. Read more
Source§fn index_to_label(&self, x: usize) -> &str
fn index_to_label(&self, x: usize) -> &str
Return the label for a given variable index. Read more
Source§fn index_to(&self, x: usize, other: &Labels) -> usize
fn index_to(&self, x: usize, other: &Labels) -> usize
Maps an index from this model to another model with the same label. Read more
Source§fn indices_to(&self, x: &Set<usize>, other: &Labels) -> Set<usize>
fn indices_to(&self, x: &Set<usize>, other: &Labels) -> Set<usize>
Maps a set of indices from this model to another model with the same labels. Read more
Source§impl TopologicalOrder for DiGraph
impl TopologicalOrder for DiGraph
impl Eq for DiGraph
impl StructuralPartialEq for DiGraph
Auto Trait Implementations§
impl Freeze for DiGraph
impl RefUnwindSafe for DiGraph
impl Send for DiGraph
impl Sync for DiGraph
impl Unpin for DiGraph
impl UnwindSafe for DiGraph
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more