1.1 --- a/damecco.tex Tue Nov 22 08:15:16 2016 +0100
1.2 +++ b/damecco.tex Tue Nov 22 13:58:09 2016 +0100
1.3 @@ -178,319 +178,518 @@
1.4 \section{Introduction}
1.5 \label{sec:intro}
1.6
1.7 -In the last decades, combinatorial structures, and especially graphs have been considered with ever increasing interest, and applied to the solution of several new and revised questions.
1.8 -The expressiveness, the simplicity and the studiedness of graphs make them practical for modelling and appear constantly in several seemingly independent fields.
1.9 -Bioinformatics and chemistry are amongst the most relevant and most important fields.
1.10 +In the last decades, combinatorial structures, and especially graphs
1.11 +have been considered with ever increasing interest, and applied to the
1.12 +solution of several new and revised questions. The expressiveness,
1.13 +the simplicity and the studiedness of graphs make them practical for
1.14 +modelling and appear constantly in several seemingly independent
1.15 +fields. Bioinformatics and chemistry are amongst the most relevant
1.16 +and most important fields.
1.17
1.18 -Complex biological systems arise from the interaction and cooperation of plenty of molecular components. Getting acquainted with such systems at the molecular level has primary importance, since protein-protein interaction, DNA-protein interaction, metabolic interaction, transcription factor binding, neuronal networks, and hormone signaling networks can be understood only this way.
1.19 +Complex biological systems arise from the interaction and cooperation
1.20 +of plenty of molecular components. Getting acquainted with such
1.21 +systems at the molecular level has primary importance, since
1.22 +protein-protein interaction, DNA-protein interaction, metabolic
1.23 +interaction, transcription factor binding, neuronal networks, and
1.24 +hormone signaling networks can be understood only this way.
1.25
1.26 -For instance, a molecular structure can be considered as a graph, whose nodes correspond to atoms and whose edges to chemical bonds. The secondary structure of a protein can also be represented as a graph, where nodes are associated with aminoacids and the edges with hydrogen bonds. The nodes are often whole molecular components and the edges represent some relationships among them.
1.27 -The similarity and dissimilarity of objects corresponding to nodes are incorporated to the model by \emph{node labels}.
1.28 -Many other chemical and biological structures can easily be modeled in a similar way. Understanding such networks basically requires finding specific subgraphs, which can not avoid the application of graph matching algorithms.
1.29 +For instance, a molecular structure can be considered as a graph,
1.30 +whose nodes correspond to atoms and whose edges to chemical bonds. The
1.31 +secondary structure of a protein can also be represented as a graph,
1.32 +where nodes are associated with aminoacids and the edges with hydrogen
1.33 +bonds. The nodes are often whole molecular components and the edges
1.34 +represent some relationships among them. The similarity and
1.35 +dissimilarity of objects corresponding to nodes are incorporated to
1.36 +the model by \emph{node labels}. Many other chemical and biological
1.37 +structures can easily be modeled in a similar way. Understanding such
1.38 +networks basically requires finding specific subgraphs, which can not
1.39 +avoid the application of graph matching algorithms.
1.40
1.41 -Finally, let some of the other real-world fields related to some variants of graph matching be briefly mentioned: pattern recognition and machine vision \cite{HorstBunkeApplications}, symbol recognition \cite{CordellaVentoSymbolRecognition}, face identification \cite{JianzhuangYongFaceIdentification}.
1.42 -\\
1.43 +Finally, let some of the other real-world fields related to some
1.44 +variants of graph matching be briefly mentioned: pattern recognition
1.45 +and machine vision \cite{HorstBunkeApplications}, symbol recognition
1.46 +\cite{CordellaVentoSymbolRecognition}, face identification
1.47 +\cite{JianzhuangYongFaceIdentification}. \\
1.48
1.49 -Subgraph and induced subgraph matching problems are known to be NP-Complete\cite{SubgraphNPC}, while the graph isomorphism problem is one of the few problems in NP neither known to be in P nor NP-Complete. Although polynomial time isomorphism algorithms are known for various graph classes, like trees and planar graphs\cite{PlanarGraphIso}, bounded valence graphs\cite{BondedDegGraphIso}, interval graphs\cite{IntervalGraphIso} or permutation graphs\cite{PermGraphIso}.
1.50 +Subgraph and induced subgraph matching problems are known to be
1.51 +NP-Complete\cite{SubgraphNPC}, while the graph isomorphism problem is
1.52 +one of the few problems in NP neither known to be in P nor
1.53 +NP-Complete. Although polynomial time isomorphism algorithms are known
1.54 +for various graph classes, like trees and planar
1.55 +graphs\cite{PlanarGraphIso}, bounded valence
1.56 +graphs\cite{BondedDegGraphIso}, interval graphs\cite{IntervalGraphIso}
1.57 +or permutation graphs\cite{PermGraphIso}.
1.58
1.59 -In the following, some algorithms based on other approaches are summarized, which do not need any restrictions on the graphs. However, an overall polynomial behaviour is not expectable from such an alternative, it may often have good performance, even on a graph class for which polynomial algorithm is known. Note that this summary containing only exact matching algorithms is far not complete, neither does it cover all the recent algorithms.
1.60 +In the following, some algorithms based on other approaches are
1.61 +summarized, which do not need any restrictions on the graphs. However,
1.62 +an overall polynomial behaviour is not expectable from such an
1.63 +alternative, it may often have good performance, even on a graph class
1.64 +for which polynomial algorithm is known. Note that this summary
1.65 +containing only exact matching algorithms is far not complete, neither
1.66 +does it cover all the recent algorithms.
1.67
1.68 -The first practically usable approach was due to \textbf{Ullmann}\cite{Ullmann} which is a commonly used depth-first search based algorithm with a complex heuristic for reducing the number of visited states. A major problem is its $\Theta(n^3)$ space complexity, which makes it impractical in the case of big sparse graphs.
1.69 +The first practically usable approach was due to
1.70 +\textbf{Ullmann}\cite{Ullmann} which is a commonly used depth-first
1.71 +search based algorithm with a complex heuristic for reducing the
1.72 +number of visited states. A major problem is its $\Theta(n^3)$ space
1.73 +complexity, which makes it impractical in the case of big sparse
1.74 +graphs.
1.75
1.76 -In a recent paper, \textbf{Ullmann}\cite{UllmannBit} presents an improved version of this algorithm based on a bit-vector solution for the binary Constraint Satisfaction Problem.
1.77 +In a recent paper, \textbf{Ullmann}\cite{UllmannBit} presents an
1.78 +improved version of this algorithm based on a bit-vector solution for
1.79 +the binary Constraint Satisfaction Problem.
1.80
1.81 -The \textbf{Nauty} algorithm\cite{Nauty} transforms the two graphs to a canonical form before starting to check for the isomorphism. It has been considered as one of the fastest graph isomorphism algorithms, although graph categories were shown in which it takes exponentially many steps. This algorithm handles only the graph isomorphism problem.
1.82 +The \textbf{Nauty} algorithm\cite{Nauty} transforms the two graphs to
1.83 +a canonical form before starting to check for the isomorphism. It has
1.84 +been considered as one of the fastest graph isomorphism algorithms,
1.85 +although graph categories were shown in which it takes exponentially
1.86 +many steps. This algorithm handles only the graph isomorphism problem.
1.87
1.88 -The \textbf{LAD} algorithm\cite{Lad} uses a depth-first search strategy and formulates the matching as a Constraint Satisfaction Problem to prune the search tree. The constraints are that the mapping has to be injective and edge-preserving, hence it is possible to handle new matching types as well.
1.89 +The \textbf{LAD} algorithm\cite{Lad} uses a depth-first search
1.90 +strategy and formulates the matching as a Constraint Satisfaction
1.91 +Problem to prune the search tree. The constraints are that the mapping
1.92 +has to be injective and edge-preserving, hence it is possible to
1.93 +handle new matching types as well.
1.94
1.95 -The \textbf{RI} algorithm\cite{RI} and its variations are based on a state space representation. After reordering the nodes of the graphs, it uses some fast executable heuristic checks without using any complex pruning rules. It seems to run really efficiently on graphs coming from biology, and won the International Contest on Pattern Search in Biological Databases\cite{Content}.
1.96 +The \textbf{RI} algorithm\cite{RI} and its variations are based on a
1.97 +state space representation. After reordering the nodes of the graphs,
1.98 +it uses some fast executable heuristic checks without using any
1.99 +complex pruning rules. It seems to run really efficiently on graphs
1.100 +coming from biology, and won the International Contest on Pattern
1.101 +Search in Biological Databases\cite{Content}.
1.102
1.103 -The currently most commonly used algorithm is the \textbf{VF2}\cite{VF2}, the improved version of VF\cite{VF}, which was designed for solving pattern matching and computer vision problems, and has been one of the best overall algorithms for more than a decade. Although, it can't be up to new specialized algorithms, it is still widely used due to its simplicity and space efficiency. VF2 uses a state space representation and checks some conditions in each state to prune the search tree.
1.104 +The currently most commonly used algorithm is the
1.105 +\textbf{VF2}\cite{VF2}, the improved version of VF\cite{VF}, which was
1.106 +designed for solving pattern matching and computer vision problems,
1.107 +and has been one of the best overall algorithms for more than a
1.108 +decade. Although, it can't be up to new specialized algorithms, it is
1.109 +still widely used due to its simplicity and space efficiency. VF2 uses
1.110 +a state space representation and checks some conditions in each state
1.111 +to prune the search tree.
1.112
1.113 -Our first graph matching algorithm was the first version of VF2 which recognizes the significance of the node ordering, more opportunities to increase the cutting efficiency and reduce its computational complexity. This project was initiated and sponsored by QuantumBio Inc.\cite{QUANTUMBIO} and the implementation --- along with a source code --- has been published as a part of LEMON\cite{LEMON} open source graph library.
1.114 +Our first graph matching algorithm was the first version of VF2 which
1.115 +recognizes the significance of the node ordering, more opportunities
1.116 +to increase the cutting efficiency and reduce its computational
1.117 +complexity. This project was initiated and sponsored by QuantumBio
1.118 +Inc.\cite{QUANTUMBIO} and the implementation --- along with a source
1.119 +code --- has been published as a part of LEMON\cite{LEMON} open source
1.120 +graph library.
1.121
1.122 -This thesis introduces \textbf{VF2++}, a new further improved algorithm for the graph and (induced)subgraph isomorphism problem, which uses efficient cutting rules and determines a node order in which VF2 runs significantly faster on practical inputs.
1.123 +This paper introduces \textbf{VF2++}, a new further improved algorithm
1.124 +for the graph and (induced)subgraph isomorphism problem, which uses
1.125 +efficient cutting rules and determines a node order in which VF2 runs
1.126 +significantly faster on practical inputs.
1.127
1.128 -Meanwhile, another variant called \textbf{VF2 Plus}\cite{VF2Plus} has been published. It is considered to be as efficient as the RI algorithm and has a strictly better behavior on large graphs. The main idea of VF2 Plus is to precompute a heuristic node order of the small graph, in which the VF2 works more efficiently.\newline
1.129 -\newline
1.130 +Meanwhile, another variant called \textbf{VF2 Plus}\cite{VF2Plus} has
1.131 +been published. It is considered to be as efficient as the RI
1.132 +algorithm and has a strictly better behavior on large graphs. The
1.133 +main idea of VF2 Plus is to precompute a heuristic node order of the
1.134 +small graph, in which the VF2 works more efficiently.
1.135
1.136 \section{Problem Statement}
1.137 -This section provides a detailed description of the problems to be solved.
1.138 +This section provides a detailed description of the problems to be
1.139 +solved.
1.140 \subsection{Definitions}
1.141
1.142 -Throughout the paper $G_{small}=(V_{small}, E_{small})$ and $G_{large}=(V_{large}, E_{large})$ denote two undirected graphs.
1.143 +Throughout the paper $G_{small}=(V_{small}, E_{small})$ and
1.144 +$G_{large}=(V_{large}, E_{large})$ denote two undirected graphs.
1.145 \begin{definition}\label{sec:ismorphic}
1.146 -$G_{small}$ and $G_{large}$ are \textbf{isomorphic} if $\exists M: V_{small} \longrightarrow V_{large}$ bijection, for which the following is true:
1.147 +$G_{small}$ and $G_{large}$ are \textbf{isomorphic} if $\exists M:
1.148 + V_{small} \longrightarrow V_{large}$ bijection, for which the
1.149 + following is true:
1.150 \begin{center}
1.151 -$\forall u,v\in{V_{small}} : (u,v)\in{E_{small}} \Leftrightarrow (M(u),M(v))\in{E_{large}}$
1.152 +$\forall u,v\in{V_{small}} : (u,v)\in{E_{small}} \Leftrightarrow
1.153 + (M(u),M(v))\in{E_{large}}$
1.154 \end{center}
1.155 \end{definition}
1.156 -For the sake of simplicity in this paper subgraphs and induced subgraphs are defined in a more general way than usual:
1.157 +For the sake of simplicity in this paper subgraphs and induced
1.158 +subgraphs are defined in a more general way than usual:
1.159 \begin{definition}
1.160 -$G_{small}$ is a \textbf{subgraph} of $G_{large}$ if $\exists I: V_{small}\longrightarrow V_{large}$ injection, for which the following is true:
1.161 +$G_{small}$ is a \textbf{subgraph} of $G_{large}$ if $\exists I:
1.162 + V_{small}\longrightarrow V_{large}$ injection, for which the
1.163 + following is true:
1.164 \begin{center}
1.165 $\forall u,v \in{V_{small}} : (u,v)\in{E_{small}} \Rightarrow (I(u),I(v))\in E_{large}$
1.166 \end{center}
1.167 \end{definition}
1.168
1.169 \begin{definition}
1.170 -$G_{small}$ is an \textbf{induced subgraph} of $G_{large}$ if $\exists I: V_{small}\longrightarrow V_{large}$ injection, for which the following is true:
1.171 +$G_{small}$ is an \textbf{induced subgraph} of $G_{large}$ if $\exists
1.172 + I: V_{small}\longrightarrow V_{large}$ injection, for which the
1.173 + following is true:
1.174 \begin{center}
1.175 -$\forall u,v \in{V_{small}} : (u,v)\in{E_{small}} \Leftrightarrow (I(u),I(v))\in E_{large}$
1.176 +$\forall u,v \in{V_{small}} : (u,v)\in{E_{small}} \Leftrightarrow
1.177 + (I(u),I(v))\in E_{large}$
1.178 \end{center}
1.179 \end{definition}
1.180
1.181 \begin{definition}
1.182 -$lab: (V_{small}\cup V_{large}) \longrightarrow K$ is a \textbf{node label function}, where K is an arbitrary set. The elements in K are the \textbf{node labels}. Two nodes, u and v are said to be \textbf{equivalent}, if $lab(u)=lab(v)$.
1.183 +$lab: (V_{small}\cup V_{large}) \longrightarrow K$ is a \textbf{node
1.184 + label function}, where K is an arbitrary set. The elements in K
1.185 + are the \textbf{node labels}. Two nodes, u and v are said to be
1.186 + \textbf{equivalent}, if $lab(u)=lab(v)$.
1.187 \end{definition}
1.188
1.189 -When node labels are also given, the matched nodes must have the same labels.
1.190 -For example, the node labeled isomorphism is phrased by
1.191 +When node labels are also given, the matched nodes must have the same
1.192 +labels. For example, the node labeled isomorphism is phrased by
1.193 \begin{definition}
1.194 -$G_{small}$ and $G_{large}$ are \textbf{isomorphic by the node label function lab} if $\exists M: V_{small} \longrightarrow V_{large}$ bijection, for which the following is true:
1.195 +$G_{small}$ and $G_{large}$ are \textbf{isomorphic by the node label
1.196 + function lab} if $\exists M: V_{small} \longrightarrow V_{large}$
1.197 + bijection, for which the following is true:
1.198 \begin{center}
1.199 -$(\forall u,v\in{V_{small}} : (u,v)\in{E_{small}} \Leftrightarrow (M(u),M(v))\in{E_{large}})$
1.200 - and $(\forall u\in{V_{small}} : lab(u)=lab(M(u)))$
1.201 +$(\forall u,v\in{V_{small}} : (u,v)\in{E_{small}} \Leftrightarrow
1.202 + (M(u),M(v))\in{E_{large}})$ and $(\forall u\in{V_{small}} :
1.203 + lab(u)=lab(M(u)))$
1.204 \end{center}
1.205 \end{definition}
1.206
1.207 The other two definitions can be extended in the same way.
1.208
1.209 -Note that edge label function can be defined similarly to node label function, and all the definitions can be extended with additional conditions, but it is out of the scope of this work.
1.210 +Note that edge label function can be defined similarly to node label
1.211 +function, and all the definitions can be extended with additional
1.212 +conditions, but it is out of the scope of this work.
1.213
1.214 -The equivalence of two nodes is usually defined by another relation, $\\R\subseteq (V_{small}\cup V_{large})^2$. This overlaps with the definition given above if R is an equivalence relation, which does not mean restriction in biological and chemical applications.
1.215 +The equivalence of two nodes is usually defined by another relation,
1.216 +$\\R\subseteq (V_{small}\cup V_{large})^2$. This overlaps with the
1.217 +definition given above if R is an equivalence relation, which does not
1.218 +mean restriction in biological and chemical applications.
1.219
1.220 \subsection{Common problems}\label{sec:CommProb}
1.221
1.222 -The focus of this paper is on two extensively studied topics, the subgraph isomorphism and its variations. However, the following problems also appear in many applications.
1.223 +The focus of this paper is on two extensively studied topics, the
1.224 +subgraph isomorphism and its variations. However, the following
1.225 +problems also appear in many applications.
1.226
1.227 -The \textbf{subgraph matching problem} is the following: is $G_{small}$ isomorphic to any subgraph of $G_{large}$ by a given node label?
1.228 +The \textbf{subgraph matching problem} is the following: is
1.229 +$G_{small}$ isomorphic to any subgraph of $G_{large}$ by a given node
1.230 +label?
1.231
1.232 -The \textbf{induced subgraph matching problem} asks the same about the existence of an induced subgraph.
1.233 +The \textbf{induced subgraph matching problem} asks the same about the
1.234 +existence of an induced subgraph.
1.235
1.236 -The \textbf{graph isomorphism problem} can be defined as induced subgraph matching problem where the sizes of the two graphs are equal.
1.237 +The \textbf{graph isomorphism problem} can be defined as induced
1.238 +subgraph matching problem where the sizes of the two graphs are equal.
1.239
1.240 -In addition to existence, it may be needed to show such a subgraph, or it may be necessary to list all of them.
1.241 +In addition to existence, it may be needed to show such a subgraph, or
1.242 +it may be necessary to list all of them.
1.243
1.244 -It should be noted that some authors misleadingly refer to the term \emph{subgraph isomorphism problem} as an \emph{induced subgraph isomorphism problem}.
1.245 +It should be noted that some authors misleadingly refer to the term
1.246 +\emph{subgraph isomorphism problem} as an \emph{induced subgraph
1.247 + isomorphism problem}.
1.248
1.249 -The following sections give the descriptions of VF2, VF2++, VF2 Plus and a particular comparison.
1.250 +The following sections give the descriptions of VF2, VF2++, VF2 Plus
1.251 +and a particular comparison.
1.252
1.253 \section{The VF2 Algorithm}
1.254 -This algorithm is the basis of both the VF2++ and the VF2 Plus.
1.255 -VF2 is able to handle all the variations mentioned in \textbf{Section \ref{sec:CommProb})}.
1.256 -Although it can also handle directed graphs, for the sake of simplicity, only the undirected case will be discussed.
1.257 +This algorithm is the basis of both the VF2++ and the VF2 Plus. VF2
1.258 +is able to handle all the variations mentioned in \textbf{Section
1.259 + \ref{sec:CommProb})}. Although it can also handle directed graphs,
1.260 +for the sake of simplicity, only the undirected case will be
1.261 +discussed.
1.262
1.263
1.264 \subsection{Common notations}
1.265 -\indent
1.266 -Assume $G_{small}$ is searched in $G_{large}$.
1.267 -The following definitions and notations will be used throughout the whole paper.
1.268 +\indent Assume $G_{small}$ is searched in $G_{large}$. The following
1.269 +definitions and notations will be used throughout the whole paper.
1.270 \begin{definition}
1.271 -A set $M\subseteq V_{small}\times V_{large}$ is called \textbf{mapping}, if no node of $V_{small}$ or of $V_{large}$ appears in more than one pair in M.
1.272 -That is, M uniquely associates some of the nodes in $V_{small}$ with some nodes of $V_{large}$ and vice versa.
1.273 +A set $M\subseteq V_{small}\times V_{large}$ is called
1.274 +\textbf{mapping}, if no node of $V_{small}$ or of $V_{large}$ appears
1.275 +in more than one pair in M. That is, M uniquely associates some of
1.276 +the nodes in $V_{small}$ with some nodes of $V_{large}$ and vice
1.277 +versa.
1.278 \end{definition}
1.279
1.280 \begin{definition}
1.281 -Mapping M \textbf{covers} a node v, if there exists a pair in M, which contains v.
1.282 +Mapping M \textbf{covers} a node v, if there exists a pair in M, which
1.283 +contains v.
1.284 \end{definition}
1.285
1.286 \begin{definition}
1.287 -A mapping $M$ is $\mathbf{whole\ mapping}$, if $M$ covers all the nodes in $V_{small}$.
1.288 +A mapping $M$ is $\mathbf{whole\ mapping}$, if $M$ covers all the
1.289 +nodes in $V_{small}$.
1.290 \end{definition}
1.291
1.292 \begin{notation}
1.293 -Let $\mathbf{M_{small}(s)} := \{u\in V_{small} : \exists v\in V_{large}: (u,v)\in M(s)\}$ and $\mathbf{M_{large}(s)} := \{v\in V_{large} : \exists u\in V_{small}: (u,v)\in M(s)\}$.
1.294 +Let $\mathbf{M_{small}(s)} := \{u\in V_{small} : \exists v\in
1.295 +V_{large}: (u,v)\in M(s)\}$ and $\mathbf{M_{large}(s)} := \{v\in
1.296 +V_{large} : \exists u\in V_{small}: (u,v)\in M(s)\}$.
1.297 \end{notation}
1.298
1.299 \begin{notation}
1.300 -Let $\mathbf{Pair(M,v)}$ be the pair of $v$ in $M$, if such a node exist, otherwise $\mathbf{Pair(M,v)}$ is undefined. For a mapping $M$ and $v\in V_{small}\cup V_{large}$.
1.301 +Let $\mathbf{Pair(M,v)}$ be the pair of $v$ in $M$, if such a node
1.302 +exist, otherwise $\mathbf{Pair(M,v)}$ is undefined. For a mapping $M$
1.303 +and $v\in V_{small}\cup V_{large}$.
1.304 \end{notation}
1.305
1.306 Note that if $\mathbf{Pair(M,v)}$ exists, then it is unique
1.307
1.308 -The definitions of the isomorphism types can be rephrased on the existence of a special whole mapping $M$, since it represents a bijection. For example
1.309 +The definitions of the isomorphism types can be rephrased on the
1.310 +existence of a special whole mapping $M$, since it represents a
1.311 +bijection. For example
1.312 \begin{center}
1.313 -$M\subseteq V_{small}\times V_{large}$ represents an induced subgraph isomorphism $\Leftrightarrow$ $M$ is whole mapping and $\forall u,v \in{V_{small}} : (u,v)\in{E_{small}} \Leftrightarrow (Pair(M,u),Pair(M,v))\in E_{large}$.
1.314 +$M\subseteq V_{small}\times V_{large}$ represents an induced subgraph
1.315 + isomorphism $\Leftrightarrow$ $M$ is whole mapping and $\forall u,v
1.316 + \in{V_{small}} : (u,v)\in{E_{small}} \Leftrightarrow
1.317 + (Pair(M,u),Pair(M,v))\in E_{large}$.
1.318 \end{center}
1.319
1.320 \begin{definition}
1.321 A set of whole mappings is called \textbf{problem type}.
1.322 \end{definition}
1.323 -Throughout the paper, $\mathbf{PT}$ denotes a generic problem type which can be substituted by any problem type.
1.324 +Throughout the paper, $\mathbf{PT}$ denotes a generic problem type
1.325 +which can be substituted by any problem type.
1.326
1.327 -A whole mapping $W\mathbf{\ is\ of\ type\ PT}$, if $W\in PT$. Using this notations, VF2 searches a whole mapping $W$ of type $PT$.
1.328 +A whole mapping $W\mathbf{\ is\ of\ type\ PT}$, if $W\in PT$. Using
1.329 +this notations, VF2 searches a whole mapping $W$ of type $PT$.
1.330
1.331 -For example the problem type of graph isomorphism problem is the following.
1.332 -A whole mapping $W$ is in $\mathbf{ISO}$, iff the bijection represented by $W$ satisfies \textbf{Definition \ref{sec:ismorphic})}.
1.333 -The subgraph- and induced subgraph matching problems can be formalized in a similar way. Let their problem types be denoted as $\mathbf{SUB}$ and $\mathbf{IND}$.
1.334 +For example the problem type of graph isomorphism problem is the
1.335 +following. A whole mapping $W$ is in $\mathbf{ISO}$, iff the
1.336 +bijection represented by $W$ satisfies \textbf{Definition
1.337 + \ref{sec:ismorphic})}. The subgraph- and induced subgraph matching
1.338 +problems can be formalized in a similar way. Let their problem types
1.339 +be denoted as $\mathbf{SUB}$ and $\mathbf{IND}$.
1.340
1.341 \begin{definition}
1.342 \label{expPT}
1.343 -$PT$ is an \textbf{expanding problem type} if $\ \forall\ W\in PT:\ \forall u_1,u_2\in V_{small}:\ (u_1,u_2)\in E_{small}\Rightarrow (Pair(W,u_1),Pair(W,u_2))\in E_{large}$, that is each edge of $G_{small}$ has to be mapped to an edge of $G_{large}$ for each mapping in $PT$.
1.344 +$PT$ is an \textbf{expanding problem type} if $\ \forall\ W\in
1.345 +PT:\ \forall u_1,u_2\in V_{small}:\ (u_1,u_2)\in E_{small}\Rightarrow
1.346 +(Pair(W,u_1),Pair(W,u_2))\in E_{large}$, that is each edge of
1.347 +$G_{small}$ has to be mapped to an edge of $G_{large}$ for each
1.348 +mapping in $PT$.
1.349 \end{definition}
1.350
1.351 Note that $ISO$, $SUB$ and $IND$ are expanding problem types.
1.352
1.353 -This paper deals with the three problem types mentioned above only, but
1.354 -the following generic definitions make it possible to handle other types as well.
1.355 -Although it may be challenging to find a proper consistency function and an efficient
1.356 -cutting function.
1.357 +This paper deals with the three problem types mentioned above only,
1.358 +but the following generic definitions make it possible to handle other
1.359 +types as well. Although it may be challenging to find a proper
1.360 +consistency function and an efficient cutting function.
1.361
1.362 \begin{definition}
1.363 -Let M be a mapping. A logical function $\mathbf{Cons_{PT}}$ is a \textbf{consistency function by } $\mathbf{PT}$, if the following holds. If there exists whole mapping $W$ of type PT for which $M\subseteq W$, then $Cons_{PT}(M)$ is true.
1.364 +Let M be a mapping. A logical function $\mathbf{Cons_{PT}}$ is a
1.365 +\textbf{consistency function by } $\mathbf{PT}$, if the following
1.366 +holds. If there exists whole mapping $W$ of type PT for which
1.367 +$M\subseteq W$, then $Cons_{PT}(M)$ is true.
1.368 \end{definition}
1.369
1.370 \begin{definition}
1.371 -Let M be a mapping. A logical function $\mathbf{Cut_{PT}}$ is a \textbf{cutting function by } $\mathbf{PT}$, if the following holds. $\mathbf{Cut_{PT}(M)}$ is false if $M$ can be extended to a whole mapping W of type PT.
1.372 +Let M be a mapping. A logical function $\mathbf{Cut_{PT}}$ is a
1.373 +\textbf{cutting function by } $\mathbf{PT}$, if the following
1.374 +holds. $\mathbf{Cut_{PT}(M)}$ is false if $M$ can be extended to a
1.375 +whole mapping W of type PT.
1.376 \end{definition}
1.377
1.378 \begin{definition}
1.379 -$M$ is said to be \textbf{consistent mapping by} $\mathbf{PT}$, if $Cons_{PT}(M)$ is true.
1.380 +$M$ is said to be \textbf{consistent mapping by} $\mathbf{PT}$, if
1.381 + $Cons_{PT}(M)$ is true.
1.382 \end{definition}
1.383
1.384 $Cons_{PT}$ and $Cut_{PT}$ will often be used in the following form.
1.385 \begin{notation}
1.386 -Let $\mathbf{Cons_{PT}(p, M)}:=Cons_{PT}(M\cup\{p\})$ and $\mathbf{Cut_{PT}(p, M)}:=Cut_{PT}(M\cup\{p\})$, where $p\in{V_{small}\!\times\!V_{large}}$ and $M\cup\{p\}$ is mapping.
1.387 +Let $\mathbf{Cons_{PT}(p, M)}:=Cons_{PT}(M\cup\{p\})$ and
1.388 +$\mathbf{Cut_{PT}(p, M)}:=Cut_{PT}(M\cup\{p\})$, where
1.389 +$p\in{V_{small}\!\times\!V_{large}}$ and $M\cup\{p\}$ is mapping.
1.390 \end{notation}
1.391
1.392 -$Cons_{PT}$ will be used to check the consistency of the already covered nodes, while $Cut_{PT}$ is for looking ahead to recognize if no whole consistent mapping can contain the current mapping.
1.393 +$Cons_{PT}$ will be used to check the consistency of the already
1.394 +covered nodes, while $Cut_{PT}$ is for looking ahead to recognize if
1.395 +no whole consistent mapping can contain the current mapping.
1.396
1.397 \subsection{Overview of the algorithm}
1.398 -VF2 uses a state space representation of mappings, $Cons_{PT}$ for excluding inconsistency with the problem type and $Cut_{PT}$ for pruning the search tree.
1.399 -Each state $s$ of the matching process can be associated with a mapping $M(s)$.
1.400 +VF2 uses a state space representation of mappings, $Cons_{PT}$ for
1.401 +excluding inconsistency with the problem type and $Cut_{PT}$ for
1.402 +pruning the search tree. Each state $s$ of the matching process can
1.403 +be associated with a mapping $M(s)$.
1.404
1.405 -\textbf{Algorithm~\ref{alg:VF2Pseu})} is a high level description of the VF2 matching algorithm.
1.406 +\textbf{Algorithm~\ref{alg:VF2Pseu})} is a high level description of
1.407 +the VF2 matching algorithm.
1.408
1.409
1.410 \begin{algorithm}
1.411 -\algtext*{EndIf}%ne nyomtasson end if-et
1.412 -\algtext*{EndFor}%ne nyomtasson ..
1.413 -\algtext*{EndProcedure}%ne nyomtasson ..
1.414 +\algtext*{EndIf}%ne nyomtasson end if-et \algtext*{EndFor}%ne
1.415 +nyomtasson .. \algtext*{EndProcedure}%ne nyomtasson ..
1.416 \caption{\hspace{0.5cm}$A\ high\ level\ description\ of\ VF2$}\label{alg:VF2Pseu}
1.417 \begin{algorithmic}[1]
1.418
1.419 -\Procedure{VF2}{State $s$, ProblemType $PT$}
1.420 - \If{$M(s$) covers $V_{small}$}
1.421 - \State Output($M(s)$)
1.422 - \Else
1.423 +\Procedure{VF2}{State $s$, ProblemType $PT$} \If{$M(s$) covers
1.424 + $V_{small}$} \State Output($M(s)$) \Else
1.425
1.426 - \State Compute the set $P(s)$ of the pairs candidate for inclusion in $M(s)$
1.427 - \ForAll{$p\in{P(s)}$}
1.428 - \If{Cons$_{PT}$($p, M(s)$) $\wedge$ $\neg$Cut$_{PT}$($p, M(s)$)}
1.429 - \State Compute the nascent state $\tilde{s}$ by adding $p$ to $M(s)$
1.430 - \State \textbf{call} VF2($\tilde{s}$, $PT$)
1.431 - \EndIf
1.432 - \EndFor
1.433 - \EndIf
1.434 -\EndProcedure
1.435 + \State Compute the set $P(s)$ of the pairs candidate for inclusion
1.436 + in $M(s)$ \ForAll{$p\in{P(s)}$} \If{Cons$_{PT}$($p, M(s)$) $\wedge$
1.437 + $\neg$Cut$_{PT}$($p, M(s)$)} \State Compute the nascent state
1.438 + $\tilde{s}$ by adding $p$ to $M(s)$ \State \textbf{call}
1.439 + VF2($\tilde{s}$, $PT$) \EndIf \EndFor \EndIf \EndProcedure
1.440 \end{algorithmic}
1.441 \end{algorithm}
1.442
1.443
1.444 -The initial state $s_0$ is associated with $M(s_0)=\emptyset$, i.e. it starts with an empty mapping.
1.445 +The initial state $s_0$ is associated with $M(s_0)=\emptyset$, i.e. it
1.446 +starts with an empty mapping.
1.447
1.448 -For each state $s$, the algorithm computes $P(s)$, the set of candidate node pairs for adding to the current state $s$.
1.449 +For each state $s$, the algorithm computes $P(s)$, the set of
1.450 +candidate node pairs for adding to the current state $s$.
1.451
1.452 -For each pair $p$ in $P(s)$, $Cons_{PT}(p,M(s))$ and $Cut_{PT}(p,M(s))$ are evaluated. If $Cons_{PT}(p,M(s))$ is true and $Cut_{PT}(p,M(s))$ is false, the successor state $\tilde{s}=s\cup \{p\}$ is computed, and the whole process is recursively applied to $\tilde{s}$. Otherwise, $\tilde{s}$ is not consistent by $PT$ or it can be proved that $s$ can not be extended to a whole mapping.
1.453 +For each pair $p$ in $P(s)$, $Cons_{PT}(p,M(s))$ and
1.454 +$Cut_{PT}(p,M(s))$ are evaluated. If $Cons_{PT}(p,M(s))$ is true and
1.455 +$Cut_{PT}(p,M(s))$ is false, the successor state $\tilde{s}=s\cup
1.456 +\{p\}$ is computed, and the whole process is recursively applied to
1.457 +$\tilde{s}$. Otherwise, $\tilde{s}$ is not consistent by $PT$ or it
1.458 +can be proved that $s$ can not be extended to a whole mapping.
1.459
1.460 In order to make sure of the correctness see
1.461 \begin{claim}
1.462 -Through consistent mappings, only consistent whole mappings can be reached, and all of the whole mappings are reachable through consistent mappings.
1.463 +Through consistent mappings, only consistent whole mappings can be
1.464 +reached, and all of the whole mappings are reachable through
1.465 +consistent mappings.
1.466 \end{claim}
1.467
1.468 -Note that a state may be reached in many different ways, since the order of insertions into M does not influence the nascent mapping. In fact, the number of different ways which lead to the same state can be exponentially large. If $G_{small}$ and $G_{large}$ are circles with n nodes and n different node labels, there exists exactly one graph isomorphism between them, but it will be reached in $n!$ different ways.
1.469 +Note that a state may be reached in many different ways, since the
1.470 +order of insertions into M does not influence the nascent mapping. In
1.471 +fact, the number of different ways which lead to the same state can be
1.472 +exponentially large. If $G_{small}$ and $G_{large}$ are circles with n
1.473 +nodes and n different node labels, there exists exactly one graph
1.474 +isomorphism between them, but it will be reached in $n!$ different
1.475 +ways.
1.476
1.477 However, one may observe
1.478
1.479 \begin{claim}
1.480 \label{claim:claimTotOrd}
1.481 -Let $\prec$ an arbitrary total ordering relation on $V_{small}$.
1.482 -If the algorithm ignores each $p=(u,v) \in P(s)$, for which
1.483 +Let $\prec$ an arbitrary total ordering relation on $V_{small}$. If
1.484 +the algorithm ignores each $p=(u,v) \in P(s)$, for which
1.485 \begin{center}
1.486 $\exists (\hat{u},\hat{v})\in P(s): \hat{u} \prec u$,
1.487 \end{center}
1.488 -then no state can be reached more than ones and each state associated with a whole mapping remains reachable.
1.489 +then no state can be reached more than ones and each state associated
1.490 +with a whole mapping remains reachable.
1.491 \end{claim}
1.492
1.493 -Note that the cornerstone of the improvements to VF2 is a proper choice of a total ordering.
1.494 +Note that the cornerstone of the improvements to VF2 is a proper
1.495 +choice of a total ordering.
1.496
1.497 \subsection{The candidate set P(s)}
1.498 \label{candidateComputingVF2}
1.499 $P(s)$ is the set of the candidate pairs for inclusion in $M(s)$.
1.500 -Suppose that $PT$ is an expanding problem type, see \textbf{Definition~\ref{expPT})}.
1.501 +Suppose that $PT$ is an expanding problem type, see
1.502 +\textbf{Definition~\ref{expPT})}.
1.503
1.504 \begin{notation}
1.505 -Let $\mathbf{T_{small}(s)}:=\{u \in V_{small} : u$ is not covered by $M(s)\wedge\exists \tilde{u}\in{V_{small}: (u,\tilde{u})\in E_{small}} \wedge \tilde{u}$ is covered by $M(s)\}$, and \\ $\mathbf{T_{large}(s)}\!:=\!\{v \in\!V_{large}\!:\!v$ is not covered by $M(s)\wedge\!\exists\tilde{v}\!\in\!{V_{large}\!:\!(v,\tilde{v})\in\!E_{large}} \wedge \tilde{v}$ is covered by $M(s)\}$
1.506 +Let $\mathbf{T_{small}(s)}:=\{u \in V_{small} : u$ is not covered by
1.507 +$M(s)\wedge\exists \tilde{u}\in{V_{small}: (u,\tilde{u})\in E_{small}}
1.508 +\wedge \tilde{u}$ is covered by $M(s)\}$, and
1.509 +\\ $\mathbf{T_{large}(s)}\!:=\!\{v \in\!V_{large}\!:\!v$ is not
1.510 +covered by
1.511 +$M(s)\wedge\!\exists\tilde{v}\!\in\!{V_{large}\!:\!(v,\tilde{v})\in\!E_{large}}
1.512 +\wedge \tilde{v}$ is covered by $M(s)\}$
1.513 \end{notation}
1.514
1.515 -The set $P(s)$ includes the pairs of uncovered neighbours of covered nodes and if there is not such a node pair, all the pairs containing two uncovered nodes are added. Formally, let
1.516 +The set $P(s)$ includes the pairs of uncovered neighbours of covered
1.517 +nodes and if there is not such a node pair, all the pairs containing
1.518 +two uncovered nodes are added. Formally, let
1.519 \[
1.520 P(s)\!=\!
1.521 \begin{cases}
1.522 - T_{small}(s)\times T_{large}(s)&\hspace{-0.15cm}\text{if } T_{small}(s)\!\neq\!\emptyset\!\wedge\!T_{large}(s)\!\neq \emptyset,\\
1.523 - (V_{small}\!\setminus\!M_{small}(s))\!\times\!(V_{large}\!\setminus\!M_{large}(s)) &\hspace{-0.15cm}otherwise.
1.524 + T_{small}(s)\times T_{large}(s)&\hspace{-0.15cm}\text{if }
1.525 + T_{small}(s)\!\neq\!\emptyset\!\wedge\!T_{large}(s)\!\neq
1.526 + \emptyset,\\ (V_{small}\!\setminus\!M_{small}(s))\!\times\!(V_{large}\!\setminus\!M_{large}(s))
1.527 + &\hspace{-0.15cm}otherwise.
1.528 \end{cases}
1.529 \]
1.530
1.531 \subsection{Consistency}
1.532 -This section defines the consistency functions for the different problem types mentioned in \textbf{Section \ref{sec:CommProb})}.
1.533 +This section defines the consistency functions for the different
1.534 +problem types mentioned in \textbf{Section \ref{sec:CommProb})}.
1.535 \begin{notation}
1.536 -Let $\mathbf{\Gamma_{small} (u)}:=\{\tilde{u}\in V_{small} : (u,\tilde{u})\in E_{small}\}$\\
1.537 -Let $\mathbf{\Gamma_{large} (v)}:=\{\tilde{v}\in V_{large} : (v,\tilde{v})\in E_{large}\}$
1.538 +Let $\mathbf{\Gamma_{small} (u)}:=\{\tilde{u}\in V_{small} :
1.539 +(u,\tilde{u})\in E_{small}\}$\\ Let $\mathbf{\Gamma_{large}
1.540 + (v)}:=\{\tilde{v}\in V_{large} : (v,\tilde{v})\in E_{large}\}$
1.541 \end{notation}
1.542 -Suppose $p=(u,v)$, where $u\in V_{small}$ and $v\in V_{large}$,
1.543 -$s$ is a state of the matching procedure,
1.544 -$M(s)$ is consistent mapping by $PT$ and $lab(u)=lab(v)$.
1.545 -$Cons_{PT}(p,M(s))$ checks whether including pair $p$ into $M(s)$ leads to a consistent mapping by $PT$.
1.546 +Suppose $p=(u,v)$, where $u\in V_{small}$ and $v\in V_{large}$, $s$ is
1.547 +a state of the matching procedure, $M(s)$ is consistent mapping by
1.548 +$PT$ and $lab(u)=lab(v)$. $Cons_{PT}(p,M(s))$ checks whether
1.549 +including pair $p$ into $M(s)$ leads to a consistent mapping by $PT$.
1.550
1.551 \subsubsection{Induced subgraph isomorphism}
1.552 -$M(s)\cup \{(u,v)\}$ is a consistent mapping by $IND$ $\Leftrightarrow (\forall \tilde{u}\in M_{small}: (u,\tilde{u})\in E_{small} \Leftrightarrow (v,Pair(M(s),\tilde{u}))\in E_{large})$.\newline
1.553 -The following formulation gives an efficient way of calculating $Cons_{IND}$.
1.554 +$M(s)\cup \{(u,v)\}$ is a consistent mapping by $IND$ $\Leftrightarrow
1.555 +(\forall \tilde{u}\in M_{small}: (u,\tilde{u})\in E_{small}
1.556 +\Leftrightarrow (v,Pair(M(s),\tilde{u}))\in E_{large})$.\newline The
1.557 +following formulation gives an efficient way of calculating
1.558 +$Cons_{IND}$.
1.559 \begin{claim}
1.560 -$Cons_{IND}((u,v),M(s)):=(\forall \tilde{v}\in \Gamma_{large}(v) \ \cap\ M_{large}(s):\\(Pair(M(s),\tilde{v}),u)\in E_{small})\wedge
1.561 -(\forall \tilde{u}\in \Gamma_{small}(u) \ \cap\ M_{small}(s):(v,Pair(M(s),\tilde{u}))\in E_{large})$ is a consistency function in the case of $IND$.
1.562 +$Cons_{IND}((u,v),M(s)):=(\forall \tilde{v}\in \Gamma_{large}(v)
1.563 + \ \cap\ M_{large}(s):\\(Pair(M(s),\tilde{v}),u)\in E_{small})\wedge
1.564 + (\forall \tilde{u}\in \Gamma_{small}(u)
1.565 + \ \cap\ M_{small}(s):(v,Pair(M(s),\tilde{u}))\in E_{large})$ is a
1.566 + consistency function in the case of $IND$.
1.567 \end{claim}
1.568
1.569 \subsubsection{Graph isomorphism}
1.570 -$M(s)\cup \{(u,v)\}$ is a consistent mapping by $ISO$ $\Leftrightarrow$ $M(s)\cup \{(u,v)\}$ is a consistent mapping by $IND$.
1.571 +$M(s)\cup \{(u,v)\}$ is a consistent mapping by $ISO$
1.572 +$\Leftrightarrow$ $M(s)\cup \{(u,v)\}$ is a consistent mapping by
1.573 +$IND$.
1.574 \begin{claim}
1.575 -$Cons_{ISO}((u,v),M(s))$ is a consistency function by $ISO$ if and only if it is a consistency function by $IND$.
1.576 +$Cons_{ISO}((u,v),M(s))$ is a consistency function by $ISO$ if and
1.577 + only if it is a consistency function by $IND$.
1.578 \end{claim}
1.579 \subsubsection{Subgraph isomorphism}
1.580 -$M(s)\cup \{(u,v)\}$ is a consistent mapping by $SUB$ $\Leftrightarrow (\forall \tilde{u}\in M_{small}:\\(u,\tilde{u})\in E_{small} \Rightarrow (v,Pair(M(s),\tilde{u}))\in E_{large})$.
1.581 +$M(s)\cup \{(u,v)\}$ is a consistent mapping by $SUB$ $\Leftrightarrow
1.582 +(\forall \tilde{u}\in M_{small}:\\(u,\tilde{u})\in E_{small}
1.583 +\Rightarrow (v,Pair(M(s),\tilde{u}))\in E_{large})$.
1.584 \newline
1.585 -The following formulation gives an efficient way of calculating $Cons_{SUB}$.
1.586 +The following formulation gives an efficient way of calculating
1.587 +$Cons_{SUB}$.
1.588 \begin{claim}
1.589 -$Cons_{SUB}((u,v),M(s)):=
1.590 -(\forall \tilde{u}\in \Gamma_{small}(u) \ \cap\ M_{small}(s):\\(v,Pair(M(s),\tilde{u}))\in E_{large})$ is a consistency function by $SUB$.
1.591 +$Cons_{SUB}((u,v),M(s)):= (\forall \tilde{u}\in \Gamma_{small}(u)
1.592 + \ \cap\ M_{small}(s):\\(v,Pair(M(s),\tilde{u}))\in E_{large})$ is a
1.593 + consistency function by $SUB$.
1.594 \end{claim}
1.595
1.596 \subsection{Cutting rules}
1.597 -$Cut_{PT}(p,M(s))$ is defined by a collection of efficiently verifiable conditions. The requirement is that $Cut_{PT}(p,M(s))$ can be true only if it is impossible to extended $M(s)\cup \{p\}$ to a whole mapping.
1.598 +$Cut_{PT}(p,M(s))$ is defined by a collection of efficiently
1.599 +verifiable conditions. The requirement is that $Cut_{PT}(p,M(s))$ can
1.600 +be true only if it is impossible to extended $M(s)\cup \{p\}$ to a
1.601 +whole mapping.
1.602 \begin{notation}
1.603
1.604 -Let $\mathbf{\tilde{T}_{small}}(s):=(V_{small}\backslash M_{small}(s))\backslash T_{small}(s)$, and \\ $\mathbf{\tilde{T}_{large}}(s):=(V_{large}\backslash M_{large}(s))\backslash T_{large}(s)$.
1.605 +Let $\mathbf{\tilde{T}_{small}}(s):=(V_{small}\backslash
1.606 +M_{small}(s))\backslash T_{small}(s)$, and
1.607 +\\ $\mathbf{\tilde{T}_{large}}(s):=(V_{large}\backslash
1.608 +M_{large}(s))\backslash T_{large}(s)$.
1.609 \end{notation}
1.610 \subsubsection{Induced subgraph isomorphism}
1.611 \begin{claim}
1.612 -$Cut_{IND}((u,v),M(s)):= |\Gamma_{large} (v)\ \cap\ T_{large}(s)| < |\Gamma_{small} (u)\ \cap\ T_{small}(s)| \vee |\Gamma_{large}(v)\cap \tilde{T}_{large}(s)| < |\Gamma_{small}(u)\cap \tilde{T}_{small}(s)|$ is a cutting function by $IND$.
1.613 +$Cut_{IND}((u,v),M(s)):= |\Gamma_{large} (v)\ \cap\ T_{large}(s)| <
1.614 + |\Gamma_{small} (u)\ \cap\ T_{small}(s)| \vee |\Gamma_{large}(v)\cap
1.615 + \tilde{T}_{large}(s)| < |\Gamma_{small}(u)\cap
1.616 + \tilde{T}_{small}(s)|$ is a cutting function by $IND$.
1.617 \end{claim}
1.618 \subsubsection{Graph isomorphism}
1.619 -Note that the cutting function of induced subgraph isomorphism defined above is a cutting function by $ISO$, too, however it is less efficient than the following while their computational complexity is the same.
1.620 +Note that the cutting function of induced subgraph isomorphism defined
1.621 +above is a cutting function by $ISO$, too, however it is less
1.622 +efficient than the following while their computational complexity is
1.623 +the same.
1.624 \begin{claim}
1.625 -$Cut_{ISO}((u,v),M(s)):= |\Gamma_{large} (v)\ \cap\ T_{large}(s)| \neq |\Gamma_{small} (u)\ \cap\ T_{small}(s)| \vee |\Gamma_{large}(v)\cap \tilde{T}_{large}(s)| \neq |\Gamma_{small}(u)\cap \tilde{T}_{small}(s)|$ is a cutting function by $ISO$.
1.626 +$Cut_{ISO}((u,v),M(s)):= |\Gamma_{large} (v)\ \cap\ T_{large}(s)| \neq
1.627 + |\Gamma_{small} (u)\ \cap\ T_{small}(s)| \vee |\Gamma_{large}(v)\cap
1.628 + \tilde{T}_{large}(s)| \neq |\Gamma_{small}(u)\cap
1.629 + \tilde{T}_{small}(s)|$ is a cutting function by $ISO$.
1.630 \end{claim}
1.631
1.632 \subsubsection{Subgraph isomorphism}
1.633 \begin{claim}
1.634 -$Cut_{SUB}((u,v),M(s)):= |\Gamma_{large} (v)\ \cap\ T_{large}(s)| < |\Gamma_{small} (u)\ \cap\ T_{small}(s)|$ is a cutting function by $SUB$.
1.635 +$Cut_{SUB}((u,v),M(s)):= |\Gamma_{large} (v)\ \cap\ T_{large}(s)| <
1.636 + |\Gamma_{small} (u)\ \cap\ T_{small}(s)|$ is a cutting function by
1.637 + $SUB$.
1.638 \end{claim}
1.639 -Note that there is a significant difference between induced and non-induced subgraph isomorphism:
1.640 +Note that there is a significant difference between induced and
1.641 +non-induced subgraph isomorphism:
1.642
1.643 \begin{claim}
1.644 \label{claimSUB}
1.645 -$Cut_{SUB}'((u,v),M(s)):= |\Gamma_{large} (v)\ \cap\ T_{large}(s)| < |\Gamma_{small} (u)\ \cap\ T_{small}(s)| \vee |\Gamma_{large}(v)\cap \tilde{T}_{large}(s)| < |\Gamma_{small}(u)\cap \tilde{T}_{small}(s)|$ is \textbf{not} a cutting function by $SUB$.
1.646 +$Cut_{SUB}'((u,v),M(s)):= |\Gamma_{large} (v)\ \cap\ T_{large}(s)| <
1.647 +|\Gamma_{small} (u)\ \cap\ T_{small}(s)| \vee |\Gamma_{large}(v)\cap
1.648 +\tilde{T}_{large}(s)| < |\Gamma_{small}(u)\cap \tilde{T}_{small}(s)|$
1.649 +is \textbf{not} a cutting function by $SUB$.
1.650 \end{claim}
1.651 \begin{proof}$ $\\
1.652 \vspace*{-0.5cm}
1.653 @@ -499,208 +698,324 @@
1.654 \begin{center}
1.655 \begin{tikzpicture}
1.656 [scale=.8,auto=left,every node/.style={circle,fill=black!15}]
1.657 - \node[rectangle,fill=black!15] at (4,6) {$G_{small}$};
1.658 - \node (u4) at (2.5,10) {$u_4$};
1.659 - \node (u3) at (5.5,10) {$u_3$};
1.660 - \node (u1) at (2.5,7) {$u_1$};
1.661 - \node (u2) at (5.5,7) {$u_2$};
1.662 + \node[rectangle,fill=black!15] at (4,6) {$G_{small}$}; \node (u4) at
1.663 + (2.5,10) {$u_4$}; \node (u3) at (5.5,10) {$u_3$}; \node (u1) at
1.664 + (2.5,7) {$u_1$}; \node (u2) at (5.5,7) {$u_2$};
1.665
1.666 \node[rectangle,fill=black!30] at (13.5,6) {$G_{large}$};
1.667 - \node[fill=black!30] (v4) at (12,10) {$v_4$};
1.668 - \node[fill=black!30] (v3) at (15,10) {$v_3$};
1.669 - \node[fill=black!30] (v1) at (12,7) {$v_1$};
1.670 - \node[fill=black!30] (v2) at (15,7) {$v_2$};
1.671 + \node[fill=black!30] (v4) at (12,10) {$v_4$}; \node[fill=black!30]
1.672 + (v3) at (15,10) {$v_3$}; \node[fill=black!30] (v1) at (12,7)
1.673 + {$v_1$}; \node[fill=black!30] (v2) at (15,7) {$v_2$};
1.674
1.675
1.676 - \foreach \from/\to in {u1/u2,u2/u3,u3/u4,u4/u1}
1.677 - \draw (\from) -- (\to);
1.678 - \foreach \from/\to in {v1/v2,v2/v3,v3/v4,v4/v1,v1/v3}
1.679 - \draw (\from) -- (\to);
1.680 + \foreach \from/\to in {u1/u2,u2/u3,u3/u4,u4/u1} \draw (\from) --
1.681 + (\to); \foreach \from/\to in {v1/v2,v2/v3,v3/v4,v4/v1,v1/v3} \draw
1.682 + (\from) -- (\to);
1.683 % \draw[dashed] (\from) -- (\to);
1.684 \end{tikzpicture}
1.685 -\caption{Graphs for the proof of \textbf{Claim \ref{claimSUB}}} \label{fig:proofSUB}
1.686 +\caption{Graphs for the proof of \textbf{Claim
1.687 + \ref{claimSUB}}} \label{fig:proofSUB}
1.688 \end{center}
1.689 \end{figure}
1.690 -Let the two graphs of \textbf{Figure \ref{fig:proofSUB})} be the input graphs.
1.691 -Suppose the total ordering relation is $u_1 \prec u_2 \prec u_3 \prec u_4$,$M(s)\!=\{(u_1,v_1)\}$, and VF2 tries to add $(u_2,v_2)\in P(s)$.\newline
1.692 -$Cons_{SUB}((u_2,v_2),M(s))=true$, so $M\cup \{(u_2,v_2)\}$ is consistent by $SUB$. The cutting function $Cut_{SUB}((u_2,v_2),M(s))$ is false, so it does not let cut the tree.\newline
1.693 -On the other hand $Cut_{SUB}'((u_2,v_2),M(s))$ is true, since\\$0=|\Gamma_{large}(v_2)\cap \tilde{T}_{large}(s)|<|\Gamma_{small}(u_2)\cap \tilde{T}_{small}(s)|=1$ is true, but still the tree can not be pruned, because otherwise the $\{(u_1,v_1)(u_2,v_2)(u_3,v_3)(u_4,v_4)\}$ mapping can not be found.
1.694 +Let the two graphs of \textbf{Figure \ref{fig:proofSUB})} be the input
1.695 +graphs. Suppose the total ordering relation is $u_1 \prec u_2 \prec
1.696 +u_3 \prec u_4$,$M(s)\!=\{(u_1,v_1)\}$, and VF2 tries to add
1.697 +$(u_2,v_2)\in P(s)$.\newline $Cons_{SUB}((u_2,v_2),M(s))=true$, so
1.698 +$M\cup \{(u_2,v_2)\}$ is consistent by $SUB$. The cutting function
1.699 +$Cut_{SUB}((u_2,v_2),M(s))$ is false, so it does not let cut the
1.700 +tree.\newline On the other hand $Cut_{SUB}'((u_2,v_2),M(s))$ is true,
1.701 +since\\$0=|\Gamma_{large}(v_2)\cap
1.702 +\tilde{T}_{large}(s)|<|\Gamma_{small}(u_2)\cap
1.703 +\tilde{T}_{small}(s)|=1$ is true, but still the tree can not be
1.704 +pruned, because otherwise the
1.705 +$\{(u_1,v_1)(u_2,v_2)(u_3,v_3)(u_4,v_4)\}$ mapping can not be found.
1.706 \end{proof}
1.707
1.708 -\newpage
1.709 \section{The VF2++ Algorithm}
1.710 -Although any total ordering relation makes the search space of VF2 a tree, its
1.711 -choice turns out to dramatically influence the number of visited states. The goal is to determine an efficient one as quickly as possible.
1.712 +Although any total ordering relation makes the search space of VF2 a
1.713 +tree, its choice turns out to dramatically influence the number of
1.714 +visited states. The goal is to determine an efficient one as quickly
1.715 +as possible.
1.716
1.717 -The main reason for VF2++' superiority over VF2 is twofold. Firstly, taking into account the structure and the node labeling of the graph, VF2++ determines a state order in which most of the unfruitful branches of the search space can be pruned immediately. Secondly, introducing more efficient --- nevertheless still easier to compute --- cutting rules reduces the chance of going astray even further.
1.718 +The main reason for VF2++' superiority over VF2 is twofold. Firstly,
1.719 +taking into account the structure and the node labeling of the graph,
1.720 +VF2++ determines a state order in which most of the unfruitful
1.721 +branches of the search space can be pruned immediately. Secondly,
1.722 +introducing more efficient --- nevertheless still easier to compute
1.723 +--- cutting rules reduces the chance of going astray even further.
1.724
1.725 -In addition to the usual subgraph isomorphism, specialized versions for induced subgraph isomorphism and for graph isomorphism have been designed. VF2++ has gained a runtime improvement of one order of magnitude respecting induced subgraph isomorphism and a better asymptotical behaviour in the case of graph isomorphism problem.
1.726 +In addition to the usual subgraph isomorphism, specialized versions
1.727 +for induced subgraph isomorphism and for graph isomorphism have been
1.728 +designed. VF2++ has gained a runtime improvement of one order of
1.729 +magnitude respecting induced subgraph isomorphism and a better
1.730 +asymptotical behaviour in the case of graph isomorphism problem.
1.731
1.732 -Note that a weaker version of the cutting rules and the more efficient candidate
1.733 -set calculating were described in \cite{VF2Plus}, too.
1.734 +Note that a weaker version of the cutting rules and the more efficient
1.735 +candidate set calculating were described in \cite{VF2Plus}, too.
1.736
1.737 -It should be noted that all the methods described in this section are extendable to handle directed graphs and edge labels as well.
1.738 +It should be noted that all the methods described in this section are
1.739 +extendable to handle directed graphs and edge labels as well.
1.740
1.741 -The basic ideas and the detailed description of VF2++ are provided in the following.
1.742 +The basic ideas and the detailed description of VF2++ are provided in
1.743 +the following.
1.744
1.745 \subsection{Preparations}
1.746 \begin{claim}
1.747 \label{claim:claimCoverFromLeft}
1.748 -The total ordering relation uniquely determines a node order, in which the nodes of $V_{small}$ will be covered by VF2. From the point of view of the matching procedure, this means, that always the same node of $G_{small}$ will be covered on the d-th level.
1.749 +The total ordering relation uniquely determines a node order, in which
1.750 +the nodes of $V_{small}$ will be covered by VF2. From the point of
1.751 +view of the matching procedure, this means, that always the same node
1.752 +of $G_{small}$ will be covered on the d-th level.
1.753 \end{claim}
1.754 \begin{proof}
1.755 -In order to make the search space a tree, the pairs in $\{(u,v)\in P(s) : \exists \hat{u} : \hat{u}\prec u\}$ are excluded from $P(s)$.
1.756 +In order to make the search space a tree, the pairs in $\{(u,v)\in
1.757 +P(s) : \exists \hat{u} : \hat{u}\prec u\}$ are excluded from $P(s)$.
1.758 \newline
1.759 -Let $\tilde{P}(s):=P(s)\backslash \{(u,v)\in P(s) : \exists \hat{u} : \hat{u}\prec u\}$
1.760 +Let $\tilde{P}(s):=P(s)\backslash \{(u,v)\in P(s) : \exists \hat{u} :
1.761 +\hat{u}\prec u\}$
1.762 \newline
1.763 -The relation $\prec$ is a total ordering, so $\exists!\ \tilde{u} : \forall\ (u,v)\in \tilde{P}(s): u=\tilde u$. Since a pair form $\tilde{P}(s)$ is chosen for including into $M(s)$, it is obvious, that only $\tilde{u}$ can be covered in $V_{small}$. Actually, $\tilde{u}$ is the smallest element in $T_{small}(s)$ (or in $V_{small}\backslash M_{small}(s)$, if $T_{small}(s)$ were empty), and $T_{small}(s)$ depends only on the covered nodes of $G_{small}$.
1.764 +The relation $\prec$ is a total ordering, so $\exists!\ \tilde{u} :
1.765 +\forall\ (u,v)\in \tilde{P}(s): u=\tilde u$. Since a pair form
1.766 +$\tilde{P}(s)$ is chosen for including into $M(s)$, it is obvious,
1.767 +that only $\tilde{u}$ can be covered in $V_{small}$. Actually,
1.768 +$\tilde{u}$ is the smallest element in $T_{small}(s)$ (or in
1.769 +$V_{small}\backslash M_{small}(s)$, if $T_{small}(s)$ were empty), and
1.770 +$T_{small}(s)$ depends only on the covered nodes of $G_{small}$.
1.771 \newline
1.772 -Simple induction on $d$ shows that the set of covered nodes of $G_{small}$ is unique, if $d$ is given, so $\tilde{u}$ is unique if $d$ is given.
1.773 +Simple induction on $d$ shows that the set of covered nodes of
1.774 +$G_{small}$ is unique, if $d$ is given, so $\tilde{u}$ is unique if
1.775 +$d$ is given.
1.776 \end{proof}
1.777
1.778 \begin{definition}
1.779 -An order $(u_{\sigma(1)},u_{\sigma(2)},..,u_{\sigma(|V_{small}|)})$ of $V_{small}$ is \textbf{matching order}, if exists $\prec$ total ordering relation, s.t. the VF2 with $\prec$ on the d-th level finds pair for $u_{\sigma(d)}$ for all $d\in\{1,..,|V_{small}|\}$.
1.780 +An order $(u_{\sigma(1)},u_{\sigma(2)},..,u_{\sigma(|V_{small}|)})$ of
1.781 +$V_{small}$ is \textbf{matching order}, if exists $\prec$ total
1.782 +ordering relation, s.t. the VF2 with $\prec$ on the d-th level finds
1.783 +pair for $u_{\sigma(d)}$ for all $d\in\{1,..,|V_{small}|\}$.
1.784 \end{definition}
1.785
1.786 \begin{claim}\label{claim:MOclaim}
1.787 -A total ordering is matching order, iff the nodes of every component form an interval in the node sequence, and every node connects to a previous node in its component except the first node of the component. The order of the components is arbitrary.
1.788 -\\Formally spoken, an order $(u_{\sigma(1)},u_{\sigma(2)},..,u_{\sigma(|V_{small}|)})$ of $V_{small}$ is matching order $\Leftrightarrow$ $\forall G'_{small}=(V'_{small},E'_{small})\ component\ of\ G_{small}: \forall i: (\exists j : j<i\wedge u_{\sigma(j)},u_{\sigma(i)}\in V'_{small})\Rightarrow \exists k : k < i \wedge (\forall l: k\leq l\leq i \Rightarrow u_{l}\in V'_{small}) \wedge (u_{\sigma{(k)}},u_{\sigma{(i)}})\in E'_{small}$, where $i,j,k,l\in \{1,..,|V_{small}|\}$\newline
1.789 +A total ordering is matching order, iff the nodes of every component
1.790 +form an interval in the node sequence, and every node connects to a
1.791 +previous node in its component except the first node of the
1.792 +component. The order of the components is arbitrary. \\Formally
1.793 +spoken, an order
1.794 +$(u_{\sigma(1)},u_{\sigma(2)},..,u_{\sigma(|V_{small}|)})$ of
1.795 +$V_{small}$ is matching order $\Leftrightarrow$ $\forall
1.796 +G'_{small}=(V'_{small},E'_{small})\ component\ of\ G_{small}: \forall
1.797 +i: (\exists j : j<i\wedge u_{\sigma(j)},u_{\sigma(i)}\in
1.798 +V'_{small})\Rightarrow \exists k : k < i \wedge (\forall l: k\leq
1.799 +l\leq i \Rightarrow u_{l}\in V'_{small}) \wedge
1.800 +(u_{\sigma{(k)}},u_{\sigma{(i)}})\in E'_{small}$, where $i,j,k,l\in
1.801 +\{1,..,|V_{small}|\}$\newline
1.802 \end{claim}
1.803 \begin{proof}
1.804 -Suppose a matching order is given. It has to be shown that the node sequence has a structure described above.\\
1.805 -Let $G'_{small}=(V'_{small},E'_{small})$ be an arbitrary component and $i$ an arbitrary index.
1.806 +Suppose a matching order is given. It has to be shown that the node
1.807 +sequence has a structure described above.\\ Let
1.808 +$G'_{small}=(V'_{small},E'_{small})$ be an arbitrary component and $i$
1.809 +an arbitrary index.
1.810 \newline
1.811 -$(\exists j : j<i\wedge u_{\sigma(j)},u_{\sigma(i)}\in V'_{small})\Rightarrow u_{\sigma(i)}$ is not the first covered node in $G_{small}\ \Rightarrow u_{\sigma(i)}$ is connected to a covered node $u_{\sigma(k)}$ where $k<i$, since $u_{\sigma(i)}\in T_{small}(s)$ for some $s$ and $T_{small}(s)\subseteq{V'_{small}}$ contains only nodes connected to at least one covered node. It's easy to see, that $\forall l: k\leq l\leq i \Rightarrow u_{l}\in V'_{small}$, since $T_{small}(s)$ contains only nodes connected to some covered ones, while it is not empty, but if it were empty, then $u_{\sigma(k)}$ and $u_{\sigma(i)}$ were not in the same component.
1.812 +$(\exists j : j<i\wedge u_{\sigma(j)},u_{\sigma(i)}\in
1.813 +V'_{small})\Rightarrow u_{\sigma(i)}$ is not the first covered node in
1.814 +$G_{small}\ \Rightarrow u_{\sigma(i)}$ is connected to a covered node
1.815 +$u_{\sigma(k)}$ where $k<i$, since $u_{\sigma(i)}\in T_{small}(s)$ for
1.816 +some $s$ and $T_{small}(s)\subseteq{V'_{small}}$ contains only nodes
1.817 +connected to at least one covered node. It's easy to see, that
1.818 +$\forall l: k\leq l\leq i \Rightarrow u_{l}\in V'_{small}$, since
1.819 +$T_{small}(s)$ contains only nodes connected to some covered ones,
1.820 +while it is not empty, but if it were empty, then $u_{\sigma(k)}$ and
1.821 +$u_{\sigma(i)}$ were not in the same component.
1.822
1.823 -Now, let us show that if a node sequence has the special structure described above, it has to be matching order.\\ $(u_{\sigma(1)},u_{\sigma(2)},..,u_{\sigma(|V_{small}|)})$ is a total ordering, which determines the matching order $(u_{\sigma(1)},u_{\sigma(2)},..,u_{\sigma(|V_{small}|)})$.
1.824 +Now, let us show that if a node sequence has the special structure
1.825 +described above, it has to be matching
1.826 +order.\\ $(u_{\sigma(1)},u_{\sigma(2)},..,u_{\sigma(|V_{small}|)})$ is
1.827 +a total ordering, which determines the matching order
1.828 +$(u_{\sigma(1)},u_{\sigma(2)},..,u_{\sigma(|V_{small}|)})$.
1.829 \end{proof}
1.830
1.831 -To summing up, a total ordering always uniquely determines a matching order, and every matching order can be determined by a total ordering, however, more than one different total orderings may determine the same matching order.
1.832 +To summing up, a total ordering always uniquely determines a matching
1.833 +order, and every matching order can be determined by a total ordering,
1.834 +however, more than one different total orderings may determine the
1.835 +same matching order.
1.836 \subsection{Idea behind the algorithm}
1.837 -The goal is to find a matching order in which the algorithm is able to recognize inconsistency or prune the infeasible branches on the highest levels and goes deep only if it is needed.
1.838 +The goal is to find a matching order in which the algorithm is able to
1.839 +recognize inconsistency or prune the infeasible branches on the
1.840 +highest levels and goes deep only if it is needed.
1.841
1.842 \begin{notation}
1.843 -Let $\mathbf{Conn_{H}(u)}:=|\Gamma_{small}(u)\cap H\}|$, that is the number of neighbours of u which are in H, where $u\in V_{small} $ and $H\subseteq V_{small}$.
1.844 +Let $\mathbf{Conn_{H}(u)}:=|\Gamma_{small}(u)\cap H\}|$, that is the
1.845 +number of neighbours of u which are in H, where $u\in V_{small} $ and
1.846 +$H\subseteq V_{small}$.
1.847 \end{notation}
1.848
1.849 -The principal question is the following. Suppose a state $s$ is given. For which node of $T_{small}(s)$ is the hardest to find a consistent pair in $G_{large}$? The more covered neighbours a node in $T_{small}(s)$ has --- i.e. the largest $Conn_{M_{small}(s)}$ it has ---, the more rarely satisfiable consistency constraints for its pair are given.
1.850 +The principal question is the following. Suppose a state $s$ is
1.851 +given. For which node of $T_{small}(s)$ is the hardest to find a
1.852 +consistent pair in $G_{large}$? The more covered neighbours a node in
1.853 +$T_{small}(s)$ has --- i.e. the largest $Conn_{M_{small}(s)}$ it has
1.854 +---, the more rarely satisfiable consistency constraints for its pair
1.855 +are given.
1.856
1.857 -In biology, most of the graphs are sparse, thus several nodes in $T_{small}(s)$ may have the same $Conn_{M_{small}(s)}$, which makes reasonable to define a secondary and a tertiary order between them.
1.858 -The observation above proves itself to be as determining, that the secondary ordering prefers nodes with the most uncovered neighbours among which have the same $Conn_{M_{small}(s)}$ to increase $Conn_{M_{small}(s)}$ of uncovered nodes so much, as possible.
1.859 -The tertiary ordering prefers nodes having the rarest uncovered labels.
1.860 +In biology, most of the graphs are sparse, thus several nodes in
1.861 +$T_{small}(s)$ may have the same $Conn_{M_{small}(s)}$, which makes
1.862 +reasonable to define a secondary and a tertiary order between them.
1.863 +The observation above proves itself to be as determining, that the
1.864 +secondary ordering prefers nodes with the most uncovered neighbours
1.865 +among which have the same $Conn_{M_{small}(s)}$ to increase
1.866 +$Conn_{M_{small}(s)}$ of uncovered nodes so much, as possible. The
1.867 +tertiary ordering prefers nodes having the rarest uncovered labels.
1.868
1.869 -Note that the secondary ordering is the same as the ordering by $deg$, which is a static data in front of the above used.
1.870 +Note that the secondary ordering is the same as the ordering by $deg$,
1.871 +which is a static data in front of the above used.
1.872
1.873 -These rules can easily result in a matching order which contains the nodes of a long path successively, whose nodes may have low $Conn$ and is easily matchable into $G_{large}$. To avoid that, a BFS order is used, which provides the shortest possible paths.
1.874 +These rules can easily result in a matching order which contains the
1.875 +nodes of a long path successively, whose nodes may have low $Conn$ and
1.876 +is easily matchable into $G_{large}$. To avoid that, a BFS order is
1.877 +used, which provides the shortest possible paths.
1.878 \newline
1.879
1.880 -In the following, some examples on which the VF2 may be slow are described, although they are easily solvable by using a proper matching order.
1.881 +In the following, some examples on which the VF2 may be slow are
1.882 +described, although they are easily solvable by using a proper
1.883 +matching order.
1.884
1.885 \begin{example}
1.886 -Suppose $G_{small}$ can be mapped into $G_{large}$ in many ways without node labels. Let $u\in V_{small}$ and $v\in V_{large}$.
1.887 +Suppose $G_{small}$ can be mapped into $G_{large}$ in many ways
1.888 +without node labels. Let $u\in V_{small}$ and $v\in V_{large}$.
1.889 \newline
1.890 $lab(u):=black$
1.891 \newline
1.892 $lab(v):=black$
1.893 \newline
1.894 -$lab(\tilde{u}):=red \ \forall \tilde{u}\in (V_{small}\backslash \{u\})$
1.895 +$lab(\tilde{u}):=red \ \forall \tilde{u}\in (V_{small}\backslash
1.896 +\{u\})$
1.897 \newline
1.898 -$lab(\tilde{v}):=red \ \forall \tilde{v}\in (V_{large}\backslash \{v\})$
1.899 +$lab(\tilde{v}):=red \ \forall \tilde{v}\in (V_{large}\backslash
1.900 +\{v\})$
1.901 \newline
1.902
1.903 -Now, any mapping by the node label $lab$ must contain $(u,v)$, since $u$ is black and no node in $V_{large}$ has a black label except $v$. If unfortunately $u$ were the last node which will get covered, VF2 would check only in the last steps, whether $u$ can be matched to $v$.
1.904 +Now, any mapping by the node label $lab$ must contain $(u,v)$, since
1.905 +$u$ is black and no node in $V_{large}$ has a black label except
1.906 +$v$. If unfortunately $u$ were the last node which will get covered,
1.907 +VF2 would check only in the last steps, whether $u$ can be matched to
1.908 +$v$.
1.909 \newline
1.910 -However, had $u$ been the first matched node, u would have been matched immediately to v, so all the mappings would have been precluded in which node labels can not correspond.
1.911 +However, had $u$ been the first matched node, u would have been
1.912 +matched immediately to v, so all the mappings would have been
1.913 +precluded in which node labels can not correspond.
1.914 \end{example}
1.915
1.916 \begin{example}
1.917 -Suppose there is no node label given, $G_{small}$ is a small graph and can not be mapped into $G_{large}$ and $u\in V_{small}$.
1.918 +Suppose there is no node label given, $G_{small}$ is a small graph and
1.919 +can not be mapped into $G_{large}$ and $u\in V_{small}$.
1.920 \newline
1.921 -Let $G'_{small}:=(V_{small}\cup \{u'_{1},u'_{2},..,u'_{k}\},E_{small}\cup \{(u,u'_{1}),(u'_{1},u'_{2}),..,(u'_{k-1},u'_{k})\})$, that is, $G'_{small}$ is $G_{small}\cup \{ a\ k$ long path, which is disjoint from $G_{small}$ and one of its starting points is connected to $u\in V_{small}\}$.
1.922 +Let $G'_{small}:=(V_{small}\cup
1.923 +\{u'_{1},u'_{2},..,u'_{k}\},E_{small}\cup
1.924 +\{(u,u'_{1}),(u'_{1},u'_{2}),..,(u'_{k-1},u'_{k})\})$, that is,
1.925 +$G'_{small}$ is $G_{small}\cup \{ a\ k$ long path, which is disjoint
1.926 +from $G_{small}$ and one of its starting points is connected to $u\in
1.927 +V_{small}\}$.
1.928 \newline
1.929 -Is there a subgraph of $G_{large}$, which is isomorph with $G'_{small}$?
1.930 +Is there a subgraph of $G_{large}$, which is isomorph with
1.931 +$G'_{small}$?
1.932 \newline
1.933 -If unfortunately the nodes of the path were the first $k$ nodes in the matching order, the algorithm would iterate through all the possible k long paths in $G_{large}$, and it would recognize that no path can be extended to $G'_{small}$.
1.934 +If unfortunately the nodes of the path were the first $k$ nodes in the
1.935 +matching order, the algorithm would iterate through all the possible k
1.936 +long paths in $G_{large}$, and it would recognize that no path can be
1.937 +extended to $G'_{small}$.
1.938 \newline
1.939 -However, had it started by the matching of $G_{small}$, it would not have matched any nodes of the path.
1.940 +However, had it started by the matching of $G_{small}$, it would not
1.941 +have matched any nodes of the path.
1.942 \end{example}
1.943
1.944 -These examples may look artificial, but the same problems also appear in real-world examples, even though in a less obvious way.
1.945 +These examples may look artificial, but the same problems also appear
1.946 +in real-world examples, even though in a less obvious way.
1.947
1.948 \subsection{Total ordering}
1.949 -Instead of the total ordering relation, the matching order will be searched directly.
1.950 +Instead of the total ordering relation, the matching order will be
1.951 +searched directly.
1.952 \begin{notation}
1.953 -Let \textbf{F$_\mathcal{M}$(l)}$:=|\{v\in V_{large} : l=lab(v)\}|-|\{u\in V_{small}\backslash \mathcal{M} : l=lab(u)\}|$ , where $l$ is a label and $\mathcal{M}\subseteq V_{small}$.
1.954 +Let \textbf{F$_\mathcal{M}$(l)}$:=|\{v\in V_{large} :
1.955 +l=lab(v)\}|-|\{u\in V_{small}\backslash \mathcal{M} : l=lab(u)\}|$ ,
1.956 +where $l$ is a label and $\mathcal{M}\subseteq V_{small}$.
1.957 \end{notation}
1.958
1.959 \begin{definition}Let $\mathbf{arg\ max}_{f}(S) :=\{u : u\in S \wedge f(u)=max_{v\in S}\{f(v)\}\}$ and $\mathbf{arg\ min}_{f}(S) := arg\ max_{-f}(S)$, where $S$ is a finite set and $f:S\longrightarrow \mathbb{R}$.
1.960 \end{definition}
1.961
1.962 \begin{algorithm}
1.963 -\algtext*{EndIf}%ne nyomtasson end if-et
1.964 -\algtext*{EndFor}%ne nyomtasson ..
1.965 -\algtext*{EndProcedure}%ne nyomtasson ..
1.966 +\algtext*{EndIf}%ne nyomtasson end if-et \algtext*{EndFor}%ne
1.967 +nyomtasson .. \algtext*{EndProcedure}%ne nyomtasson ..
1.968 \algtext*{EndWhile}
1.969 \caption{\hspace{0.5cm}$The\ method\ of\ VF2++\ for\ determining\ the\ node\ order$}\label{alg:VF2PPPseu}
1.970 \begin{algorithmic}[1]
1.971 -\Procedure{VF2++order}{}
1.972 - \State $\mathcal{M}$ := $\emptyset$ \Comment{matching order}
1.973 - \While{$V_{small}\backslash \mathcal{M} \neq\emptyset$}
1.974 - \State $r\in$ arg max$_{deg}$ (arg min$_{F_\mathcal{M}\circ lab}(V_{small}\backslash \mathcal{M})$)\label{alg:findMin}
1.975 - \State Compute $T$, a BFS tree with root node $r$.
1.976 - \For{$d=0,1,...,depth(T)$}
1.977 - \State $V_d$:=nodes of the $d$-th level
1.978 - \State Process $V_d$ \Comment{See Algorithm \ref{alg:VF2PPProcess1}) and \ref{alg:VF2PPProcess2})}
1.979 - \EndFor
1.980 - \EndWhile
1.981 -\EndProcedure
1.982 +\Procedure{VF2++order}{} \State $\mathcal{M}$ := $\emptyset$
1.983 +\Comment{matching order} \While{$V_{small}\backslash \mathcal{M}
1.984 + \neq\emptyset$} \State $r\in$ arg max$_{deg}$ (arg
1.985 +min$_{F_\mathcal{M}\circ lab}(V_{small}\backslash
1.986 +\mathcal{M})$)\label{alg:findMin} \State Compute $T$, a BFS tree with
1.987 +root node $r$. \For{$d=0,1,...,depth(T)$} \State $V_d$:=nodes of the
1.988 +$d$-th level \State Process $V_d$ \Comment{See Algorithm
1.989 + \ref{alg:VF2PPProcess1}) and \ref{alg:VF2PPProcess2})} \EndFor
1.990 +\EndWhile \EndProcedure
1.991 \end{algorithmic}
1.992 \end{algorithm}
1.993
1.994 \begin{algorithm}
1.995 -\algtext*{EndIf}%ne nyomtasson end if-et
1.996 -\algtext*{EndFor}%ne nyomtasson ..
1.997 -\algtext*{EndProcedure}%ne nyomtasson ..
1.998 +\algtext*{EndIf}%ne nyomtasson end if-et \algtext*{EndFor}%ne
1.999 +nyomtasson .. \algtext*{EndProcedure}%ne nyomtasson ..
1.1000 \algtext*{EndWhile}
1.1001 \caption{\hspace{.5cm}$A\ method\ for\ processing\ a\ level\ of\ the\ BFS\ tree$}\label{alg:VF2PPProcess1}
1.1002 \begin{algorithmic}[1]
1.1003 -\Procedure{VF2++ProcessLevel1}{$V_{d}$}
1.1004 - \While{$V_d\neq\emptyset$}
1.1005 - \State $m\in$ arg min$_{F_\mathcal{M}\circ\ lab}($ arg max$_{deg}($arg max$_{Conn_{\mathcal{M}}}(V_{d})))$
1.1006 - \State $V_d:=V_d\backslash m$
1.1007 - \State Append node $m$ to the end of $\mathcal{M}$
1.1008 - \State Refresh $F_\mathcal{M}$
1.1009 - \EndWhile
1.1010 -\EndProcedure
1.1011 +\Procedure{VF2++ProcessLevel1}{$V_{d}$} \While{$V_d\neq\emptyset$}
1.1012 +\State $m\in$ arg min$_{F_\mathcal{M}\circ\ lab}($ arg max$_{deg}($arg
1.1013 +max$_{Conn_{\mathcal{M}}}(V_{d})))$ \State $V_d:=V_d\backslash m$
1.1014 +\State Append node $m$ to the end of $\mathcal{M}$ \State Refresh
1.1015 +$F_\mathcal{M}$ \EndWhile \EndProcedure
1.1016 \end{algorithmic}
1.1017 \end{algorithm}
1.1018
1.1019 \begin{algorithm}
1.1020 -\algtext*{EndIf}%ne nyomtasson end if-et
1.1021 -\algtext*{EndFor}%ne nyomtasson ..
1.1022 -\algtext*{EndProcedure}%ne nyomtasson ..
1.1023 +\algtext*{EndIf}%ne nyomtasson end if-et \algtext*{EndFor}%ne
1.1024 +nyomtasson .. \algtext*{EndProcedure}%ne nyomtasson ..
1.1025 \algtext*{EndWhile}
1.1026 \caption{\hspace{0.5cm}$Another\ method\ for\ processing\ a\ level\ of\ the\ BFS\ tree$}\label{alg:VF2PPProcess2}
1.1027 \begin{algorithmic}[1]
1.1028 -\Procedure{VF2++ProcessLevel2}{$V_{d}$}
1.1029 - \State Sort $V_d$ in descending lex. order by $(Conn_{\mathcal{M}},deg,-F_\mathcal{M})$
1.1030 - \State Append the sorted $V_d$ to the end of $\mathcal{M}$
1.1031 - \State Refresh $F_\mathcal{M}$
1.1032 -\EndProcedure
1.1033 +\Procedure{VF2++ProcessLevel2}{$V_{d}$} \State Sort $V_d$ in
1.1034 +descending lex. order by $(Conn_{\mathcal{M}},deg,-F_\mathcal{M})$
1.1035 +\State Append the sorted $V_d$ to the end of $\mathcal{M}$ \State
1.1036 +Refresh $F_\mathcal{M}$ \EndProcedure
1.1037 \end{algorithmic}
1.1038 \end{algorithm}
1.1039 -\textbf{Algorithm~\ref{alg:VF2PPPseu})} is a high level description of the matching order procedure of VF2++. It computes a BFS tree for each component in ascending order of their rarest $lab$ and largest $deg$, whose root vertex is the component's minimal node. \textbf{Algorithm \ref{alg:VF2PPProcess1})} and \textbf{\ref{alg:VF2PPProcess2})} are two different methods to process a level of the BFS tree.
1.1040 +\textbf{Algorithm~\ref{alg:VF2PPPseu})} is a high level description of
1.1041 +the matching order procedure of VF2++. It computes a BFS tree for each
1.1042 +component in ascending order of their rarest $lab$ and largest $deg$,
1.1043 +whose root vertex is the component's minimal node. \textbf{Algorithm
1.1044 + \ref{alg:VF2PPProcess1})} and \textbf{\ref{alg:VF2PPProcess2})} are
1.1045 +two different methods to process a level of the BFS tree.
1.1046
1.1047 -After sorting the nodes of the current level in descending lexicographic order by $(Conn_{\mathcal{M}},deg,-F_\mathcal{M})$, \textbf{Algorithm \ref{alg:VF2PPProcess2})} appends them simultaneously to the matching order $\mathcal{M}$ and refreshes $F_\mathcal{M}$ just once, whereas \textbf{Algorithm \ref{alg:VF2PPProcess1})} appends the nodes separately to $\mathcal{M}$ and refreshes $F_\mathcal{M}$ immediately, so it provides up-to-date label information and may result in a more efficient matching order.
1.1048 +After sorting the nodes of the current level in descending
1.1049 +lexicographic order by $(Conn_{\mathcal{M}},deg,-F_\mathcal{M})$,
1.1050 +\textbf{Algorithm \ref{alg:VF2PPProcess2})} appends them
1.1051 +simultaneously to the matching order $\mathcal{M}$ and refreshes
1.1052 +$F_\mathcal{M}$ just once, whereas \textbf{Algorithm
1.1053 + \ref{alg:VF2PPProcess1})} appends the nodes separately to
1.1054 +$\mathcal{M}$ and refreshes $F_\mathcal{M}$ immediately, so it
1.1055 +provides up-to-date label information and may result in a more
1.1056 +efficient matching order.
1.1057
1.1058 -\textbf{Claim~\ref{claim:MOclaim})} shows that \textbf{Algorithm \ref{alg:VF2PPPseu})} provides a matching order.
1.1059 +\textbf{Claim~\ref{claim:MOclaim})} shows that \textbf{Algorithm
1.1060 + \ref{alg:VF2PPPseu})} provides a matching order.
1.1061
1.1062
1.1063 \subsection{Cutting rules}
1.1064 \label{VF2PPCuttingRules}
1.1065 -This section presents the cutting rules of VF2++, which are improved by using extra information coming from the node labels.
1.1066 +This section presents the cutting rules of VF2++, which are improved
1.1067 +by using extra information coming from the node labels.
1.1068 \begin{notation}
1.1069 -Let $\mathbf{\Gamma_{small}^{l}(u)}:=\{\tilde{u} : lab(\tilde{u})=l \wedge \tilde{u}\in \Gamma_{small} (u)\}$ and $\mathbf{\Gamma_{large}^{l}(v)}:=\{\tilde{v} : lab(\tilde{v})=l \wedge \tilde{v}\in \Gamma_{large} (v)\}$, where $u\in V_{small}$, $v\in V_{large}$ and $l$ is a label.
1.1070 +Let $\mathbf{\Gamma_{small}^{l}(u)}:=\{\tilde{u} : lab(\tilde{u})=l
1.1071 +\wedge \tilde{u}\in \Gamma_{small} (u)\}$ and
1.1072 +$\mathbf{\Gamma_{large}^{l}(v)}:=\{\tilde{v} : lab(\tilde{v})=l \wedge
1.1073 +\tilde{v}\in \Gamma_{large} (v)\}$, where $u\in V_{small}$, $v\in
1.1074 +V_{large}$ and $l$ is a label.
1.1075 \end{notation}
1.1076
1.1077 \subsubsection{Induced subgraph isomorphism}
1.1078 @@ -708,12 +1023,30 @@
1.1079 \[LabCut_{IND}((u,v),M(s))\!:=\!\!\!\!\!\bigvee_{l\ is\ label}\!\!\!\!\!\!\!|\Gamma_{large}^{l} (v) \cap T_{large}(s)|\!<\!|\Gamma_{small}^{l}(u)\cap T_{small}(s)|\ \vee\]\[\bigvee_{l\ is\ label} \newline |\Gamma_{large}^{l}(v)\cap \tilde{T}_{large}(s)| < |\Gamma_{small}^{l}(u)\cap \tilde{T}_{small}(s)|\] is a cutting function by IND.
1.1080 \end{claim}
1.1081 \begin{proof}
1.1082 -It has to be shown, that $LabCut_{IND}((u,v),M(s))=true\Rightarrow$ the mapping can not be extended to a whole mapping.\\
1.1083 -$LabCut_{IND}((u,v),M(s))=true,$ iff the following holds. $\\\exists l: |\Gamma_{large}^{l} (v)\ \cap\ T_{large}(s)| < |\Gamma_{small}^{l} (u)\ \cap\ T_{small}(s)| \vee |\Gamma_{large}^{l}(v)\cap \tilde{T}_{large}(s)| < |\Gamma_{small}^{l}(u)\cap \tilde{T}_{small}(s)|$.
1.1084 +It has to be shown, that $LabCut_{IND}((u,v),M(s))=true\Rightarrow$
1.1085 +the mapping can not be extended to a whole
1.1086 +mapping.\\ $LabCut_{IND}((u,v),M(s))=true,$ iff the following
1.1087 +holds. $\\\exists l: |\Gamma_{large}^{l} (v)\ \cap\ T_{large}(s)| <
1.1088 +|\Gamma_{small}^{l} (u)\ \cap\ T_{small}(s)| \vee
1.1089 +|\Gamma_{large}^{l}(v)\cap \tilde{T}_{large}(s)| <
1.1090 +|\Gamma_{small}^{l}(u)\cap \tilde{T}_{small}(s)|$.
1.1091
1.1092 -Suppose that $|\Gamma_{large}^{l} (v)\ \cap\ T_{large}(s)| < |\Gamma_{small}^{l} (u)\ \cap\ T_{small}(s)|$. Each node of $\Gamma_{small}^{l} (u)\ \cap\ T_{small}(s)$ has to be matched to a node in $\Gamma_{large}^{l} (v)\ \cap\ T_{large}(s)$, so $\Gamma_{large}^{l} (v)\ \cap\ T_{large}(s)$ can not be smaller than $\Gamma_{small}^{l} (u)\ \cap\ T_{small}(s)$. That is why $M(s)$ can not be extended to a whole mapping.
1.1093 +Suppose that $|\Gamma_{large}^{l} (v)\ \cap\ T_{large}(s)| <
1.1094 +|\Gamma_{small}^{l} (u)\ \cap\ T_{small}(s)|$. Each node of
1.1095 +$\Gamma_{small}^{l} (u)\ \cap\ T_{small}(s)$ has to be matched to a
1.1096 +node in $\Gamma_{large}^{l} (v)\ \cap\ T_{large}(s)$, so
1.1097 +$\Gamma_{large}^{l} (v)\ \cap\ T_{large}(s)$ can not be smaller than
1.1098 +$\Gamma_{small}^{l} (u)\ \cap\ T_{small}(s)$. That is why $M(s)$ can
1.1099 +not be extended to a whole mapping.
1.1100
1.1101 -Otherwise $|\Gamma_{large}^{l}(v)\cap \tilde{T}_{large}(s)| < |\Gamma_{small}^{l}(u)\cap \tilde{T}_{small}(s)|$ has to be true. Similarly, each node of $\Gamma_{large}^{l}(v)\cap \tilde{T}_{large}(s)$ has to be matched to a node in $\Gamma_{small}^{l}(u)\cap \tilde{T}_{small}(s)$, i.e. $\Gamma_{large}^{l}(v)\cap \tilde{T}_{large}(s)$ can not be smaller than $\Gamma_{small}^{l}(u)\cap \tilde{T}_{small}(s)$, if $M(s)$ is extendible.
1.1102 +Otherwise $|\Gamma_{large}^{l}(v)\cap \tilde{T}_{large}(s)| <
1.1103 +|\Gamma_{small}^{l}(u)\cap \tilde{T}_{small}(s)|$ has to be
1.1104 +true. Similarly, each node of $\Gamma_{large}^{l}(v)\cap
1.1105 +\tilde{T}_{large}(s)$ has to be matched to a node in
1.1106 +$\Gamma_{small}^{l}(u)\cap \tilde{T}_{small}(s)$,
1.1107 +i.e. $\Gamma_{large}^{l}(v)\cap \tilde{T}_{large}(s)$ can not be
1.1108 +smaller than $\Gamma_{small}^{l}(u)\cap \tilde{T}_{small}(s)$, if
1.1109 +$M(s)$ is extendible.
1.1110 \end{proof}
1.1111 The following claims can be proven similarly.
1.1112 \subsubsection{Graph isomorphism}
1.1113 @@ -729,238 +1062,387 @@
1.1114
1.1115
1.1116 \subsection{Implementation details}
1.1117 -This section provides a detailed summary of an efficient implementation of VF2++.
1.1118 +This section provides a detailed summary of an efficient
1.1119 +implementation of VF2++.
1.1120 \subsubsection{Storing a mapping}
1.1121 -After fixing an arbitrary node order ($u_0, u_1, .., u_{|G_{small}|-1}$) of $G_{small}$, an array $M$ is usable to store the current mapping in the following way.
1.1122 +After fixing an arbitrary node order ($u_0, u_1, ..,
1.1123 +u_{|G_{small}|-1}$) of $G_{small}$, an array $M$ is usable to store
1.1124 +the current mapping in the following way.
1.1125 \[
1.1126 - M[i] =
1.1127 + M[i] =
1.1128 \begin{cases}
1.1129 - v & if\ (u_i,v)\ is\ in\ the\ mapping\\
1.1130 - INVALID & if\ no\ node\ has\ been\ mapped\ to\ u_i.
1.1131 + v & if\ (u_i,v)\ is\ in\ the\ mapping\\ INVALID &
1.1132 + if\ no\ node\ has\ been\ mapped\ to\ u_i.
1.1133 \end{cases}
1.1134 \]
1.1135 -Where $i\in\{0,1, ..,|G_{small}|-1\}$, $v\in V_{large}$ and $INVALID$ means "no node".
1.1136 +Where $i\in\{0,1, ..,|G_{small}|-1\}$, $v\in V_{large}$ and $INVALID$
1.1137 +means "no node".
1.1138 \subsubsection{Avoiding the recurrence}
1.1139 -Exploring the state space was described in a recursive fashion using sets (see \textbf{Algorithm~\ref{alg:VF2Pseu})}), which makes the algorithm easy to understand but does not show directly an efficient way of implementation. The following approach avoiding recursion and using lookup tables instead of sets is not only fast but has linear space complexity as well.
1.1140 +Exploring the state space was described in a recursive fashion using
1.1141 +sets (see \textbf{Algorithm~\ref{alg:VF2Pseu})}), which makes the
1.1142 +algorithm easy to understand but does not show directly an efficient
1.1143 +way of implementation. The following approach avoiding recursion and
1.1144 +using lookup tables instead of sets is not only fast but has linear
1.1145 +space complexity as well.
1.1146
1.1147 -The recursion of \textbf{Algorithm~\ref{alg:VF2Pseu})} can be realized as a while loop, which has a loop counter $depth$ denoting the all-time depth of the recursion.
1.1148 -Fixing a matching order, let $M$ denote the array storing the all-time mapping.
1.1149 -The initial state is associated with the empty mapping, which means that $\forall i: M[i]=INVALID$ and $depth=0$.
1.1150 -In case of a recursive call, $depth$ has to be incremented, while in case of a return, it has to be decremented.
1.1151 -Based on \textbf{Claim~\ref{claim:claimCoverFromLeft})}, $M$ is $INVALID$ from index $depth$+1 and not $INVALID$ before $depth$, i.e. $\forall i: i < depth \Rightarrow M[i]\neq INVALID$ and $\forall i: i > depth \Rightarrow M[i]= INVALID$. $M[depth]$ changes while the state is being processed, but the property is held before both stepping back to a predecessor state and exploring a successor state.
1.1152 +The recursion of \textbf{Algorithm~\ref{alg:VF2Pseu})} can be realized
1.1153 +as a while loop, which has a loop counter $depth$ denoting the
1.1154 +all-time depth of the recursion. Fixing a matching order, let $M$
1.1155 +denote the array storing the all-time mapping. The initial state is
1.1156 +associated with the empty mapping, which means that $\forall i:
1.1157 +M[i]=INVALID$ and $depth=0$. In case of a recursive call, $depth$ has
1.1158 +to be incremented, while in case of a return, it has to be
1.1159 +decremented. Based on \textbf{Claim~\ref{claim:claimCoverFromLeft})},
1.1160 +$M$ is $INVALID$ from index $depth$+1 and not $INVALID$ before
1.1161 +$depth$, i.e. $\forall i: i < depth \Rightarrow M[i]\neq INVALID$ and
1.1162 +$\forall i: i > depth \Rightarrow M[i]= INVALID$. $M[depth]$ changes
1.1163 +while the state is being processed, but the property is held before
1.1164 +both stepping back to a predecessor state and exploring a successor
1.1165 +state.
1.1166
1.1167 -The necessary part of the candidate set is easily maintainable or computable by following \textbf{Section~\ref{candidateComputingVF2})}. A much faster method has been designed for biological- and sparse graphs, see the next section for details.
1.1168 +The necessary part of the candidate set is easily maintainable or
1.1169 +computable by following
1.1170 +\textbf{Section~\ref{candidateComputingVF2})}. A much faster method
1.1171 +has been designed for biological- and sparse graphs, see the next
1.1172 +section for details.
1.1173
1.1174 \subsubsection{Calculating the candidates for a node}
1.1175 -Being aware of \textbf{Claim~\ref{claim:claimCoverFromLeft})}, the task is not to maintain the candidate set, but to generate the candidate nodes in $G_{large}$ for a given node $u\in V_{small}$.
1.1176 -In case of an expanding problem type and $M$ mapping, if a node $v\in V_{large}$ is a potential pair of $u\in V_{small}$, then $\forall u'\in V_{small} : (u,u')\in E_{small}\ and\ u'\ is\ covered\ by\ M\ \Rightarrow (v,Pair(M,u'))\in E_{large}$. That is, each covered neighbour of $u$ has to be mapped to a covered neighbour of $v$.
1.1177 +Being aware of \textbf{Claim~\ref{claim:claimCoverFromLeft})}, the
1.1178 +task is not to maintain the candidate set, but to generate the
1.1179 +candidate nodes in $G_{large}$ for a given node $u\in V_{small}$. In
1.1180 +case of an expanding problem type and $M$ mapping, if a node $v\in
1.1181 +V_{large}$ is a potential pair of $u\in V_{small}$, then $\forall
1.1182 +u'\in V_{small} : (u,u')\in
1.1183 +E_{small}\ and\ u'\ is\ covered\ by\ M\ \Rightarrow (v,Pair(M,u'))\in
1.1184 +E_{large}$. That is, each covered neighbour of $u$ has to be mapped to
1.1185 +a covered neighbour of $v$.
1.1186
1.1187 -Having said that, an algorithm running in $\Theta(deg)$ time is describable if there exists a covered node in the component containing $u$. In this case choose a covered neighbour $u'$ of $u$ arbitrarily --- such a node exists based on \textbf{Claim~\ref{claim:MOclaim})}. With all the candidates of $u$ being among the uncovered neighbours of $Pair(M,u')$, there are solely $deg(Pair(M,u'))$ nodes to check.
1.1188 +Having said that, an algorithm running in $\Theta(deg)$ time is
1.1189 +describable if there exists a covered node in the component containing
1.1190 +$u$. In this case choose a covered neighbour $u'$ of $u$ arbitrarily
1.1191 +--- such a node exists based on
1.1192 +\textbf{Claim~\ref{claim:MOclaim})}. With all the candidates of $u$
1.1193 +being among the uncovered neighbours of $Pair(M,u')$, there are solely
1.1194 +$deg(Pair(M,u'))$ nodes to check.
1.1195
1.1196 -An easy trick is to choose an $u'$, for which $|\{uncovered\ neighbours\ $ $of\ Pair(M,u')\}|$ is the smallest possible.
1.1197 +An easy trick is to choose an $u'$, for which
1.1198 +$|\{uncovered\ neighbours\ $ $of\ Pair(M,u')\}|$ is the smallest
1.1199 +possible.
1.1200
1.1201 -Note that if $u$ is the first node of its component, then all the uncovered nodes of $G_{large}$ are candidates, so giving a sublinear method is impossible.
1.1202 +Note that if $u$ is the first node of its component, then all the
1.1203 +uncovered nodes of $G_{large}$ are candidates, so giving a sublinear
1.1204 +method is impossible.
1.1205
1.1206
1.1207 \subsubsection{Determining the node order}
1.1208 -This section describes how the node order preprocessing method of VF2++ can efficiently be implemented.
1.1209 +This section describes how the node order preprocessing method of
1.1210 +VF2++ can efficiently be implemented.
1.1211
1.1212 -For using lookup tables, the node labels are associated with the numbers $\{0,1,..,|K|-1\}$, where $K$ is the set of the labels. It enables $F_\mathcal{M}$ to be stored in an array, for which $F_\mathcal{M}[i]=F_\mathcal{M}(i)$ where $i=0,1,..,|K|-1$. At first, $\mathcal{M}=\emptyset$, so $F_\mathcal{M}[i]$ is the number of nodes in $V_{small}$ having label i, which is easy to compute in $\Theta(|V_{small}|)$ steps.
1.1213 +For using lookup tables, the node labels are associated with the
1.1214 +numbers $\{0,1,..,|K|-1\}$, where $K$ is the set of the labels. It
1.1215 +enables $F_\mathcal{M}$ to be stored in an array, for which
1.1216 +$F_\mathcal{M}[i]=F_\mathcal{M}(i)$ where $i=0,1,..,|K|-1$. At first,
1.1217 +$\mathcal{M}=\emptyset$, so $F_\mathcal{M}[i]$ is the number of nodes
1.1218 +in $V_{small}$ having label i, which is easy to compute in
1.1219 +$\Theta(|V_{small}|)$ steps.
1.1220
1.1221 -$\mathcal{M}\subseteq V_{small}$ can be represented as an array of size $|V_{small}|$.
1.1222 +$\mathcal{M}\subseteq V_{small}$ can be represented as an array of
1.1223 +size $|V_{small}|$.
1.1224
1.1225 -The BFS tree is computed by using a FIFO data structure which is usually implemented as a linked list, but one can avoid it by using the array $\mathcal{M}$ itself. $\mathcal{M}$ contains all the nodes seen before, a pointer shows where the first node of the FIFO is, and another one shows where the next explored node has to be inserted. So the nodes of each level of the BFS tree can be processed by \textbf{Algorithm \ref{alg:VF2PPProcess1})} and \textbf{\ref{alg:VF2PPProcess2})} in place by swapping nodes.
1.1226 +The BFS tree is computed by using a FIFO data structure which is
1.1227 +usually implemented as a linked list, but one can avoid it by using
1.1228 +the array $\mathcal{M}$ itself. $\mathcal{M}$ contains all the nodes
1.1229 +seen before, a pointer shows where the first node of the FIFO is, and
1.1230 +another one shows where the next explored node has to be inserted. So
1.1231 +the nodes of each level of the BFS tree can be processed by
1.1232 +\textbf{Algorithm \ref{alg:VF2PPProcess1})} and
1.1233 +\textbf{\ref{alg:VF2PPProcess2})} in place by swapping nodes.
1.1234
1.1235 -After a node $u$ gets to the next place of the node order, $F_\mathcal{M}[lab[u]]$ has to be decreased by one, because there is one less covered node in $V_{large}$ with label $lab(u)$, that is why min selection sort is preferred which gives the elements from left to right in descending order, see \textbf{Algorithm \ref{alg:VF2PPProcess1})}.
1.1236 +After a node $u$ gets to the next place of the node order,
1.1237 +$F_\mathcal{M}[lab[u]]$ has to be decreased by one, because there is
1.1238 +one less covered node in $V_{large}$ with label $lab(u)$, that is why
1.1239 +min selection sort is preferred which gives the elements from left to
1.1240 +right in descending order, see \textbf{Algorithm
1.1241 + \ref{alg:VF2PPProcess1})}.
1.1242
1.1243 -Note that using a $\Theta(n^2)$ sort absolutely does not slow down the procedure on biological (and on sparse) graphs, since they have few nodes on a level. If a level had a large number of nodes, \textbf{Algorithm \ref{alg:VF2PPProcess2})} would seem to be a better choice with a $\Theta(nlog(n))$ or Bucket sort, but it may reduce the efficiency of the matching procedure, since $F_\mathcal{M}(i)$ can not be immediately refreshed, so it is unable to provide up-to-date label information.
1.1244 +Note that using a $\Theta(n^2)$ sort absolutely does not slow down the
1.1245 +procedure on biological (and on sparse) graphs, since they have few
1.1246 +nodes on a level. If a level had a large number of nodes,
1.1247 +\textbf{Algorithm \ref{alg:VF2PPProcess2})} would seem to be a better
1.1248 +choice with a $\Theta(nlog(n))$ or Bucket sort, but it may reduce the
1.1249 +efficiency of the matching procedure, since $F_\mathcal{M}(i)$ can not
1.1250 +be immediately refreshed, so it is unable to provide up-to-date label
1.1251 +information.
1.1252
1.1253 -Note that the \textit{while loop} of \textbf{Algorithm \ref{alg:VF2PPPseu})} takes one iteration per graph component and the graphs in biology are mostly connected.
1.1254 +Note that the \textit{while loop} of \textbf{Algorithm
1.1255 + \ref{alg:VF2PPPseu})} takes one iteration per graph component and
1.1256 +the graphs in biology are mostly connected.
1.1257 \subsubsection{Cutting rules}
1.1258 -In \textbf{Section \ref{VF2PPCuttingRules})}, the cutting rules were described using the sets $T_{small}$, $T_{large}$, $\tilde T_{small}$ and $\tilde T_{large}$, which are dependent on the all-time mapping (i.e. on the all-time state). The aim is to check the labeled cutting rules of VF2++ in $\Theta(deg)$ time.
1.1259 +In \textbf{Section \ref{VF2PPCuttingRules})}, the cutting rules were
1.1260 +described using the sets $T_{small}$, $T_{large}$, $\tilde T_{small}$
1.1261 +and $\tilde T_{large}$, which are dependent on the all-time mapping
1.1262 +(i.e. on the all-time state). The aim is to check the labeled cutting
1.1263 +rules of VF2++ in $\Theta(deg)$ time.
1.1264
1.1265 -Firstly, suppose that these four sets are given in such a way, that checking whether a node is in a certain set takes constant time, e.g. they are given by their 0-1 characteristic vectors. Let $L$ be an initially zero integer lookup table of size $|K|$. After incrementing $L[lab(u')]$ for all $u'\in \Gamma_{small}(u) \cap T_{small}(s)$ and decrementing $L[lab(v')]$ for all $v'\in\Gamma_{large} (v) \cap T_{large}(s)$, the first part of the cutting rules is checkable in $\Theta(deg)$ time by considering the proper signs of $L$. Setting $L$ to zero takes $\Theta(deg)$ time again, which makes it possible to use the same table through the whole algorithm.
1.1266 -The second part of the cutting rules can be verified using the same method with $\tilde T_{small}$ and $\tilde T_{large}$ instead of $T_{small}$ and $T_{large}$. Thus, the overall complexity is $\Theta(deg)$.
1.1267 +Firstly, suppose that these four sets are given in such a way, that
1.1268 +checking whether a node is in a certain set takes constant time,
1.1269 +e.g. they are given by their 0-1 characteristic vectors. Let $L$ be an
1.1270 +initially zero integer lookup table of size $|K|$. After incrementing
1.1271 +$L[lab(u')]$ for all $u'\in \Gamma_{small}(u) \cap T_{small}(s)$ and
1.1272 +decrementing $L[lab(v')]$ for all $v'\in\Gamma_{large} (v) \cap
1.1273 +T_{large}(s)$, the first part of the cutting rules is checkable in
1.1274 +$\Theta(deg)$ time by considering the proper signs of $L$. Setting $L$
1.1275 +to zero takes $\Theta(deg)$ time again, which makes it possible to use
1.1276 +the same table through the whole algorithm. The second part of the
1.1277 +cutting rules can be verified using the same method with $\tilde
1.1278 +T_{small}$ and $\tilde T_{large}$ instead of $T_{small}$ and
1.1279 +$T_{large}$. Thus, the overall complexity is $\Theta(deg)$.
1.1280
1.1281 -An other integer lookup table storing the number of covered neighbours of each node in $G_{large}$ gives all the information about the sets $T_{large}$ and $\tilde T_{large}$, which is maintainable in $\Theta(deg)$ time when a pair is added or substracted by incrementing or decrementing the proper indices. A further improvement is that the values of $L[lab(u')]$ in case of checking $u$ is dependent only on $u$, i.e. on the size of the mapping, so for each $u\in V_{small}$ an array of pairs (label, number of such labels) can be stored to skip the maintaining operations. Note that these arrays are at most of size $deg$. Skipping this trick, the number of covered neighbours has to be stored for each node of $G_{small}$ as well to get the sets $T_{small}$ and $\tilde T_{small}$.
1.1282 +An other integer lookup table storing the number of covered neighbours
1.1283 +of each node in $G_{large}$ gives all the information about the sets
1.1284 +$T_{large}$ and $\tilde T_{large}$, which is maintainable in
1.1285 +$\Theta(deg)$ time when a pair is added or substracted by incrementing
1.1286 +or decrementing the proper indices. A further improvement is that the
1.1287 +values of $L[lab(u')]$ in case of checking $u$ is dependent only on
1.1288 +$u$, i.e. on the size of the mapping, so for each $u\in V_{small}$ an
1.1289 +array of pairs (label, number of such labels) can be stored to skip
1.1290 +the maintaining operations. Note that these arrays are at most of size
1.1291 +$deg$. Skipping this trick, the number of covered neighbours has to be
1.1292 +stored for each node of $G_{small}$ as well to get the sets
1.1293 +$T_{small}$ and $\tilde T_{small}$.
1.1294
1.1295 -Using similar tricks, the consistency function can be evaluated in $\Theta(deg)$ steps, as well.
1.1296 +Using similar tricks, the consistency function can be evaluated in
1.1297 +$\Theta(deg)$ steps, as well.
1.1298
1.1299 \section{The VF2 Plus Algorithm}
1.1300 -The VF2 Plus algorithm is a recently improved version of VF2. It was compared with the state of the art algorithms in \cite{VF2Plus} and has proven itself to be competitive with RI, the best algorithm on biological graphs.
1.1301 -\\
1.1302 -A short summary of VF2 Plus follows, which uses the notation and the conventions of the original paper.
1.1303 +The VF2 Plus algorithm is a recently improved version of VF2. It was
1.1304 +compared with the state of the art algorithms in \cite{VF2Plus} and
1.1305 +has proven itself to be competitive with RI, the best algorithm on
1.1306 +biological graphs. \\ A short summary of VF2 Plus follows, which uses
1.1307 +the notation and the conventions of the original paper.
1.1308
1.1309 \subsection{Ordering procedure}
1.1310 -VF2 Plus uses a sorting procedure that prefers nodes in $V_{small}$ with the lowest probability to find a pair in $V_{small}$ and the highest number of connections with the nodes already sorted by the algorithm.
1.1311 +VF2 Plus uses a sorting procedure that prefers nodes in $V_{small}$
1.1312 +with the lowest probability to find a pair in $V_{small}$ and the
1.1313 +highest number of connections with the nodes already sorted by the
1.1314 +algorithm.
1.1315
1.1316 \begin{definition}
1.1317 -$(u,v)$ is a \textbf{feasible pair}, if $lab(u)=lab(v)$ and $deg(u)\leq deg(v)$, where $u\in{V_{small}}$ and $ v\in{V_{large}}$.
1.1318 +$(u,v)$ is a \textbf{feasible pair}, if $lab(u)=lab(v)$ and
1.1319 + $deg(u)\leq deg(v)$, where $u\in{V_{small}}$ and $ v\in{V_{large}}$.
1.1320 \end{definition}
1.1321 -$P_{lab}(L):=$ a priori probability to find a node with label $L$ in $V_{large}$
1.1322 +$P_{lab}(L):=$ a priori probability to find a node with label $L$ in
1.1323 +$V_{large}$
1.1324 \newline
1.1325 -$P_{deg}(d):=$ a priori probability to find a node with degree $d$ in $V_{large}$
1.1326 +$P_{deg}(d):=$ a priori probability to find a node with degree $d$ in
1.1327 +$V_{large}$
1.1328 \newline
1.1329 -$P(u):=P_{lab}(L)*\bigcup_{d'>d}P_{deg}(d')$\\
1.1330 -$M$ is the set of already sorted nodes, $T$ is the set of nodes candidate to be selected, and $degreeM$ of a node is the number of its neighbours in $M$.
1.1331 +$P(u):=P_{lab}(L)*\bigcup_{d'>d}P_{deg}(d')$\\ $M$ is the set of
1.1332 +already sorted nodes, $T$ is the set of nodes candidate to be
1.1333 +selected, and $degreeM$ of a node is the number of its neighbours in
1.1334 +$M$.
1.1335 \begin{algorithm}
1.1336 -\algtext*{EndIf}%ne nyomtasson end if-et
1.1337 -\algtext*{EndFor}%ne nyomtasson ..
1.1338 -\algtext*{EndProcedure}%ne nyomtasson ..
1.1339 +\algtext*{EndIf}%ne nyomtasson end if-et \algtext*{EndFor}%ne
1.1340 +nyomtasson .. \algtext*{EndProcedure}%ne nyomtasson ..
1.1341 \algtext*{EndWhile}
1.1342 \caption{}\label{alg:VF2PlusPseu}
1.1343 \begin{algorithmic}[1]
1.1344 -\Procedure{VF2 Plus order}{}
1.1345 - \State Select the node with the lowest $P$.
1.1346 - \If {more nodes share the same $P$}
1.1347 - \State select the one with maximum degree
1.1348 - \EndIf
1.1349 - \If {more nodes share the same $P$ and have the max degree}
1.1350 - \State select the first
1.1351 - \EndIf
1.1352 - \State Put the selected node in the set $M$. \label{alg:putIn}
1.1353 - \State Put all its unsorted neighbours in the set $T$.
1.1354 - \If {$M\neq V_{small}$}
1.1355 - \State From set $T$ select the node with maximum $degreeM$.
1.1356 - \If {more nodes have maximum $degreeM$}
1.1357 - \State Select the one with the lowest $P$
1.1358 - \EndIf
1.1359 - \If {more nodes have maximum $degreeM$ and $P$}
1.1360 - \State Select the first.
1.1361 - \EndIf
1.1362 - \State \textbf{goto \ref{alg:putIn}.}
1.1363 - \EndIf
1.1364 +\Procedure{VF2 Plus order}{} \State Select the node with the lowest
1.1365 +$P$. \If {more nodes share the same $P$} \State select the one with
1.1366 +maximum degree \EndIf \If {more nodes share the same $P$ and have the
1.1367 + max degree} \State select the first \EndIf \State Put the selected
1.1368 +node in the set $M$. \label{alg:putIn} \State Put all its unsorted
1.1369 +neighbours in the set $T$. \If {$M\neq V_{small}$} \State From set
1.1370 +$T$ select the node with maximum $degreeM$. \If {more nodes have
1.1371 + maximum $degreeM$} \State Select the one with the lowest $P$ \EndIf
1.1372 +\If {more nodes have maximum $degreeM$ and $P$} \State Select the
1.1373 +first. \EndIf \State \textbf{goto \ref{alg:putIn}.} \EndIf
1.1374 \EndProcedure
1.1375 \end{algorithmic}
1.1376 \end{algorithm}
1.1377
1.1378 -Using these notations, \textbf{Algorithm~\ref{alg:VF2PlusPseu})} provides the description of the sorting procedure.
1.1379 +Using these notations, \textbf{Algorithm~\ref{alg:VF2PlusPseu})}
1.1380 +provides the description of the sorting procedure.
1.1381
1.1382 -Note that $P(u)$ is not the exact probability of finding a consistent pair for $u$ by choosing a node of $V_{large}$ randomly, since $P_{lab}$ and $P_{deg}$ are not independent, though calculating the real probability would take quadratic time, which may be reduced by using fittingly lookup tables.
1.1383 +Note that $P(u)$ is not the exact probability of finding a consistent
1.1384 +pair for $u$ by choosing a node of $V_{large}$ randomly, since
1.1385 +$P_{lab}$ and $P_{deg}$ are not independent, though calculating the
1.1386 +real probability would take quadratic time, which may be reduced by
1.1387 +using fittingly lookup tables.
1.1388
1.1389 -\newpage
1.1390 \section{Experimental results}
1.1391 -This section compares the performance of VF2++ and VF2 Plus. Both algorithms have run faster with orders of magnitude than VF2, thus its inclusion was not reasonable.
1.1392 +This section compares the performance of VF2++ and VF2 Plus. Both
1.1393 +algorithms have run faster with orders of magnitude than VF2, thus its
1.1394 +inclusion was not reasonable.
1.1395 \subsection{Biological graphs}
1.1396 -The tests have been executed on a recent biological dataset created for the International Contest on Pattern Search in Biological Databases\cite{Content}, which has been constructed of Molecule, Protein and Contact Map graphs extracted from the Protein Data Bank\cite{ProteinDataBank}.
1.1397 +The tests have been executed on a recent biological dataset created
1.1398 +for the International Contest on Pattern Search in Biological
1.1399 +Databases\cite{Content}, which has been constructed of Molecule,
1.1400 +Protein and Contact Map graphs extracted from the Protein Data
1.1401 +Bank\cite{ProteinDataBank}.
1.1402
1.1403 -The molecule dataset contains small graphs with less than 100 nodes and an average degree of less than 3. The protein dataset contains graphs having 500-10 000 nodes and an average degree of 4, while the contact map dataset contains graphs with 150-800 nodes and an average degree of 20.
1.1404 -\\
1.1405 +The molecule dataset contains small graphs with less than 100 nodes
1.1406 +and an average degree of less than 3. The protein dataset contains
1.1407 +graphs having 500-10 000 nodes and an average degree of 4, while the
1.1408 +contact map dataset contains graphs with 150-800 nodes and an average
1.1409 +degree of 20. \\
1.1410
1.1411 -In the following, the induced subgraph isomorphism and the graph isomorphism will be examined.
1.1412 +In the following, the induced subgraph isomorphism and the graph
1.1413 +isomorphism will be examined.
1.1414
1.1415 \subsubsection{Induced subgraph isomorphism}
1.1416 -This dataset contains a set of graph pairs, and \textbf{all} the induced subgraph ismorphisms have to be found between them. \textbf{Figure \ref{fig:INDProt}), \ref{fig:INDContact}),} and \textbf{ \ref{fig:INDMolecule})} show the solution time of the problems in the problem set.
1.1417 +This dataset contains a set of graph pairs, and \textbf{all} the
1.1418 +induced subgraph ismorphisms have to be found between
1.1419 +them. \textbf{Figure \ref{fig:INDProt}), \ref{fig:INDContact}),} and
1.1420 +\textbf{ \ref{fig:INDMolecule})} show the solution time of the
1.1421 +problems in the problem set.
1.1422
1.1423 \begin{figure}[H]
1.1424 \begin{center}
1.1425 \begin{tikzpicture}
1.1426 \begin{axis}[title=Proteins IND,xlabel={target size},ylabel={time (ms)},legend entries={VF2 Plus,VF2++},grid
1.1427 - =major,mark size=1.2pt, legend style={at={(0,1)},anchor=north west},scaled x ticks = false,x tick label style={/pgf/number format/1000 sep = \thinspace}]
1.1428 - %\addplot+[only marks] table {proteinsOrig.txt};
1.1429 - \addplot[mark=*,mark size=1.2pt,color=blue] table {Orig/Proteins.256.txt};
1.1430 - \addplot[mark=triangle*,mark size=1.8pt,color=red] table {VF2PPLabel/Proteins.256.txt};
1.1431 + =major,mark size=1.2pt, legend style={at={(0,1)},anchor=north
1.1432 + west},scaled x ticks = false,x tick label style={/pgf/number
1.1433 + format/1000 sep = \thinspace}] %\addplot+[only marks] table
1.1434 + {proteinsOrig.txt}; \addplot[mark=*,mark size=1.2pt,color=blue]
1.1435 + table {Orig/Proteins.256.txt}; \addplot[mark=triangle*,mark
1.1436 + size=1.8pt,color=red] table {VF2PPLabel/Proteins.256.txt};
1.1437 \end{axis}
1.1438 \end{tikzpicture}
1.1439 \end{center}
1.1440 \vspace*{-0.8cm}
1.1441 -\caption{Both the algorithms have linear behaviour on protein graphs. VF2++ is more than 10 times faster than VF2 Plus.} \label{fig:INDProt}
1.1442 +\caption{Both the algorithms have linear behaviour on protein
1.1443 + graphs. VF2++ is more than 10 times faster than VF2
1.1444 + Plus.} \label{fig:INDProt}
1.1445 \end{figure}
1.1446
1.1447 \begin{figure}[H]
1.1448 \begin{center}
1.1449 \begin{tikzpicture}
1.1450 \begin{axis}[title=Contact Maps IND,xlabel={target size},ylabel={time (ms)},legend entries={VF2 Plus,VF2++},grid
1.1451 -=major,mark size=1.2pt, legend style={at={(0,1)},anchor=north west},scaled x ticks = false,x tick label style={/pgf/number format/1000 sep = \thinspace}]
1.1452 +=major,mark size=1.2pt, legend style={at={(0,1)},anchor=north
1.1453 + west},scaled x ticks = false,x tick label style={/pgf/number
1.1454 + format/1000 sep = \thinspace}]
1.1455 %\addplot+[only marks] table {proteinsOrig.txt};
1.1456 \addplot table {Orig/ContactMaps.128.txt};
1.1457 -\addplot[mark=triangle*,mark size=1.8pt,color=red] table {VF2PPLabel/ContactMaps.128.txt};
1.1458 +\addplot[mark=triangle*,mark size=1.8pt,color=red] table
1.1459 + {VF2PPLabel/ContactMaps.128.txt};
1.1460 \end{axis}
1.1461 \end{tikzpicture}
1.1462 \end{center}
1.1463 \vspace*{-0.8cm}
1.1464 -\caption{On Contact Maps, VF2++ runs in near constant time, while VF2 Plus has a near linear behaviour.} \label{fig:INDContact}
1.1465 +\caption{On Contact Maps, VF2++ runs in near constant time, while VF2
1.1466 + Plus has a near linear behaviour.} \label{fig:INDContact}
1.1467 \end{figure}
1.1468
1.1469 \begin{figure}[H]
1.1470 \begin{center}
1.1471 \begin{tikzpicture}
1.1472 \begin{axis}[title=Molecules IND,xlabel={target size},ylabel={time (ms)},legend entries={VF2 Plus,VF2++},grid
1.1473 -=major,mark size=1.2pt, legend style={at={(0,1)},anchor=north west},scaled x ticks = false,x tick label style={/pgf/number format/1000 sep = \thinspace}]
1.1474 +=major,mark size=1.2pt, legend style={at={(0,1)},anchor=north
1.1475 + west},scaled x ticks = false,x tick label style={/pgf/number
1.1476 + format/1000 sep = \thinspace}]
1.1477 %\addplot+[only marks] table {proteinsOrig.txt};
1.1478 -\addplot table {Orig/Molecules.32.txt};
1.1479 -\addplot[mark=triangle*,mark size=1.8pt,color=red] table {VF2PPLabel/Molecules.32.txt};
1.1480 +\addplot table {Orig/Molecules.32.txt}; \addplot[mark=triangle*,mark
1.1481 + size=1.8pt,color=red] table {VF2PPLabel/Molecules.32.txt};
1.1482 \end{axis}
1.1483 \end{tikzpicture}
1.1484 \end{center}
1.1485 \vspace*{-0.8cm}
1.1486 -\caption{In the case of Molecules, the algorithms seem to have a similar behaviour, but VF2++ is almost two times faster even on such small graphs.} \label{fig:INDMolecule}
1.1487 +\caption{In the case of Molecules, the algorithms seem to have a
1.1488 + similar behaviour, but VF2++ is almost two times faster even on such
1.1489 + small graphs.} \label{fig:INDMolecule}
1.1490 \end{figure}
1.1491
1.1492
1.1493 \subsubsection{Graph ismorphism}
1.1494 -In this experiment, the nodes of each graph in the database have been shuffled and an isomorphism between the shuffled and the original graph has been searched. For runtime results, see \textbf{Figure \ref{fig:ISOProt}), \ref{fig:ISOContact}),} and \textbf{\ref{fig:ISOMolecule})}.
1.1495 +In this experiment, the nodes of each graph in the database have been
1.1496 +shuffled and an isomorphism between the shuffled and the original
1.1497 +graph has been searched. For runtime results, see \textbf{Figure
1.1498 + \ref{fig:ISOProt}), \ref{fig:ISOContact}),} and
1.1499 +\textbf{\ref{fig:ISOMolecule})}.
1.1500 \begin{figure}[H]
1.1501 \begin{center}
1.1502 \begin{tikzpicture}
1.1503 \begin{axis}[title=Proteins ISO,xlabel={target size},ylabel={time (ms)},legend entries={VF2 Plus,VF2++},grid
1.1504 -=major,mark size=1.2pt, legend style={at={(0,1)},anchor=north west},scaled x ticks = false,x tick label style={/pgf/number format/1000 sep = \thinspace}]
1.1505 +=major,mark size=1.2pt, legend style={at={(0,1)},anchor=north
1.1506 + west},scaled x ticks = false,x tick label style={/pgf/number
1.1507 + format/1000 sep = \thinspace}]
1.1508 %\addplot+[only marks] table {proteinsOrig.txt};
1.1509 -\addplot table {Orig/proteinsIso.txt};
1.1510 -\addplot[mark=triangle*,mark size=1.8pt,color=red] table {VF2PPLabel/proteinsIso.txt};
1.1511 +\addplot table {Orig/proteinsIso.txt}; \addplot[mark=triangle*,mark
1.1512 + size=1.8pt,color=red] table {VF2PPLabel/proteinsIso.txt};
1.1513 \end{axis}
1.1514 \end{tikzpicture}
1.1515 \end{center}
1.1516 \vspace*{-0.8cm}
1.1517 -\caption{On protein graphs, VF2 Plus has a super linear time complexity, while VF2++ runs in near constant time. The difference is about two order of magnitude on large graphs.}\label{fig:ISOProt}
1.1518 +\caption{On protein graphs, VF2 Plus has a super linear time
1.1519 + complexity, while VF2++ runs in near constant time. The difference
1.1520 + is about two order of magnitude on large graphs.}\label{fig:ISOProt}
1.1521 \end{figure}
1.1522
1.1523 \begin{figure}[H]
1.1524 \begin{center}
1.1525 \begin{tikzpicture}
1.1526 \begin{axis}[title=Contact Maps ISO,xlabel={target size},ylabel={time (ms)},legend entries={VF2 Plus,VF2++},grid
1.1527 -=major,mark size=1.2pt, legend style={at={(0,1)},anchor=north west},scaled x ticks = false,x tick label style={/pgf/number format/1000 sep = \thinspace}]
1.1528 +=major,mark size=1.2pt, legend style={at={(0,1)},anchor=north
1.1529 + west},scaled x ticks = false,x tick label style={/pgf/number
1.1530 + format/1000 sep = \thinspace}]
1.1531 %\addplot+[only marks] table {proteinsOrig.txt};
1.1532 -\addplot table {Orig/contactMapsIso.txt};
1.1533 -\addplot[mark=triangle*,mark size=1.8pt,color=red] table {VF2PPLabel/contactMapsIso.txt};
1.1534 +\addplot table {Orig/contactMapsIso.txt}; \addplot[mark=triangle*,mark
1.1535 + size=1.8pt,color=red] table {VF2PPLabel/contactMapsIso.txt};
1.1536 \end{axis}
1.1537 \end{tikzpicture}
1.1538 \end{center}
1.1539 \vspace*{-0.8cm}
1.1540 -\caption{The results are closer to each other on Contact Maps, but VF2++ still performs consistently better.}\label{fig:ISOContact}
1.1541 +\caption{The results are closer to each other on Contact Maps, but
1.1542 + VF2++ still performs consistently better.}\label{fig:ISOContact}
1.1543 \end{figure}
1.1544
1.1545 \begin{figure}[H]
1.1546 \begin{center}
1.1547 \begin{tikzpicture}
1.1548 \begin{axis}[title=Molecules ISO,xlabel={target size},ylabel={time (ms)},legend entries={VF2 Plus,VF2++},grid
1.1549 -=major,mark size=1.2pt, legend style={at={(0,1)},anchor=north west},scaled x ticks = false,x tick label style={/pgf/number format/1000 sep = \thinspace}]
1.1550 +=major,mark size=1.2pt, legend style={at={(0,1)},anchor=north
1.1551 + west},scaled x ticks = false,x tick label style={/pgf/number
1.1552 + format/1000 sep = \thinspace}]
1.1553 %\addplot+[only marks] table {proteinsOrig.txt};
1.1554 -\addplot table {Orig/moleculesIso.txt};
1.1555 -\addplot[mark=triangle*,mark size=1.8pt,color=red] table {VF2PPLabel/moleculesIso.txt};
1.1556 +\addplot table {Orig/moleculesIso.txt}; \addplot[mark=triangle*,mark
1.1557 + size=1.8pt,color=red] table {VF2PPLabel/moleculesIso.txt};
1.1558 \end{axis}
1.1559 \end{tikzpicture}
1.1560 \end{center}
1.1561 \vspace*{-0.8cm}
1.1562 -\caption{In the case of Molecules, there is not such a significant difference, but VF2++ seems to be faster as the number of nodes increases.}\label{fig:ISOMolecule}
1.1563 +\caption{In the case of Molecules, there is not such a significant
1.1564 + difference, but VF2++ seems to be faster as the number of nodes
1.1565 + increases.}\label{fig:ISOMolecule}
1.1566 \end{figure}
1.1567
1.1568
1.1569 \subsection{Random graphs}
1.1570 -This section compares VF2++ with VF2 Plus on random graphs of a large size. The node labels are uniformly distributed.
1.1571 -Let $\delta$ denote the average degree.
1.1572 -For the parameters of problems solved in the experiments, please see the top of each chart.
1.1573 +This section compares VF2++ with VF2 Plus on random graphs of a large
1.1574 +size. The node labels are uniformly distributed. Let $\delta$ denote
1.1575 +the average degree. For the parameters of problems solved in the
1.1576 +experiments, please see the top of each chart.
1.1577 \subsubsection{Graph isomorphism}
1.1578 -To evaluate the efficiency of the algorithms in the case of graph isomorphism, connected graphs of less than 20 000 nodes have been considered. Generating a random graph and shuffling its nodes, an isomorphism had to be found. \textbf{Figure \ref{fig:randISO5}), \ref{fig:randISO10}), \ref{fig:randISO15}), \ref{fig:randISO35}), \ref{fig:randISO45}),} and \textbf{\ref{fig:randISO100}) } show the runtime results on graph sets of various density.
1.1579 +To evaluate the efficiency of the algorithms in the case of graph
1.1580 +isomorphism, connected graphs of less than 20 000 nodes have been
1.1581 +considered. Generating a random graph and shuffling its nodes, an
1.1582 +isomorphism had to be found. \textbf{Figure \ref{fig:randISO5}),
1.1583 + \ref{fig:randISO10}), \ref{fig:randISO15}), \ref{fig:randISO35}),
1.1584 + \ref{fig:randISO45}),} and \textbf{\ref{fig:randISO100}) } show the
1.1585 +runtime results on graph sets of various density.
1.1586
1.1587 \begin{figure}[H]
1.1588 \begin{center}
1.1589 \begin{tikzpicture}
1.1590 \begin{axis}[title={Random ISO, $\delta = 5$},xlabel={target size},ylabel={time (ms)},legend entries={VF2 Plus,VF2++},grid
1.1591 -=major,mark size=1.2pt, legend style={at={(0,1)},anchor=north west},scaled x ticks = false,x tick label style={/pgf/number format/1000 sep = \thinspace}]
1.1592 +=major,mark size=1.2pt, legend style={at={(0,1)},anchor=north
1.1593 + west},scaled x ticks = false,x tick label style={/pgf/number
1.1594 + format/1000 sep = \thinspace}]
1.1595 %\addplot+[only marks] table {proteinsOrig.txt};
1.1596 \addplot table {randGraph/iso/vf2pIso5_1.txt};
1.1597 -\addplot[mark=triangle*,mark size=1.8pt,color=red] table {randGraph/iso/vf2ppIso5_1.txt};
1.1598 +\addplot[mark=triangle*,mark size=1.8pt,color=red] table
1.1599 + {randGraph/iso/vf2ppIso5_1.txt};
1.1600 \end{axis}
1.1601 \end{tikzpicture}
1.1602 \end{center}
1.1603 @@ -972,10 +1454,13 @@
1.1604 \begin{center}
1.1605 \begin{tikzpicture}
1.1606 \begin{axis}[title={Random ISO, $\delta = 10$},xlabel={target size},ylabel={time (ms)},legend entries={VF2 Plus,VF2++},grid
1.1607 -=major,mark size=1.2pt, legend style={at={(0,1)},anchor=north west},scaled x ticks = false,x tick label style={/pgf/number format/1000 sep = \thinspace}]
1.1608 +=major,mark size=1.2pt, legend style={at={(0,1)},anchor=north
1.1609 + west},scaled x ticks = false,x tick label style={/pgf/number
1.1610 + format/1000 sep = \thinspace}]
1.1611 %\addplot+[only marks] table {proteinsOrig.txt};
1.1612 \addplot table {randGraph/iso/vf2pIso10_1.txt};
1.1613 -\addplot[mark=triangle*,mark size=1.8pt,color=red] table {randGraph/iso/vf2ppIso10_1.txt};
1.1614 +\addplot[mark=triangle*,mark size=1.8pt,color=red] table
1.1615 + {randGraph/iso/vf2ppIso10_1.txt};
1.1616 \end{axis}
1.1617 \end{tikzpicture}
1.1618 \end{center}
1.1619 @@ -987,10 +1472,13 @@
1.1620 \begin{center}
1.1621 \begin{tikzpicture}
1.1622 \begin{axis}[title={Random ISO, $\delta = 15$},xlabel={target size},ylabel={time (ms)},legend entries={VF2 Plus,VF2++},grid
1.1623 -=major,mark size=1.2pt, legend style={at={(0,1)},anchor=north west},scaled x ticks = false,x tick label style={/pgf/number format/1000 sep = \thinspace}]
1.1624 +=major,mark size=1.2pt, legend style={at={(0,1)},anchor=north
1.1625 + west},scaled x ticks = false,x tick label style={/pgf/number
1.1626 + format/1000 sep = \thinspace}]
1.1627 %\addplot+[only marks] table {proteinsOrig.txt};
1.1628 \addplot table {randGraph/iso/vf2pIso15_1.txt};
1.1629 -\addplot[mark=triangle*,mark size=1.8pt,color=red] table {randGraph/iso/vf2ppIso15_1.txt};
1.1630 +\addplot[mark=triangle*,mark size=1.8pt,color=red] table
1.1631 + {randGraph/iso/vf2ppIso15_1.txt};
1.1632 \end{axis}
1.1633 \end{tikzpicture}
1.1634 \end{center}
1.1635 @@ -1002,10 +1490,13 @@
1.1636 \begin{center}
1.1637 \begin{tikzpicture}
1.1638 \begin{axis}[title={Random ISO, $\delta = 35$},xlabel={target size},ylabel={time (ms)},legend entries={VF2 Plus,VF2++},grid
1.1639 -=major,mark size=1.2pt, legend style={at={(0,1)},anchor=north west},scaled x ticks = false,x tick label style={/pgf/number format/1000 sep = \thinspace}]
1.1640 +=major,mark size=1.2pt, legend style={at={(0,1)},anchor=north
1.1641 + west},scaled x ticks = false,x tick label style={/pgf/number
1.1642 + format/1000 sep = \thinspace}]
1.1643 %\addplot+[only marks] table {proteinsOrig.txt};
1.1644 \addplot table {randGraph/iso/vf2pIso35_1.txt};
1.1645 -\addplot[mark=triangle*,mark size=1.8pt,color=red] table {randGraph/iso/vf2ppIso35_1.txt};
1.1646 +\addplot[mark=triangle*,mark size=1.8pt,color=red] table
1.1647 + {randGraph/iso/vf2ppIso35_1.txt};
1.1648 \end{axis}
1.1649 \end{tikzpicture}
1.1650 \end{center}
1.1651 @@ -1017,10 +1508,13 @@
1.1652 \begin{center}
1.1653 \begin{tikzpicture}
1.1654 \begin{axis}[title={Random ISO, $\delta = 45$},xlabel={target size},ylabel={time (ms)},legend entries={VF2 Plus,VF2++},grid
1.1655 -=major,mark size=1.2pt, legend style={at={(0,1)},anchor=north west},scaled x ticks = false,x tick label style={/pgf/number format/1000 sep = \thinspace}]
1.1656 +=major,mark size=1.2pt, legend style={at={(0,1)},anchor=north
1.1657 + west},scaled x ticks = false,x tick label style={/pgf/number
1.1658 + format/1000 sep = \thinspace}]
1.1659 %\addplot+[only marks] table {proteinsOrig.txt};
1.1660 \addplot table {randGraph/iso/vf2pIso45_1.txt};
1.1661 -\addplot[mark=triangle*,mark size=1.8pt,color=red] table {randGraph/iso/vf2ppIso45_1.txt};
1.1662 +\addplot[mark=triangle*,mark size=1.8pt,color=red] table
1.1663 + {randGraph/iso/vf2ppIso45_1.txt};
1.1664 \end{axis}
1.1665 \end{tikzpicture}
1.1666 \end{center}
1.1667 @@ -1032,10 +1526,13 @@
1.1668 \begin{center}
1.1669 \begin{tikzpicture}
1.1670 \begin{axis}[title={Random ISO, $\delta = 100$},xlabel={target size},ylabel={time (ms)},legend entries={VF2 Plus,VF2++},grid
1.1671 -=major,mark size=1.2pt, legend style={at={(0,1)},anchor=north west},scaled x ticks = false,x tick label style={/pgf/number format/1000 sep = \thinspace}]
1.1672 +=major,mark size=1.2pt, legend style={at={(0,1)},anchor=north
1.1673 + west},scaled x ticks = false,x tick label style={/pgf/number
1.1674 + format/1000 sep = \thinspace}]
1.1675 %\addplot+[only marks] table {proteinsOrig.txt};
1.1676 \addplot table {randGraph/iso/vf2pIso100_1.txt};
1.1677 -\addplot[mark=triangle*,mark size=1.8pt,color=red] table {randGraph/iso/vf2ppIso100_1.txt};
1.1678 +\addplot[mark=triangle*,mark size=1.8pt,color=red] table
1.1679 + {randGraph/iso/vf2ppIso100_1.txt};
1.1680 \end{axis}
1.1681 \end{tikzpicture}
1.1682 \end{center}
1.1683 @@ -1044,13 +1541,30 @@
1.1684 \end{figure}
1.1685
1.1686
1.1687 -Considering the graph isomorphism problem, VF2++ consistently outperforms its rival especially on sparse graphs. The reason for the slightly super linear behaviour of VF2++ on denser graphs is the larger number of nodes in the BFS tree constructed in \textbf{Algorithm \ref{alg:VF2PPPseu})}.
1.1688 +Considering the graph isomorphism problem, VF2++ consistently
1.1689 +outperforms its rival especially on sparse graphs. The reason for the
1.1690 +slightly super linear behaviour of VF2++ on denser graphs is the
1.1691 +larger number of nodes in the BFS tree constructed in
1.1692 +\textbf{Algorithm \ref{alg:VF2PPPseu})}.
1.1693
1.1694 \subsubsection{Induced subgraph isomorphism}
1.1695 -This section provides a comparison of VF2++ and VF2 Plus in the case of induced subgraph isomorphism. In addition to the size of the large graph, that of the small graph dramatically influences the hardness of a given problem too, so the overall picture is provided by examining small graphs of various size.
1.1696 +This section provides a comparison of VF2++ and VF2 Plus in the case
1.1697 +of induced subgraph isomorphism. In addition to the size of the large
1.1698 +graph, that of the small graph dramatically influences the hardness of
1.1699 +a given problem too, so the overall picture is provided by examining
1.1700 +small graphs of various size.
1.1701
1.1702 -For each chart, a number $0<\rho< 1$ has been fixed and the following has been executed 150 times. Generating a large graph $G_{large}$, choose 10 of its induced subgraphs having $\rho\ |V_{large}|$ nodes, and for all the 10 subgraphs find a mapping by using both the graph matching algorithms.
1.1703 -The $\delta = 5, 10, 35$ and $\rho = 0.05, 0.1, 0.3, 0.6, 0.8, 0.95$ cases have been examined (see \textbf{Figure \ref{fig:randIND5}), \ref{fig:randIND10})} and \textbf{\ref{fig:randIND35})}), and for each $\delta$, a cumulative chart is given as well, which excludes $\rho = 0.05$ and $0.1$ for the sake of perspicuity (see \textbf{Figure \ref{fig:randIND5Sum}), \ref{fig:randIND10Sum})} and \textbf{\ref{fig:randIND35Sum})}).
1.1704 +For each chart, a number $0<\rho< 1$ has been fixed and the following
1.1705 +has been executed 150 times. Generating a large graph $G_{large}$,
1.1706 +choose 10 of its induced subgraphs having $\rho\ |V_{large}|$ nodes,
1.1707 +and for all the 10 subgraphs find a mapping by using both the graph
1.1708 +matching algorithms. The $\delta = 5, 10, 35$ and $\rho = 0.05, 0.1,
1.1709 +0.3, 0.6, 0.8, 0.95$ cases have been examined (see \textbf{Figure
1.1710 + \ref{fig:randIND5}), \ref{fig:randIND10})} and
1.1711 +\textbf{\ref{fig:randIND35})}), and for each $\delta$, a cumulative
1.1712 +chart is given as well, which excludes $\rho = 0.05$ and $0.1$ for the
1.1713 +sake of perspicuity (see \textbf{Figure \ref{fig:randIND5Sum}),
1.1714 + \ref{fig:randIND10Sum})} and \textbf{\ref{fig:randIND35Sum})}).
1.1715
1.1716
1.1717
1.1718 @@ -1062,10 +1576,13 @@
1.1719 \begin{center}
1.1720 \begin{tikzpicture}
1.1721 \begin{axis}[title={Random IND, $\delta = 5$, $\rho = 0.05$},width=7.2cm,height=6cm,xlabel={target size},ylabel={time (ms)},ylabel near ticks,legend entries={VF2 Plus,VF2++},grid
1.1722 -=major,mark size=1.2pt, legend style={at={(0,1)},anchor=north west},scaled x ticks = false,x tick label style={/pgf/number format/1000 sep = \space}]
1.1723 +=major,mark size=1.2pt, legend style={at={(0,1)},anchor=north
1.1724 + west},scaled x ticks = false,x tick label style={/pgf/number
1.1725 + format/1000 sep = \space}]
1.1726 %\addplot+[only marks] table {proteinsOrig.txt};
1.1727 \addplot table {randGraph/ind/vf2pInd5_0.05.txt};
1.1728 -\addplot[mark=triangle*,mark size=1.8pt,color=red] table {randGraph/ind/vf2ppInd5_0.05.txt};
1.1729 +\addplot[mark=triangle*,mark size=1.8pt,color=red] table
1.1730 + {randGraph/ind/vf2ppInd5_0.05.txt};
1.1731 \end{axis}
1.1732 \end{tikzpicture}
1.1733 \end{center}
1.1734 @@ -1074,10 +1591,13 @@
1.1735 \begin{center}
1.1736 \begin{tikzpicture}
1.1737 \begin{axis}[title={Random IND, $\delta = 5$, $\rho = 0.1$},width=7.2cm,height=6cm,xlabel={target size},ylabel={time (ms)},ylabel near ticks,legend entries={VF2 Plus,VF2++},grid
1.1738 -=major,mark size=1.2pt, legend style={at={(0,1)},anchor=north west},scaled x ticks = false,x tick label style={/pgf/number format/1000 sep = \space}]
1.1739 +=major,mark size=1.2pt, legend style={at={(0,1)},anchor=north
1.1740 + west},scaled x ticks = false,x tick label style={/pgf/number
1.1741 + format/1000 sep = \space}]
1.1742 %\addplot+[only marks] table {proteinsOrig.txt};
1.1743 \addplot table {randGraph/ind/vf2pInd5_0.1.txt};
1.1744 -\addplot[mark=triangle*,mark size=1.8pt,color=red] table {randGraph/ind/vf2ppInd5_0.1.txt};
1.1745 +\addplot[mark=triangle*,mark size=1.8pt,color=red] table
1.1746 + {randGraph/ind/vf2ppInd5_0.1.txt};
1.1747 \end{axis}
1.1748 \end{tikzpicture}
1.1749 \end{center}
1.1750 @@ -1087,10 +1607,13 @@
1.1751 \begin{center}
1.1752 \begin{tikzpicture}
1.1753 \begin{axis}[title={Random IND, $\delta = 5$, $\rho = 0.3$},width=7.2cm,height=6cm,xlabel={target size},ylabel={time (ms)},ylabel near ticks,legend entries={VF2 Plus,VF2++},grid
1.1754 -=major,mark size=1.2pt, legend style={at={(0,1)},anchor=north west},scaled x ticks = false,x tick label style={/pgf/number format/1000 sep = \space}]
1.1755 +=major,mark size=1.2pt, legend style={at={(0,1)},anchor=north
1.1756 + west},scaled x ticks = false,x tick label style={/pgf/number
1.1757 + format/1000 sep = \space}]
1.1758 %\addplot+[only marks] table {proteinsOrig.txt};
1.1759 \addplot table {randGraph/ind/vf2pInd5_0.3.txt};
1.1760 -\addplot[mark=triangle*,mark size=1.8pt,color=red] table {randGraph/ind/vf2ppInd5_0.3.txt};
1.1761 +\addplot[mark=triangle*,mark size=1.8pt,color=red] table
1.1762 + {randGraph/ind/vf2ppInd5_0.3.txt};
1.1763 \end{axis}
1.1764 \end{tikzpicture}
1.1765 \end{center}
1.1766 @@ -1099,10 +1622,13 @@
1.1767 \begin{center}
1.1768 \begin{tikzpicture}
1.1769 \begin{axis}[title={Random IND, $\delta = 5$, $\rho = 0.6$},width=7.2cm,height=6cm,xlabel={target size},ylabel={time (ms)},ylabel near ticks,legend entries={VF2 Plus,VF2++},grid
1.1770 -=major,mark size=1.2pt, legend style={at={(0,1)},anchor=north west},scaled x ticks = false,x tick label style={/pgf/number format/1000 sep = \space}]
1.1771 +=major,mark size=1.2pt, legend style={at={(0,1)},anchor=north
1.1772 + west},scaled x ticks = false,x tick label style={/pgf/number
1.1773 + format/1000 sep = \space}]
1.1774 %\addplot+[only marks] table {proteinsOrig.txt};
1.1775 \addplot table {randGraph/ind/vf2pInd5_0.6.txt};
1.1776 -\addplot[mark=triangle*,mark size=1.8pt,color=red] table {randGraph/ind/vf2ppInd5_0.6.txt};
1.1777 +\addplot[mark=triangle*,mark size=1.8pt,color=red] table
1.1778 + {randGraph/ind/vf2ppInd5_0.6.txt};
1.1779 \end{axis}
1.1780 \end{tikzpicture}
1.1781 \end{center}
1.1782 @@ -1111,41 +1637,58 @@
1.1783
1.1784 \begin{tikzpicture}
1.1785 \begin{axis}[title={Random IND, $\delta = 5$, $\rho = 0.8$},width=7.2cm,height=6cm,xlabel={target size},ylabel={time (ms)},ylabel near ticks,legend entries={VF2 Plus,VF2++},grid
1.1786 -=major,mark size=1.2pt, legend style={at={(0,1)},anchor=north west},scaled x ticks = false,x tick label style={/pgf/number format/1000 sep = \space}]
1.1787 +=major,mark size=1.2pt, legend style={at={(0,1)},anchor=north
1.1788 + west},scaled x ticks = false,x tick label style={/pgf/number
1.1789 + format/1000 sep = \space}]
1.1790 %\addplot+[only marks] table {proteinsOrig.txt};
1.1791 \addplot table {randGraph/ind/vf2pInd5_0.8.txt};
1.1792 -\addplot[mark=triangle*,mark size=1.8pt,color=red] table {randGraph/ind/vf2ppInd5_0.8.txt};
1.1793 +\addplot[mark=triangle*,mark size=1.8pt,color=red] table
1.1794 + {randGraph/ind/vf2ppInd5_0.8.txt};
1.1795 \end{axis}
1.1796 \end{tikzpicture}
1.1797 \end{subfigure}
1.1798 \begin{subfigure}[b]{0.55\textwidth}
1.1799 \begin{tikzpicture}
1.1800 \begin{axis}[title={Random IND, $\delta = 5$, $\rho = 0.95$},width=7.2cm,height=6cm,xlabel={target size},ylabel={time (ms)},ylabel near ticks,legend entries={VF2 Plus,VF2++},grid
1.1801 -=major,mark size=1.2pt, legend style={at={(0,1)},anchor=north west},scaled x ticks = false,x tick label style={/pgf/number format/1000 sep = \thinspace}]
1.1802 +=major,mark size=1.2pt, legend style={at={(0,1)},anchor=north
1.1803 + west},scaled x ticks = false,x tick label style={/pgf/number
1.1804 + format/1000 sep = \thinspace}]
1.1805 %\addplot+[only marks] table {proteinsOrig.txt};
1.1806 \addplot table {randGraph/ind/vf2pInd5_0.95.txt};
1.1807 -\addplot[mark=triangle*,mark size=1.8pt,color=red] table {randGraph/ind/vf2ppInd5_0.95.txt};
1.1808 +\addplot[mark=triangle*,mark size=1.8pt,color=red] table
1.1809 + {randGraph/ind/vf2ppInd5_0.95.txt};
1.1810 \end{axis}
1.1811 \end{tikzpicture}
1.1812 \end{subfigure}
1.1813 \vspace*{-0.8cm}
1.1814 -\caption{IND on graphs having an average degree of 5.}\label{fig:randIND5}
1.1815 +\caption{IND on graphs having an average degree of
1.1816 + 5.}\label{fig:randIND5}
1.1817 \end{figure}
1.1818
1.1819 \begin{figure}[H]
1.1820 \begin{center}
1.1821 \begin{tikzpicture}
1.1822 \begin{axis}[title={Rand IND Summary, $\delta = 5$, $\rho = 0.3, 0.6, 0.8, 0.95$},height=17cm,width=16cm,xlabel={target size},ylabel={time (ms)},legend entries={VF2 Plus,VF2++},line width=0.8pt,grid
1.1823 -=major,mark size=1pt, legend style={at={(0,1)},anchor=north west},scaled x ticks = false,x tick label style={/pgf/number format/1000 sep = \thinspace}]
1.1824 +=major,mark size=1pt, legend style={at={(0,1)},anchor=north
1.1825 + west},scaled x ticks = false,x tick label style={/pgf/number
1.1826 + format/1000 sep = \thinspace}]
1.1827 %\addplot+[only marks] table {proteinsOrig.txt};
1.1828 -\addplot[mark=*,mark size=1.5pt,color=blue] table {randGraph/ind/vf2pInd5_0.3.txt};
1.1829 -\addplot[mark=triangle*,mark size=1.8pt,color=red] table {randGraph/ind/vf2ppInd5_0.3.txt};
1.1830 -\addplot[mark=*,mark size=1.5pt,color=blue] table {randGraph/ind/vf2pInd5_0.6.txt};
1.1831 -\addplot[mark=triangle*,mark size=1.8pt,color=red] table {randGraph/ind/vf2ppInd5_0.6.txt};
1.1832 -\addplot[mark=*,mark size=1.5pt,color=blue] table {randGraph/ind/vf2pInd5_0.8.txt};
1.1833 -\addplot[mark=triangle*,mark size=1.8pt,color=red] table {randGraph/ind/vf2ppInd5_0.8.txt};
1.1834 -\addplot[mark=*,mark size=1.5pt,color=blue] table {randGraph/ind/vf2pInd5_0.95.txt};
1.1835 -\addplot[mark=triangle*,mark size=1.8pt,color=red] table {randGraph/ind/vf2ppInd5_0.95.txt};
1.1836 +\addplot[mark=*,mark size=1.5pt,color=blue] table
1.1837 + {randGraph/ind/vf2pInd5_0.3.txt}; \addplot[mark=triangle*,mark
1.1838 + size=1.8pt,color=red] table
1.1839 + {randGraph/ind/vf2ppInd5_0.3.txt}; \addplot[mark=*,mark
1.1840 + size=1.5pt,color=blue] table
1.1841 + {randGraph/ind/vf2pInd5_0.6.txt}; \addplot[mark=triangle*,mark
1.1842 + size=1.8pt,color=red] table
1.1843 + {randGraph/ind/vf2ppInd5_0.6.txt}; \addplot[mark=*,mark
1.1844 + size=1.5pt,color=blue] table
1.1845 + {randGraph/ind/vf2pInd5_0.8.txt}; \addplot[mark=triangle*,mark
1.1846 + size=1.8pt,color=red] table
1.1847 + {randGraph/ind/vf2ppInd5_0.8.txt}; \addplot[mark=*,mark
1.1848 + size=1.5pt,color=blue] table
1.1849 + {randGraph/ind/vf2pInd5_0.95.txt};
1.1850 + \addplot[mark=triangle*,mark size=1.8pt,color=red] table
1.1851 + {randGraph/ind/vf2ppInd5_0.95.txt};
1.1852 \end{axis}
1.1853 \end{tikzpicture}
1.1854 \end{center}
1.1855 @@ -1161,10 +1704,13 @@
1.1856 \begin{center}
1.1857 \begin{tikzpicture}
1.1858 \begin{axis}[title={Random IND, $\delta = 10$, $\rho = 0.05$},width=7.2cm,height=6cm,xlabel={target size},ylabel={time (ms)},ylabel near ticks,legend entries={VF2 Plus,VF2++},grid
1.1859 -=major,mark size=1.2pt, legend style={at={(0,1)},anchor=north west},scaled x ticks = false,x tick label style={/pgf/number format/1000 sep = \space}]
1.1860 +=major,mark size=1.2pt, legend style={at={(0,1)},anchor=north
1.1861 + west},scaled x ticks = false,x tick label style={/pgf/number
1.1862 + format/1000 sep = \space}]
1.1863 %\addplot+[only marks] table {proteinsOrig.txt};
1.1864 \addplot table {randGraph/ind/vf2pInd10_0.05.txt};
1.1865 -\addplot[mark=triangle*,mark size=1.8pt,color=red] table {randGraph/ind/vf2ppInd10_0.05.txt};
1.1866 +\addplot[mark=triangle*,mark size=1.8pt,color=red] table
1.1867 + {randGraph/ind/vf2ppInd10_0.05.txt};
1.1868 \end{axis}
1.1869 \end{tikzpicture}
1.1870 \end{center}
1.1871 @@ -1173,10 +1719,13 @@
1.1872 \begin{center}
1.1873 \begin{tikzpicture}
1.1874 \begin{axis}[title={Random IND, $\delta = 10$, $\rho = 0.1$},width=7.2cm,height=6cm,xlabel={target size},ylabel={time (ms)},ylabel near ticks,legend entries={VF2 Plus,VF2++},grid
1.1875 -=major,mark size=1.2pt, legend style={at={(0,1)},anchor=north west},scaled x ticks = false,x tick label style={/pgf/number format/1000 sep = \space}]
1.1876 +=major,mark size=1.2pt, legend style={at={(0,1)},anchor=north
1.1877 + west},scaled x ticks = false,x tick label style={/pgf/number
1.1878 + format/1000 sep = \space}]
1.1879 %\addplot+[only marks] table {proteinsOrig.txt};
1.1880 \addplot table {randGraph/ind/vf2pInd10_0.1.txt};
1.1881 -\addplot[mark=triangle*,mark size=1.8pt,color=red] table {randGraph/ind/vf2ppInd10_0.1.txt};
1.1882 +\addplot[mark=triangle*,mark size=1.8pt,color=red] table
1.1883 + {randGraph/ind/vf2ppInd10_0.1.txt};
1.1884 \end{axis}
1.1885 \end{tikzpicture}
1.1886 \end{center}
1.1887 @@ -1186,10 +1735,13 @@
1.1888 \begin{center}
1.1889 \begin{tikzpicture}
1.1890 \begin{axis}[title={Random IND, $\delta = 10$, $\rho = 0.3$},width=7.2cm,height=6cm,xlabel={target size},ylabel={time (ms)},ylabel near ticks,legend entries={VF2 Plus,VF2++},grid
1.1891 -=major,mark size=1.2pt, legend style={at={(0,1)},anchor=north west},scaled x ticks = false,x tick label style={/pgf/number format/1000 sep = \space}]
1.1892 +=major,mark size=1.2pt, legend style={at={(0,1)},anchor=north
1.1893 + west},scaled x ticks = false,x tick label style={/pgf/number
1.1894 + format/1000 sep = \space}]
1.1895 %\addplot+[only marks] table {proteinsOrig.txt};
1.1896 \addplot table {randGraph/ind/vf2pInd10_0.3.txt};
1.1897 -\addplot[mark=triangle*,mark size=1.8pt,color=red] table {randGraph/ind/vf2ppInd10_0.3.txt};
1.1898 +\addplot[mark=triangle*,mark size=1.8pt,color=red] table
1.1899 + {randGraph/ind/vf2ppInd10_0.3.txt};
1.1900 \end{axis}
1.1901 \end{tikzpicture}
1.1902 \end{center}
1.1903 @@ -1198,10 +1750,13 @@
1.1904 \begin{center}
1.1905 \begin{tikzpicture}
1.1906 \begin{axis}[title={Random IND, $\delta = 10$, $\rho = 0.6$},width=7.2cm,height=6cm,xlabel={target size},ylabel={time (ms)},ylabel near ticks,legend entries={VF2 Plus,VF2++},grid
1.1907 -=major,mark size=1.2pt, legend style={at={(0,1)},anchor=north west},scaled x ticks = false,x tick label style={/pgf/number format/1000 sep = \space}]
1.1908 +=major,mark size=1.2pt, legend style={at={(0,1)},anchor=north
1.1909 + west},scaled x ticks = false,x tick label style={/pgf/number
1.1910 + format/1000 sep = \space}]
1.1911 %\addplot+[only marks] table {proteinsOrig.txt};
1.1912 \addplot table {randGraph/ind/vf2pInd10_0.6.txt};
1.1913 -\addplot[mark=triangle*,mark size=1.8pt,color=red] table {randGraph/ind/vf2ppInd10_0.6.txt};
1.1914 +\addplot[mark=triangle*,mark size=1.8pt,color=red] table
1.1915 + {randGraph/ind/vf2ppInd10_0.6.txt};
1.1916 \end{axis}
1.1917 \end{tikzpicture}
1.1918 \end{center}
1.1919 @@ -1210,41 +1765,65 @@
1.1920
1.1921 \begin{tikzpicture}
1.1922 \begin{axis}[title={Random IND, $\delta = 10$, $\rho = 0.8$},width=7.2cm,height=6cm,xlabel={target size},ylabel={time (ms)},ylabel near ticks,legend entries={VF2 Plus,VF2++},grid
1.1923 -=major,mark size=1.2pt, legend style={at={(0,1)},anchor=north west},scaled x ticks = false,x tick label style={/pgf/number format/1000 sep = \space}]
1.1924 +=major,mark size=1.2pt, legend style={at={(0,1)},anchor=north
1.1925 + west},scaled x ticks = false,x tick label style={/pgf/number
1.1926 + format/1000 sep = \space}]
1.1927 %\addplot+[only marks] table {proteinsOrig.txt};
1.1928 \addplot table {randGraph/ind/vf2pInd10_0.8.txt};
1.1929 -\addplot[mark=triangle*,mark size=1.8pt,color=red] table {randGraph/ind/vf2ppInd10_0.8.txt};
1.1930 +\addplot[mark=triangle*,mark size=1.8pt,color=red] table
1.1931 + {randGraph/ind/vf2ppInd10_0.8.txt};
1.1932 \end{axis}
1.1933 \end{tikzpicture}
1.1934 \end{subfigure}
1.1935 \begin{subfigure}[b]{0.55\textwidth}
1.1936 \begin{tikzpicture}
1.1937 \begin{axis}[title={Random IND, $\delta = 10$, $\rho = 0.95$},width=7.2cm,height=6cm,xlabel={target size},ylabel={time (ms)},ylabel near ticks,legend entries={VF2 Plus,VF2++},grid
1.1938 -=major,mark size=1.2pt, legend style={at={(0,1)},anchor=north west},scaled x ticks = false,x tick label style={/pgf/number format/1000 sep = \thinspace}]
1.1939 +=major,mark size=1.2pt, legend style={at={(0,1)},anchor=north
1.1940 + west},scaled x ticks = false,x tick label style={/pgf/number
1.1941 + format/1000 sep = \thinspace}]
1.1942 %\addplot+[only marks] table {proteinsOrig.txt};
1.1943 \addplot table {randGraph/ind/vf2pInd10_0.95.txt};
1.1944 -\addplot[mark=triangle*,mark size=1.8pt,color=red] table {randGraph/ind/vf2ppInd10_0.95.txt};
1.1945 +\addplot[mark=triangle*,mark size=1.8pt,color=red] table
1.1946 + {randGraph/ind/vf2ppInd10_0.95.txt};
1.1947 \end{axis}
1.1948 \end{tikzpicture}
1.1949 \end{subfigure}
1.1950 \vspace*{-0.8cm}
1.1951 -\caption{IND on graphs having an average degree of 10.}\label{fig:randIND10}
1.1952 +\caption{IND on graphs having an average degree of
1.1953 + 10.}\label{fig:randIND10}
1.1954 \end{figure}
1.1955
1.1956 \begin{figure}[H]
1.1957 \begin{center}
1.1958 \begin{tikzpicture}
1.1959 \begin{axis}[title={Rand IND Summary, $\delta = 10$, $\rho = 0.3, 0.6, 0.8, 0.95$},height=17cm,width=16cm,xlabel={target size},ylabel={time (ms)},legend entries={VF2 Plus,VF2++},line width=0.8pt,grid
1.1960 -=major,mark size=1pt, legend style={at={(0,1)},anchor=north west},scaled x ticks = false,x tick label style={/pgf/number format/1000 sep = \thinspace}]
1.1961 +=major,mark size=1pt, legend style={at={(0,1)},anchor=north
1.1962 + west},scaled x ticks = false,x tick label style={/pgf/number
1.1963 + format/1000 sep = \thinspace}]
1.1964 %\addplot+[only marks] table {proteinsOrig.txt};
1.1965 -\addplot[mark=*,mark size=1.5pt,color=blue] table {randGraph/ind/vf2pInd10_0.3.txt};
1.1966 -\addplot[mark=triangle*,mark size=1.8pt,color=red] table {randGraph/ind/vf2ppInd10_0.3.txt};
1.1967 -\addplot[mark=*,mark size=1.5pt,color=blue] table {randGraph/ind/vf2pInd10_0.6.txt};
1.1968 -\addplot[mark=triangle*,mark size=1.8pt,color=red] table {randGraph/ind/vf2ppInd10_0.6.txt};
1.1969 -\addplot[mark=*,mark size=1.5pt,color=blue] table {randGraph/ind/vf2pInd10_0.8.txt};
1.1970 -\addplot[mark=triangle*,mark size=1.8pt,color=red] table {randGraph/ind/vf2ppInd10_0.8.txt};
1.1971 -\addplot[mark=*,mark size=1.5pt,color=blue] table {randGraph/ind/vf2pInd10_0.95.txt};
1.1972 -\addplot[mark=triangle*,mark size=1.8pt,color=red] table {randGraph/ind/vf2ppInd10_0.95.txt};
1.1973 +\addplot[mark=*,mark size=1.5pt,color=blue] table
1.1974 + {randGraph/ind/vf2pInd10_0.3.txt};
1.1975 + \addplot[mark=triangle*,mark size=1.8pt,color=red] table
1.1976 + {randGraph/ind/vf2ppInd10_0.3.txt};
1.1977 + \addplot[mark=*,mark size=1.5pt,color=blue] table
1.1978 + {randGraph/ind/vf2pInd10_0.6.txt};
1.1979 + \addplot[mark=triangle*,mark
1.1980 + size=1.8pt,color=red] table
1.1981 + {randGraph/ind/vf2ppInd10_0.6.txt};
1.1982 + \addplot[mark=*,mark
1.1983 + size=1.5pt,color=blue] table
1.1984 + {randGraph/ind/vf2pInd10_0.8.txt};
1.1985 + \addplot[mark=triangle*,mark
1.1986 + size=1.8pt,color=red] table
1.1987 + {randGraph/ind/vf2ppInd10_0.8.txt};
1.1988 + \addplot[mark=*,mark
1.1989 + size=1.5pt,color=blue]
1.1990 + table
1.1991 + {randGraph/ind/vf2pInd10_0.95.txt};
1.1992 + \addplot[mark=triangle*,mark
1.1993 + size=1.8pt,color=red]
1.1994 + table
1.1995 + {randGraph/ind/vf2ppInd10_0.95.txt};
1.1996 \end{axis}
1.1997 \end{tikzpicture}
1.1998 \end{center}
1.1999 @@ -1260,10 +1839,13 @@
1.2000 \begin{center}
1.2001 \begin{tikzpicture}
1.2002 \begin{axis}[title={Random IND, $\delta = 35$, $\rho = 0.05$},width=7.2cm,height=6cm,xlabel={target size},ylabel={time (ms)},ylabel near ticks,legend entries={VF2 Plus,VF2++},grid
1.2003 -=major,mark size=1.2pt, legend style={at={(0,1)},anchor=north west},scaled x ticks = false,x tick label style={/pgf/number format/1000 sep = \space}]
1.2004 +=major,mark size=1.2pt, legend style={at={(0,1)},anchor=north
1.2005 + west},scaled x ticks = false,x tick label style={/pgf/number
1.2006 + format/1000 sep = \space}]
1.2007 %\addplot+[only marks] table {proteinsOrig.txt};
1.2008 \addplot table {randGraph/ind/vf2pInd35_0.05.txt};
1.2009 -\addplot[mark=triangle*,mark size=1.8pt,color=red] table {randGraph/ind/vf2ppInd35_0.05.txt};
1.2010 +\addplot[mark=triangle*,mark size=1.8pt,color=red] table
1.2011 + {randGraph/ind/vf2ppInd35_0.05.txt};
1.2012 \end{axis}
1.2013 \end{tikzpicture}
1.2014 \end{center}
1.2015 @@ -1272,10 +1854,13 @@
1.2016 \begin{center}
1.2017 \begin{tikzpicture}
1.2018 \begin{axis}[title={Random IND, $\delta = 35$, $\rho = 0.1$},width=7.2cm,height=6cm,xlabel={target size},ylabel={time (ms)},ylabel near ticks,legend entries={VF2 Plus,VF2++},grid
1.2019 -=major,mark size=1.2pt, legend style={at={(0,1)},anchor=north west},scaled x ticks = false,x tick label style={/pgf/number format/1000 sep = \space}]
1.2020 +=major,mark size=1.2pt, legend style={at={(0,1)},anchor=north
1.2021 + west},scaled x ticks = false,x tick label style={/pgf/number
1.2022 + format/1000 sep = \space}]
1.2023 %\addplot+[only marks] table {proteinsOrig.txt};
1.2024 \addplot table {randGraph/ind/vf2pInd35_0.1.txt};
1.2025 -\addplot[mark=triangle*,mark size=1.8pt,color=red] table {randGraph/ind/vf2ppInd35_0.1.txt};
1.2026 +\addplot[mark=triangle*,mark size=1.8pt,color=red] table
1.2027 + {randGraph/ind/vf2ppInd35_0.1.txt};
1.2028 \end{axis}
1.2029 \end{tikzpicture}
1.2030 \end{center}
1.2031 @@ -1285,10 +1870,13 @@
1.2032 \begin{center}
1.2033 \begin{tikzpicture}
1.2034 \begin{axis}[title={Random IND, $\delta = 35$, $\rho = 0.3$},width=7.2cm,height=6cm,xlabel={target size},ylabel={time (ms)},ylabel near ticks,legend entries={VF2 Plus,VF2++},grid
1.2035 -=major,mark size=1.2pt, legend style={at={(0,1)},anchor=north west},scaled x ticks = false,x tick label style={/pgf/number format/1000 sep = \space}]
1.2036 +=major,mark size=1.2pt, legend style={at={(0,1)},anchor=north
1.2037 + west},scaled x ticks = false,x tick label style={/pgf/number
1.2038 + format/1000 sep = \space}]
1.2039 %\addplot+[only marks] table {proteinsOrig.txt};
1.2040 \addplot table {randGraph/ind/vf2pInd35_0.3.txt};
1.2041 -\addplot[mark=triangle*,mark size=1.8pt,color=red] table {randGraph/ind/vf2ppInd35_0.3.txt};
1.2042 +\addplot[mark=triangle*,mark size=1.8pt,color=red] table
1.2043 + {randGraph/ind/vf2ppInd35_0.3.txt};
1.2044 \end{axis}
1.2045 \end{tikzpicture}
1.2046 \end{center}
1.2047 @@ -1297,10 +1885,13 @@
1.2048 \begin{center}
1.2049 \begin{tikzpicture}
1.2050 \begin{axis}[title={Random IND, $\delta = 35$, $\rho = 0.6$},width=7.2cm,height=6cm,xlabel={target size},ylabel={time (ms)},ylabel near ticks,legend entries={VF2 Plus,VF2++},grid
1.2051 -=major,mark size=1.2pt, legend style={at={(0,1)},anchor=north west},scaled x ticks = false,x tick label style={/pgf/number format/1000 sep = \space}]
1.2052 +=major,mark size=1.2pt, legend style={at={(0,1)},anchor=north
1.2053 + west},scaled x ticks = false,x tick label style={/pgf/number
1.2054 + format/1000 sep = \space}]
1.2055 %\addplot+[only marks] table {proteinsOrig.txt};
1.2056 \addplot table {randGraph/ind/vf2pInd35_0.6.txt};
1.2057 -\addplot[mark=triangle*,mark size=1.8pt,color=red] table {randGraph/ind/vf2ppInd35_0.6.txt};
1.2058 +\addplot[mark=triangle*,mark size=1.8pt,color=red] table
1.2059 + {randGraph/ind/vf2ppInd35_0.6.txt};
1.2060 \end{axis}
1.2061 \end{tikzpicture}
1.2062 \end{center}
1.2063 @@ -1309,41 +1900,65 @@
1.2064
1.2065 \begin{tikzpicture}
1.2066 \begin{axis}[title={Random IND, $\delta = 35$, $\rho = 0.8$},width=7.2cm,height=6cm,xlabel={target size},ylabel={time (ms)},ylabel near ticks,legend entries={VF2 Plus,VF2++},grid
1.2067 -=major,mark size=1.2pt, legend style={at={(0,1)},anchor=north west},scaled x ticks = false,x tick label style={/pgf/number format/1000 sep = \space}]
1.2068 +=major,mark size=1.2pt, legend style={at={(0,1)},anchor=north
1.2069 + west},scaled x ticks = false,x tick label style={/pgf/number
1.2070 + format/1000 sep = \space}]
1.2071 %\addplot+[only marks] table {proteinsOrig.txt};
1.2072 \addplot table {randGraph/ind/vf2pInd35_0.8.txt};
1.2073 -\addplot[mark=triangle*,mark size=1.8pt,color=red] table {randGraph/ind/vf2ppInd35_0.8.txt};
1.2074 +\addplot[mark=triangle*,mark size=1.8pt,color=red] table
1.2075 + {randGraph/ind/vf2ppInd35_0.8.txt};
1.2076 \end{axis}
1.2077 \end{tikzpicture}
1.2078 \end{subfigure}
1.2079 \begin{subfigure}[b]{0.55\textwidth}
1.2080 \begin{tikzpicture}
1.2081 \begin{axis}[title={Random IND, $\delta = 35$, $\rho = 0.95$},width=7.2cm,height=6cm,xlabel={target size},ylabel={time (ms)},ylabel near ticks,legend entries={VF2 Plus,VF2++},grid
1.2082 -=major,mark size=1.2pt, legend style={at={(0,1)},anchor=north west},scaled x ticks = false,x tick label style={/pgf/number format/1000 sep = \thinspace}]
1.2083 +=major,mark size=1.2pt, legend style={at={(0,1)},anchor=north
1.2084 + west},scaled x ticks = false,x tick label style={/pgf/number
1.2085 + format/1000 sep = \thinspace}]
1.2086 %\addplot+[only marks] table {proteinsOrig.txt};
1.2087 \addplot table {randGraph/ind/vf2pInd35_0.95.txt};
1.2088 -\addplot[mark=triangle*,mark size=1.8pt,color=red] table {randGraph/ind/vf2ppInd35_0.95.txt};
1.2089 +\addplot[mark=triangle*,mark size=1.8pt,color=red] table
1.2090 + {randGraph/ind/vf2ppInd35_0.95.txt};
1.2091 \end{axis}
1.2092 \end{tikzpicture}
1.2093 \end{subfigure}
1.2094 \vspace*{-0.8cm}
1.2095 -\caption{IND on graphs having an average degree of 35.}\label{fig:randIND35}
1.2096 +\caption{IND on graphs having an average degree of
1.2097 + 35.}\label{fig:randIND35}
1.2098 \end{figure}
1.2099
1.2100 \begin{figure}[H]
1.2101 \begin{center}
1.2102 \begin{tikzpicture}
1.2103 \begin{axis}[title={Rand IND Summary, $\delta = 35$, $\rho = 0.3, 0.6, 0.8, 0.95$},height=17cm,width=16cm,xlabel={target size},ylabel={time (ms)},legend entries={VF2 Plus,VF2++},line width=0.8pt,grid
1.2104 -=major,mark size=1pt, legend style={at={(0,1)},anchor=north west},scaled x ticks = false,x tick label style={/pgf/number format/1000 sep = \thinspace}]
1.2105 +=major,mark size=1pt, legend style={at={(0,1)},anchor=north
1.2106 + west},scaled x ticks = false,x tick label style={/pgf/number
1.2107 + format/1000 sep = \thinspace}]
1.2108 %\addplot+[only marks] table {proteinsOrig.txt};
1.2109 -\addplot[mark=*,mark size=1.5pt,color=blue] table {randGraph/ind/vf2pInd35_0.3.txt};
1.2110 -\addplot[mark=triangle*,mark size=1.8pt,color=red] table {randGraph/ind/vf2ppInd35_0.3.txt};
1.2111 -\addplot[mark=*,mark size=1.5pt,color=blue] table {randGraph/ind/vf2pInd35_0.6.txt};
1.2112 -\addplot[mark=triangle*,mark size=1.8pt,color=red] table {randGraph/ind/vf2ppInd35_0.6.txt};
1.2113 -\addplot[mark=*,mark size=1.5pt,color=blue] table {randGraph/ind/vf2pInd35_0.8.txt};
1.2114 -\addplot[mark=triangle*,mark size=1.8pt,color=red] table {randGraph/ind/vf2ppInd35_0.8.txt};
1.2115 -\addplot[mark=*,mark size=1.5pt,color=blue] table {randGraph/ind/vf2pInd35_0.95.txt};
1.2116 -\addplot[mark=triangle*,mark size=1.8pt,color=red] table {randGraph/ind/vf2ppInd35_0.95.txt};
1.2117 +\addplot[mark=*,mark size=1.5pt,color=blue] table
1.2118 + {randGraph/ind/vf2pInd35_0.3.txt};
1.2119 + \addplot[mark=triangle*,mark size=1.8pt,color=red] table
1.2120 + {randGraph/ind/vf2ppInd35_0.3.txt};
1.2121 + \addplot[mark=*,mark size=1.5pt,color=blue] table
1.2122 + {randGraph/ind/vf2pInd35_0.6.txt};
1.2123 + \addplot[mark=triangle*,mark
1.2124 + size=1.8pt,color=red] table
1.2125 + {randGraph/ind/vf2ppInd35_0.6.txt};
1.2126 + \addplot[mark=*,mark
1.2127 + size=1.5pt,color=blue] table
1.2128 + {randGraph/ind/vf2pInd35_0.8.txt};
1.2129 + \addplot[mark=triangle*,mark
1.2130 + size=1.8pt,color=red] table
1.2131 + {randGraph/ind/vf2ppInd35_0.8.txt};
1.2132 + \addplot[mark=*,mark
1.2133 + size=1.5pt,color=blue]
1.2134 + table
1.2135 + {randGraph/ind/vf2pInd35_0.95.txt};
1.2136 + \addplot[mark=triangle*,mark
1.2137 + size=1.8pt,color=red]
1.2138 + table
1.2139 + {randGraph/ind/vf2ppInd35_0.95.txt};
1.2140 \end{axis}
1.2141 \end{tikzpicture}
1.2142 \end{center}
1.2143 @@ -1351,23 +1966,46 @@
1.2144 \caption{Cummulative chart for $\delta=35$.}\label{fig:randIND35Sum}
1.2145 \end{figure}
1.2146
1.2147 -Based on these experiments, VF2++ is faster than VF2 Plus and able to handle really large graphs in milliseconds. Note that when $IND$ was considered and the small graphs had proportionally few nodes ($\rho = 0.05$, or $\rho = 0.1$), then VF2 Plus produced some inefficient node orders(e.g. see the $\delta=10$ case on \textbf{Figure \ref{fig:randIND10})}). If these examples had been excluded, the charts would have seemed to be similar to the other ones.
1.2148 -Unsurprisingly, as denser graphs are considered, both VF2++ and VF2 Plus slow slightly down, but remain practically usable even on graphs having 10 000 nodes.
1.2149 +Based on these experiments, VF2++ is faster than VF2 Plus and able to
1.2150 +handle really large graphs in milliseconds. Note that when $IND$ was
1.2151 +considered and the small graphs had proportionally few nodes ($\rho =
1.2152 +0.05$, or $\rho = 0.1$), then VF2 Plus produced some inefficient node
1.2153 +orders(e.g. see the $\delta=10$ case on \textbf{Figure
1.2154 + \ref{fig:randIND10})}). If these examples had been excluded, the
1.2155 +charts would have seemed to be similar to the other ones.
1.2156 +Unsurprisingly, as denser graphs are considered, both VF2++ and VF2
1.2157 +Plus slow slightly down, but remain practically usable even on graphs
1.2158 +having 10 000 nodes.
1.2159
1.2160
1.2161
1.2162
1.2163 -\newpage
1.2164 +
1.2165 \section{Conclusion}
1.2166 -In this thesis, after providing a short summary of the recent algorithms, a new graph matching algorithm based on VF2, called VF2++, has been presented and analyzed from a practical viewpoint.
1.2167 +In this paper, after providing a short summary of the recent
1.2168 +algorithms, a new graph matching algorithm based on VF2, called VF2++,
1.2169 +has been presented and analyzed from a practical viewpoint.
1.2170
1.2171 -Recognizing the importance of the node order and determining an efficient one, VF2++ is able to match graphs of thousands of nodes in near practically linear time including preprocessing. In addition to the proper order, VF2++ uses more efficient consistency and cutting rules which are easy to compute and make the algorithm able to prune most of the unfruitful branches without going astray.
1.2172 +Recognizing the importance of the node order and determining an
1.2173 +efficient one, VF2++ is able to match graphs of thousands of nodes in
1.2174 +near practically linear time including preprocessing. In addition to
1.2175 +the proper order, VF2++ uses more efficient consistency and cutting
1.2176 +rules which are easy to compute and make the algorithm able to prune
1.2177 +most of the unfruitful branches without going astray.
1.2178
1.2179 -In order to show the efficiency of the new method, it has been compared to VF2 Plus, which is the best concurrent algorithm based on \cite{VF2Plus}.
1.2180 +In order to show the efficiency of the new method, it has been
1.2181 +compared to VF2 Plus, which is the best concurrent algorithm based on
1.2182 +\cite{VF2Plus}.
1.2183
1.2184 -The experiments show that VF2++ consistently outperforms VF2 Plus on biological graphs. It seems to be asymptotically faster on protein and on contact map graphs in the case of induced subgraph isomorphism, while in the case of graph isomorphism, it has definitely better asymptotic behaviour on protein graphs.
1.2185 +The experiments show that VF2++ consistently outperforms VF2 Plus on
1.2186 +biological graphs. It seems to be asymptotically faster on protein and
1.2187 +on contact map graphs in the case of induced subgraph isomorphism,
1.2188 +while in the case of graph isomorphism, it has definitely better
1.2189 +asymptotic behaviour on protein graphs.
1.2190
1.2191 -Regarding random sparse graphs, not only has VF2++ proved itself to be faster than VF2 Plus, but it has a practically linear behaviour both in the case of induced subgraph- and graph isomorphism, as well.
1.2192 +Regarding random sparse graphs, not only has VF2++ proved itself to be
1.2193 +faster than VF2 Plus, but it has a practically linear behaviour both
1.2194 +in the case of induced subgraph- and graph isomorphism, as well.
1.2195
1.2196
1.2197
1.2198 @@ -1381,8 +2019,7 @@
1.2199 %% If you have bibdatabase file and want bibtex to generate the
1.2200 %% bibitems, please use
1.2201 %%
1.2202 -\bibliographystyle{elsarticle-num}
1.2203 -\bibliography{bibliography}
1.2204 +\bibliographystyle{elsarticle-num} \bibliography{bibliography}
1.2205
1.2206 %% else use the following coding to input the bibitems directly in the
1.2207 %% TeX file.