Skip to main content

materialize

Function materialize 

Source
pub fn materialize<Extra, V>(
    classifier: &GraphClassifier<Extra, V>,
    policy: &ReconciliationPolicy<V::MergeStrategy>,
    view: GraphView<Extra, V>,
) -> PatternGraph<Extra, V>
where V: GraphValue<Id = Symbol> + HasIdentity<V, Symbol> + Mergeable + Refinable + PartialEq + Clone + 'static, Extra: 'static,
Expand description

Consumes a GraphView and produces a PatternGraph.

Each element in view_elements is inserted into a new graph using the given classifier and reconciliation policy. Duplicate identities are resolved by the policy.