pub trait SwhGraph {
// Required methods
fn path(&self) -> &Path;
fn is_transposed(&self) -> bool;
fn num_nodes(&self) -> usize;
fn num_arcs(&self) -> u64;
fn has_arc(&self, src_node_id: NodeId, dst_node_id: NodeId) -> bool;
// Provided method
fn has_node(&self, node_id: NodeId) -> bool { ... }
}
Required Methods§
sourcefn is_transposed(&self) -> bool
fn is_transposed(&self) -> bool
Returns whether the graph is in the ori->snp->rel,rev->dir->cnt
direction
(with a few dir->rev
arcs)