1 \hypertarget{treedist_8h}{\section{/home/asherstnev/\-Projects/\-Java.projects/jabaws/secure-\/git/develop/binaries/src/\-Vienna\-R\-N\-A/\-H/treedist.h File Reference}
2 \label{treedist_8h}\index{/home/asherstnev/\-Projects/\-Java.\-projects/jabaws/secure-\/git/develop/binaries/src/\-Vienna\-R\-N\-A/\-H/treedist.\-h@{/home/asherstnev/\-Projects/\-Java.\-projects/jabaws/secure-\/git/develop/binaries/src/\-Vienna\-R\-N\-A/\-H/treedist.\-h}}
6 Functions for \hyperlink{structTree}{Tree} Edit Distances.
9 Include dependency graph for treedist.\-h\-:
14 \includegraphics[width=250pt]{treedist_8h__incl}
17 \subsection*{Functions}
18 \begin{DoxyCompactItemize}
20 \hyperlink{structTree}{Tree} $\ast$ \hyperlink{treedist_8h_a08fe4d5afd385dce593b86eaf010c6e3}{make\-\_\-tree} (char $\ast$struc)
21 \begin{DoxyCompactList}\small\item\em Constructs a \hyperlink{structTree}{Tree} ( essentially the postorder list ) of the structure 'struc', for use in \hyperlink{treedist_8h_a3b21f1925f7071f46d93431a835217bb}{tree\-\_\-edit\-\_\-distance()}. \end{DoxyCompactList}\item
22 float \hyperlink{treedist_8h_a3b21f1925f7071f46d93431a835217bb}{tree\-\_\-edit\-\_\-distance} (\hyperlink{structTree}{Tree} $\ast$T1, \hyperlink{structTree}{Tree} $\ast$T2)
23 \begin{DoxyCompactList}\small\item\em Calculates the edit distance of the two trees. \end{DoxyCompactList}\item
24 \hypertarget{treedist_8h_a21ad4de3ba4055aeef08b28c9ad48894}{void \hyperlink{treedist_8h_a21ad4de3ba4055aeef08b28c9ad48894}{print\-\_\-tree} (\hyperlink{structTree}{Tree} $\ast$t)}\label{treedist_8h_a21ad4de3ba4055aeef08b28c9ad48894}
26 \begin{DoxyCompactList}\small\item\em Print a tree (mainly for debugging) \end{DoxyCompactList}\item
27 void \hyperlink{treedist_8h_acbc1cb9bce582ea945e4a467c76a57aa}{free\-\_\-tree} (\hyperlink{structTree}{Tree} $\ast$t)
28 \begin{DoxyCompactList}\small\item\em Free the memory allocated for \hyperlink{structTree}{Tree} t. \end{DoxyCompactList}\end{DoxyCompactItemize}
31 \subsection{Detailed Description}
32 Functions for \hyperlink{structTree}{Tree} Edit Distances.
34 \subsection{Function Documentation}
35 \hypertarget{treedist_8h_a08fe4d5afd385dce593b86eaf010c6e3}{\index{treedist.\-h@{treedist.\-h}!make\-\_\-tree@{make\-\_\-tree}}
36 \index{make\-\_\-tree@{make\-\_\-tree}!treedist.h@{treedist.\-h}}
37 \subsubsection[{make\-\_\-tree}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Tree}$\ast$ make\-\_\-tree (
38 \begin{DoxyParamCaption}
39 \item[{char $\ast$}]{struc}
40 \end{DoxyParamCaption}
41 )}}\label{treedist_8h_a08fe4d5afd385dce593b86eaf010c6e3}
44 Constructs a \hyperlink{structTree}{Tree} ( essentially the postorder list ) of the structure 'struc', for use in \hyperlink{treedist_8h_a3b21f1925f7071f46d93431a835217bb}{tree\-\_\-edit\-\_\-distance()}.
47 \begin{DoxyParams}{Parameters}
48 {\em struc} & may be any rooted structure representation. \\
51 \begin{DoxyReturn}{Returns}
54 \hypertarget{treedist_8h_a3b21f1925f7071f46d93431a835217bb}{\index{treedist.\-h@{treedist.\-h}!tree\-\_\-edit\-\_\-distance@{tree\-\_\-edit\-\_\-distance}}
55 \index{tree\-\_\-edit\-\_\-distance@{tree\-\_\-edit\-\_\-distance}!treedist.h@{treedist.\-h}}
56 \subsubsection[{tree\-\_\-edit\-\_\-distance}]{\setlength{\rightskip}{0pt plus 5cm}float tree\-\_\-edit\-\_\-distance (
57 \begin{DoxyParamCaption}
58 \item[{{\bf Tree} $\ast$}]{T1, }
59 \item[{{\bf Tree} $\ast$}]{T2}
60 \end{DoxyParamCaption}
61 )}}\label{treedist_8h_a3b21f1925f7071f46d93431a835217bb}
64 Calculates the edit distance of the two trees.
67 \begin{DoxyParams}{Parameters}
73 \begin{DoxyReturn}{Returns}
76 \hypertarget{treedist_8h_acbc1cb9bce582ea945e4a467c76a57aa}{\index{treedist.\-h@{treedist.\-h}!free\-\_\-tree@{free\-\_\-tree}}
77 \index{free\-\_\-tree@{free\-\_\-tree}!treedist.h@{treedist.\-h}}
78 \subsubsection[{free\-\_\-tree}]{\setlength{\rightskip}{0pt plus 5cm}void free\-\_\-tree (
79 \begin{DoxyParamCaption}
80 \item[{{\bf Tree} $\ast$}]{t}
81 \end{DoxyParamCaption}
82 )}}\label{treedist_8h_acbc1cb9bce582ea945e4a467c76a57aa}
85 Free the memory allocated for \hyperlink{structTree}{Tree} t.
88 \begin{DoxyParams}{Parameters}