pub fn merge_with_policy<Extra, V>(
classifier: &GraphClassifier<Extra, V>,
policy: &ReconciliationPolicy<V::MergeStrategy>,
p: Pattern<V>,
g: PatternGraph<Extra, V>,
) -> PatternGraph<Extra, V>where
V: GraphValue<Id = Symbol> + HasIdentity<V, Symbol> + Mergeable + Refinable + PartialEq + Clone + 'static,
Extra: 'static,Expand description
Inserts one pattern using the given reconciliation policy.
Dispatches to the appropriate typed collection based on classifier.
Sub-elements are recursively merged before the top-level pattern is inserted.