Skip to main content

GraphBackend

Trait GraphBackend 

Source
pub trait GraphBackend:
    Debug
    + Send
    + Sync {
    // Required methods
    fn edit(
        &self,
        g: &Graph,
        z: &[f64],
        policy: MatchPolicy,
        target: Option<&Graph>,
    ) -> Graph;
    fn ok(&self, g: &Graph) -> bool;
}
Expand description

Graph backend trait — PRD §5.3

Required Methods§

Source

fn edit( &self, g: &Graph, z: &[f64], policy: MatchPolicy, target: Option<&Graph>, ) -> Graph

Edit graph: G’ = ED(G ⊕ z, policy, G*)

Source

fn ok(&self, g: &Graph) -> bool

GraphOK check

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§