pub enum MatchPolicy {
Identity,
OneEdit,
RebuildGStar,
Merge,
}Expand description
Match policy for ED (graph edit distance) — ℙ3
Variants§
Identity
Leave G unchanged
OneEdit
Apply one elementary edit (add/delete/relabel node or edge)
RebuildGStar
Rebuild G to match target G*
Merge
Absorb z into the nearest node within τ instead of appending (𝕃3).
The sub-linear-growth policy: a latent closer than merge_tau to an
existing node is merged into it (EMA embedding update, timestamp
refresh — spec §5.3), so |V| = O(T^β) with β ≤ 1 instead of one
node per Match. Requires a metric index to stay O(log |V|) (ℙ5).
Trait Implementations§
Source§impl Clone for MatchPolicy
impl Clone for MatchPolicy
Source§fn clone(&self) -> MatchPolicy
fn clone(&self) -> MatchPolicy
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for MatchPolicy
Source§impl Debug for MatchPolicy
impl Debug for MatchPolicy
Source§impl Default for MatchPolicy
impl Default for MatchPolicy
Source§fn default() -> MatchPolicy
fn default() -> MatchPolicy
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for MatchPolicy
impl<'de> Deserialize<'de> for MatchPolicy
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for MatchPolicy
Source§impl Hash for MatchPolicy
impl Hash for MatchPolicy
Source§impl PartialEq for MatchPolicy
impl PartialEq for MatchPolicy
Source§impl Serialize for MatchPolicy
impl Serialize for MatchPolicy
impl StructuralPartialEq for MatchPolicy
Auto Trait Implementations§
impl Freeze for MatchPolicy
impl RefUnwindSafe for MatchPolicy
impl Send for MatchPolicy
impl Sync for MatchPolicy
impl Unpin for MatchPolicy
impl UnsafeUnpin for MatchPolicy
impl UnwindSafe for MatchPolicy
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.