tree-edit-distance-0.1.0.0: Tree Edit Distance to determine the similarity between two trees
Copyright(C) 2024 Tillmann Vogt
LicenseBSD-style (see the file LICENSE)
MaintainerTillmann Vogt <tillk.vogt@gmail.com>
Stabilityprovisional
PortabilityPOSIX
Safe HaskellSafe-Inferred
LanguageHaskell2010

TreeEditDistance

Description

 
Synopsis

Documentation

editDistance :: AGraph -> AGraph -> Int Source #

If there is a faster/better algorithm, it will be put here

extractNodes :: [(Word32, [Word32], e)] -> Map Word32 Label Source #

Extract nodes from both starting node and adjacent nodes

data Label Source #

Constructors

Label String Word32 Word32 

Instances

Instances details
Enum Label Source # 
Instance details

Defined in TreeEditDistance

Show Label Source # 
Instance details

Defined in TreeEditDistance

Methods

showsPrec :: Int -> Label -> ShowS #

show :: Label -> String #

showList :: [Label] -> ShowS #

Eq Label Source # 
Instance details

Defined in TreeEditDistance

Methods

(==) :: Label -> Label -> Bool #

(/=) :: Label -> Label -> Bool #

ExtractNodeType Label Source # 
Instance details

Defined in TreeEditDistance

data EdgeLabel Source #

Constructors

EdgeLabel String 

Instances

Instances details
Show EdgeLabel Source # 
Instance details

Defined in TreeEditDistance

EdgeAttribute EdgeLabel Source # 
Instance details

Defined in TreeEditDistance

class EdgeAttribute el #

Convert a complex edge label to an attribute with 8 bits How to do this depends on which edges have to be filtered fast

Minimal complete definition

fastEdgeAttr, edgeFromAttr, show_e, bases

Instances

Instances details
EdgeAttribute EdgeLabel Source # 
Instance details

Defined in TreeEditDistance