pub trait GraphConversion {
// Required methods
fn bit_vec(&self) -> &[usize];
fn size(&self) -> usize;
fn is_directed(&self) -> bool;
// Provided methods
fn to_dot(&self, id: Option<usize>) -> String { ... }
fn to_undirected_dot(&self, dot: &mut String, bit_vec: &[usize], n: usize) { ... }
fn to_directed_dot(&self, dot: &mut String, bit_vec: &[usize], n: usize) { ... }
fn to_adjmat(&self) -> String { ... }
fn to_flat(&self) -> String { ... }
fn to_net(&self) -> String { ... }
}
Expand description
Conversion trait for graphs into various text graph formats
Required Methods§
Sourcefn is_directed(&self) -> bool
fn is_directed(&self) -> bool
Returns true if the graph is directed