 Methodology article
 Open Access
 Published:
GRAPESDD: exploiting decision diagrams for indexdriven search in biological graph databases
BMC Bioinformatics volume 22, Article number: 209 (2021)
Abstract
Background
Graphs are mathematical structures widely used for expressing relationships among elements when representing biomedical and biological information. On top of these representations, several analyses are performed. A common task is the search of one substructure within one graph, called target. The problem is referred to as onetoone subgraph search, and it is known to be NPcomplete. Heuristics and indexing techniques can be applied to facilitate the search. Indexing techniques are also exploited in the context of searching in a collection of target graphs, referred to as onetomany subgraph problem. Filterandverification methods that use indexing approaches provide a fast pruning of target graphs or parts of them that do not contain the query. The expensive verification phase is then performed only on the subset of promising targets. Indexing strategies extract graph features at a sufficient granularity level for performing a powerful filtering step. Features are memorized in data structures allowing an efficient access. Indexing size, querying time and filtering power are key points for the development of efficient subgraph searching solutions.
Results
An existing approach, GRAPES, has been shown to have good performance in terms of speedup for both onetoone and onetomany cases. However, it suffers in the size of the built index. For this reason, we propose GRAPESDD, a modified version of GRAPES in which the indexing structure has been replaced with a Decision Diagram. Decision Diagrams are a broad class of data structures widely used to encode and manipulate functions efficiently. Experiments on biomedical structures and synthetic graphs have confirmed our expectation showing that GRAPESDD has substantially reduced the memory utilization compared to GRAPES without worsening the searching time.
Conclusion
The use of Decision Diagrams for searching in biochemical and biological graphs is completely new and potentially promising thanks to their ability to encode compactly sets by exploiting their structure and regularity, and to manipulate entire sets of elements at once, instead of exploring each single element explicitly. Search strategies based on Decision Diagram makes the indexing for biochemical graphs, and not only, more affordable allowing us to potentially deal with huge and ever growing collections of biochemical and biological structures.
Introduction
Graphs are a wellknown mathematical structure used to encode relationships among elements of a set. They are employed in the representation of many biochemical systems at various levels from molecular representation [1], to proteinprotein or RNAmate interaction networks [2, 3] including also disease characterization [4]. The search for substructures, also called subgraphs, in biochemical systems is widely involved in many bioinformatic approaches as well as in the field of computational chemistry. Subgraph searching is a preliminary step in finding motifs in biological networks [5,6,7]. Network motifs are statistically overrepresented substructures. They are building blocks of complex networks [8]. Several types of motifs have been discovered [9] such as the feedforward loops that define patterns in gene regulatory networks [10]. Detection of motifs is a computationally challenging problem which requires the exhaustive search of subgraphs within a given network. Subgraph searching is also applied for tuning model parameters in biomolecular simulations [11]. In this context, graphbased representation of molecules facilitates the searching of fragments in large collections of molecules. Reliable model parameters are estimated based on the frequency of retrieved fragments. Moreover, collections of metabolic networks are queried in order to identify conserved pathways [12]. Because of the complexity of the querying task, many approaches limit the search to simple structures such as paths or small subgraphs [13]. Subgraph searching is also applied for biological network alignment, that is a powerful instrument for predicting functionalities of newly discovered elements [14]. Alignment can exploit the search of small subgraphs, also called seeds, within the set of networks that have to be aligned, in order to reduce the computational time requirements [15]. Other alignment tools, such as RINQ [16], use indexing schemes. Indexbased strategy drives the alignment process to specific portion of the graphs and avoids expensive computations. Subgraph searching is also a baseline procedure in biomedical database systems^{Footnote 1} consisting of genes, compounds, diseases, symptoms, side effects and annotations, integrated in networks. The networks are queried in order to prioritize genedisease associations [17] or for drug repurposing studies [18]. However, querying biological networks is a challenging task which, in many cases, increases its complexity with the query size [19].
The subgraph searching problem consists in finding a query graph within a target graph. It is a wellstudied computational problem which is known to be NPcomplete [20]. A generalization of such formulation considers more than one target graph. This is typically referred to as onetomany in contrast to the original formulation that is referred to as onetoone. Techniques for solving the onetoone problem are mainly based on heuristics to speedup the searching of a mapping function. Instead, the main efforts for solving the onetomany problem are focused on developing a good filtering strategy for discarding target graphs belonging to the collection that do not contain the query graph. In particular, the most effective methodology for filtering strategy is the creation of an index in which features of the target graphs are stored. Then, when searching for a specific query graph, the target graphs are filtered by comparing the features of the query to those of the target graphs via the index. Thus, indexes are aimed at providing a very compact representation of the set of features and their correspondence to the target graphs. Performance in terms of construction time, size, querying time and filtering power are key concepts for their development. Such a performance is strictly related to the type of feature that is taken into account.
In details onetoone approaches can be divided in two categories: pure subgraph isomorphism and assisted solvers. The first category is composed by algorithms that are focused on improving the performances of the combinatorial search by exploiting heuristic methods for pruning the search space, such as VF2 [21] and VF3 [22], or by changing the order in which query vertices are matched, such as RI [23]. The second category comprises algorithms able to efficiently reduce the number of target vertices that are candidate to match with query vertices. This reduction is obtained by indexing the target graph and by comparing the features assigned to target vertices with those of the query vertices. Indexing means that a predefined type of features are extracted from the graph and they are stored in a data structure in order to recognize in which parts of the graph, or in which graphs of a collection, a given feature occurs. Once candidates are retrieved, this information is also used for generating a quasioptimal ordering of the query vertices. In this perspective, GraphQL [24] uses a pseudo subgraph isomorphism test, while TurboISO [25] exploits a treestructured auxiliary index, and CSL [26] postpones Cartesian products with a matching order that prioritizes the query vertices in the core structure, similar to RI.
Onetomany approaches can be differentiated by the type of features they take into account (e.g. paths, trees, cycles or subgraphs) and how they extract them. GraphGrep [27], GraphGrepSX [28], GRAPES [29] and SING [30] extract paths by indexed graphs with simple enumeration procedures, but they differ in the type of data structure and additional information they use. Simple enumeration is also used by CTIndex [31] for extracting trees and cycles, and by GDIndex [32] and GCode [33] for extracting subgraphs. On the contrary, miningbased algorithms recognize frequent features with ad hoc procedures. SwiftIndex [34] and TreePi [35] extract frequent trees, as well as Tree+Delta [36] which also retrieves frequent substructures. Mining of subgraph is also performed by CPindex [37], gIndex [38], FGIndex [39] and Lindex+ [40]. Alternatively, signatures based on the pairs of vertex labels of the graphs can be exploited [41]. Miningbased approaches require high amount of time because of the mining step, however they are able to build more compact indexes with respect to the approaches based on the exhaustive enumeration.
In recent years, onetoone approaches have reached a high performance. In many cases, they outperform the indexing methodologies of onetomany approaches by simply scanning all the target graphs in a collection. However, when the number of graphs in the collection is relatively high, or when the target graphs have relatively large size, indexing techniques are still predominant, and hybrid approaches are investigated [42]. In [43], authors proposed an algorithm for the onetomany problem which exploits a technique that it is usually embedded in onetoone approaches, such as GraphQL, TurboIso and CFL. The technique consists in a preprocessing step for detecting the set of target vertices that are most probable to be matched with a given query vertices by looking at their connectivity. Authors have equipped the verification phase of GraphGrepSX, GRAPES and CTIndex with such a technique showing that modified onetomany algorithm, in particular GRAPES, sensibly outperform GraphQL, TurboIso and CFL for the verification step. However, such a modification is added up to the original indexing techniques of the algorithms, thus it only helps in increasing the filtering power but it does not solve problems linked to the size and build time of the original index. Similar considerations can be done for cacheassisted frameworks [44, 45]. In this perspective, compression of the index plays a central role for both onetoone and onetomany approaches [46, 47].
A performance study [48] finds that indexbased approaches have several issues in building indices on large graph databases in terms of number of distinct labels, number of vertices in data graphs, density of target graphs and number of target graphs due to their poor time and space efficiency of index construction. Among the tested algorithms, GRAPES showed the best performance in terms of running time. However, its index requires a relatively high memory amount compared to the other approaches. GRAPES is implemented both as sequential and parallel software using symmetric multiprocessing (SMP) architectures. In addition, GRAPES was developed for achieving good performance in collection of graphs as well as in scanning a query over a single large target graph. For these reasons, we decided to improve the performance of the sequential version of GRAPES by reducing the memory required for its index. We investigated the use of decision diagrams for reaching the goal without degrading the running time of the algorithm. Synthetic graphs were engaged for evaluating the performance of the modified version. In addition, a well established collection of biochemical graphs have been used for testing. Results show that the modified version, called GRAPESDD, can reduce the size of the index of a factor of five orders of magnitude. The reduced index size helps the algorithm in optimizing accesses to primary memory, and as a result it can speed the building time of GRAPESDD up with respect to the original algorithm in the same situations. GRAPESDD is available at the following online repositories https://github.com/qBioTurin/grapesdd and https://github.com/InfOmics/grapesdd.
Background
Pathbased graph indexing
Graph indexing strategies based on labelled paths consist in extracting all the paths in the graphs up to a given length (number of nodes which they are composed) and compactly storing them into a data structure [27, 28, 49, 50]. These techniques show good performance in terms of filtering power and construction/querying time. However, the size of the index is still a major problem with these approaches.
In what follows, we describe one of these techniques, called GRAPES [29]. GRAPES is the base methodology used here to apply MTMDDs (MultiTerminal Multiway Decision Diagram) to graph indexing.
GRAPES indexing
GRAPES [29] provides one of the most recent implementation of pathbased graph indexing. It searches a query graph in one or more target graphs. For each path of the target graphs, GRAPES stores the identification of its starting vertices and the number of its occurrences in each graph. During searching phase, paths are extracted from the query graph and searched in the index. By comparing the ordered sequence of labels and the count of the occurrences, GRAPES effectively filters out target graphs which do not contain the query graph.
Formally, a path in a graph is an ordered sequence of vertices such that each vertex is connected with the next vertex by an edge. Thus, given a graph \(G = (V,E)\), where \(E:V\times V\), a path p of length l is a vector \((v^p_1, v^p_2, \dots , v^p_l)\) such that \(v^p_i \in V\), for \(1 \le i \le l\), and \((v^p_i,v^p_{i+1}) \in E\), for \(1 \le i < l\). Given a set of labels \(\Sigma\), a graph is labelled via a function \(f_{\sigma }:\Sigma \mapsto V\) which maps each vertex to a label in \(\Sigma\). The same label can be associated with different vertices. A labelled path \({\hat{p}}\) is obtained by mapping the vertices of a path to their corresponding labels via the \(f_\sigma\) function, thus \({\hat{p}} = (f_\sigma (v^p_1),f_\sigma (v^p_2),\dots ,f_\sigma (v^p_l) ) = (\sigma ^p_1,\sigma ^p_2,\dots ,\sigma ^p_l)\). In GRAPES labelled paths are stored in a trie, a tree structure which compacts paths by their longest common prefixes. Given two labelled paths, \({\hat{p}}=(\sigma ^p_1,\sigma ^p_2,\dots ,\sigma ^p_l)\) and \({\hat{q}}=(\sigma ^q_1,\sigma ^q_2,\dots ,\sigma ^q_l)\), that share the first i labels, \((\sigma ^p_1,\sigma ^p_2,\dots ,\sigma ^p_i) = (\sigma ^q_1,\sigma ^q_2,\dots ,\sigma ^q_i)\), a branch, starting from the root of the tree, is built in order to represent the shared part of the paths. Then, the branch is split into two different branches that represent the non shared suffixes of the paths, \((\sigma ^p_{i+1},\dots ,\sigma ^p_l)\) and \((\sigma ^q_{i+1},\dots ,\sigma ^q_l)\). Information regarding the starting vertices, \(v^p_1\) and \(v^q_1\), is stored on the corresponding leaves of the branches, as well as the number of time each path occurs in each target graph. If only paths of the same length were extracted, the information would reside only on the leaves of the trie. By considering paths of variable length up to a maximum length \(l_p\), the information also resides on intermediate nodes of the trie.
GRAPES filtering and verification
During querying phase, labelled paths are extracted from the query. Similarly to the extraction of paths from target graphs, for each path the number of times it occurs in the query graph is retrieved. Initially, all the target graphs are candidates to contain the query graph. Query paths are searched in the index in order to recognize the target graphs that contain the same paths of the query. For each path, the number of occurrences within the target graph must be equal or exceed the number of its occurrences in the query graph. By using the starting nodes of the paths stored in the index, the initial structures of target graphs are skimmed in order to extract only the vertices that are the starting point of paths in the query graph. Thus, the filtering procedure produces two different results, a list of graphs that may contain the query (since each selected graph contains the same labelled path of the query with the same amount), and for each selected graph the list of vertices that are candidate to match with the query vertices. The verification phase is performed with the VF2 algorithm [21] which solves the subgraph isomorphism problem. The problem of searching a query graph within a target graph consists in finding a mapping between the vertices of the query and target graphs such that constraints are satisfied. Constraints regard the compatibility of labels assigned to the vertices and the existence of the query edges between the corresponding querytarget mapped vertices.
Decision diagrams
Decision diagrams (DDs) are a broad class of data structures widely used to encode and manipulate functions efficiently [51]. Initially, they were proposed for industrial hardware verification due to their ability of encoding complex Boolean functions on very large domains. Then, they were successfully applied in different research fields ranging from the network reliability analysis [52] to the performance evaluation of stochastic systems [53]. In these contexts, DDs have proven to be an effective tool (1) to encode compactly structured sets by exploiting their structure and regularity; (2) to manipulate entire sets of elements at once, instead of exploring each single element explicitly.
In this paper we will focus on a specific type of decision diagram, which is called MultiTerminal Multiway Decision Diagram (MTMDD). Formally, an MTMDD is a rooted, directed, acyclic graph representing a function \(f: \mathrm{I\!N}_{x_1} \times \dots \times \mathrm{I\!N}_{x_K} \rightarrow {\mathcal {R}}\) over a set of variables \(\{x_1, \dots , x_K\}\), where \(\mathrm{I\!N}_{x_k} \subset {\mathbb {N}}\) is the finite set of values that variable \(x_k\) can assume, and \({\mathcal {R}} \subset {\mathbb {N}}\) is the finite set of possible function values [54]. An MTMDD node can be either terminal or nonterminal. A terminal node has no outgoing edges and is labeled with a constant \(n \in {\mathcal {R}}\). A nonterminal node m is labeled with a variable \(var(m) \in \{x_1, .. x_K\}\) and has exactly \(N_{var(m)} = \mathrm{I\!N}_{var(m)}\) outgoing edges pointing to its children nodes. We refer to the ith child of node m as child(m, i), with \(0 \le i < N_{var(m)}\). The evaluation of the function represented by a given MTMDD, for a given assignment of its variables, can be determined by tracing a path from the root to one of the terminal nodes.
A simple example of MTMDD is reported in Fig. 1a. This MTMDD encodes the function counting the occurrences of an element into a multiset S^{Footnote 2} where each element is described by a tuple \((x_1, x_2, x_3, x_4)\) with \(x_1 \in \{0,1\}\), \(x_2 \in \{0,1,2\}\), \(x_3 \in \{0,1,2,3\}\) and \(x_4 \in \{0,1,2,3\}\). Thus, the MTMDD path from the root assuming \(x_4 = 2, x_3 = 3, x_2 = 0, x_1 = 1\) and leading to terminal node 3 means that the element (1, 0, 3, 2) has three occurrences in the multiset S.
An MTMDD is denoted ordered MTMDD (OMTMDD) when a total order is defined on its variables (i.e., \(x_l \succ x_k \Leftrightarrow l> k\)) such that every path through the MTMDD visits nodes according to this ordering. It is important to notice that the choice of the ordering for the variables of an MTMDD can strongly affect the size of the MTMDD, i.e. its number of nodes. Unluckily, finding the optimal variable ordering is known to be a NPcomplete problem [55]. As a consequence, the efficiency of application based on decision diagram data structures is strongly dependent on the development of domainspecific heuristics to select a good ordering. The MTMDD depicted in Figure 1(a) is hence an OMTMDD with the following variable ordering: \(x_4 \succ x_3 \succ x_2 \succ x_1\).
Different reduction rules have been proposed to reduce significantly the number of nodes of the MTMDD without affecting the represented function. An OMTMDD is called reduced (ROMTMDD) if it contains neither redundant nor duplicated nodes. A redundant node is a nonterminal node m having all its children identical; i.e. \(child(m, i) = child(m, j)\) for all \(i, j \in \mathrm{I\!N}_{var(m)}\). As a consequence, the value of the function does not depend on the value of that variable. Duplicate nodes are two nonterminal nodes \(m_1\) and \(m_2\) labeled with the same variable and with identical children; i.e. \(var(m_1) = var(m_2) \wedge child(m_1, i) = child(m_2, i)\) for all \(i \in \mathrm{I\!N}_{var(m_1)}\).
In Fig. 1a the nodes p and q, colored in cyan, are an example of duplicate nodes, while r and s are an example of redundant ones. The corresponding ROMTDDD (i.e. without redundant and duplicated nodes) is instead reported in Fig. 1b. For sake of clarity, it is common to explicitly represent only those paths ending to the terminal nodes different from zero.
A common variation of the above reduction rule is to allow redundant nodes but no duplicate nodes. An OMTMDD is called quasireduced (QROMTMDD) if it contains no duplicate nodes and if all paths from the root node to a terminal node visit exactly one node for each variable. In Fig. 1c the quasireduced version of the OMTMDD in Fig. 1a is depicted.
Many DD packages implement the reductions stated above storing all the DDs in a single, multirooted graph structure, known as uniquetable [56], where no two nodes are duplicated. In order to simplify, from this point on we shall refer to OMTMDD, ROMTMDD and QROMTMDD, simply as MTMDD.
MTMDDs can be manipulated applying the arithmetic operators (e.g. addition, multiplication, ...). Let \(d_1\) and \(d_2\) be two MTMDDs over the same domain, representing the functions \(f_1\) and \(f_2\), respectively, and let \(\diamond\) be a generic binary operator. Then, the result of the \(d_1 \diamond d_2\) operation is an MTMDD which encodes the function \(f_1 \diamond f_2\). For instance, the multiplication between \(d_1\) and \(d_2\) results in an MTMDD such that the terminal node corresponding to the variable assignment \(x_1, x_2, \dots , x_K\) is given by \(f_1(x_1,\dots ,x_K)\cdot f_2(x_1,\dots ,x_K)\). The implementation of such operators is based on a recursive descent of the data structure and exploits a computedtable [56] to cache the result of each intermediate call to the algorithm. Figure 2 depicts the result of a multiplication between two MTMDDs. Only those variable assignments associated with value different from zero in both the factor MTMDD are reported, because the other assignments are linked to zero.
In the literature different software libraries implementing decision diagrams were proposed, such as CUDD [57], LibDDD [58] and Meddly [59]. In this work, we chose to use Meddly because of its efficiency and its ease of use. In fact, it provides a simple interface in which the complex aspects of using DDs (e.g. caching and garbage collection, ...) are automatically handled. Meddly, short for Multiway and Edgevalued Decision Diagram LibrarY, is an opensource software library supporting natively MTMDDs, as well as a number of other types of DDs such as Binary Decision Diagrams, Matrix Diagrams and EdgeValued MDDs. All DDs represented in Meddly are ordered and without duplicates. In Meddly, a named collection of decision diagrams associated with the same domain is called a forest. Within a forest, Meddly automatically removes duplicate nodes by means of a unique table, imposes reduction rules and handles memory management of the nodes.
Meddly provides two different user interfaces: a basic interface which provides the basic operators to easily create and manipulate DDs, and an expert interface which allows user to extend the existent operators and/or to integrate new ones. In this work, we implemented our tool by taking advantage of the basic interface of Meddly; in particular the following operators were exploited:

createEdge() creates a new DD in the given forest by explicitly stating the return values for a set of variable assignments. Unspecified assignments are assumed to return a default value, which depends on the forest type (usually it is 0). For example, given the forest F and some variable assignments \(Y=(y_1,\dots ,y_k)\), \(W=(w_1,\dots ,w_k)\) and \(Z=(z_1,\dots ,z_k)\), a call to F.createEdge(Y, W, Z, a, b, c) creates a new DD within F representing the function
$$\begin{aligned} f(x_1,\dots ,x_k) = {\left\{ \begin{array}{ll} a &{} \text{ if } x_1=y_1 \wedge \dots \wedge x_k=y_k \\ b &{} \text{ if } x_1=w_1 \wedge \dots \wedge x_k=w_k \\ c &{} \text{ if } x_1=z_1 \wedge \dots \wedge x_k=z_k \\ 0 &{} \text{ otherwise } \end{array}\right. } \end{aligned}$$ 
evaluate() determines the value of the function represented by the DD for a given assignment of its variables. Then, the call dd.evaluate(\(x_1,\dots ,x_k\)) returns the terminal value linked to the path \(x_1,\dots ,x_k\) of the decision diagram dd.

apply() is used to manipulate DD applying on it a specific DD operator. Meddly supports both unary and binary operators and imposes that operands of binary operators must have the same domain, but they can live in different forests.
Methods
GRAPES uses a trie, also known as prefix tree, to store the indexed graphs, since it provides a compact representation of a set of strings by taking advantage of their common prefixes, considerably reducing the data redundancy. In fact, a labeled path \((\sigma _1\sigma _2\dots \sigma _l)\) may be represented as a string \(f_e(\sigma _1)f_e(\sigma _2)\dots f_e(\sigma _l)\) where \(f_e:\Sigma \rightarrow {\mathbb {N}}\) is the mapping function from labels to the natural numbers.
Nevertheless, the tree structure of a trie (i.e. only a single edge can point to a node) makes it hard to exploit other types of symmetries present in the indexed graphs, as for instance the sharing of the same starting vertices and/or same relative occurrence number, as well as the sharing of common substrings which are not prefixes.
To deal with these aspects, in this work we propose to encode the indexed graphs into a DD, specifically an MTMDD: a trie generalization in which the requirement to have a tree structure is relaxed allowing multiple arcs to point to the same node. The main advantage of this is a potentially more compact representation due to the MTMDD ability to better exploit the regular structure of the data, such as common substrings present in the indexed graph paths. This allows the proposed methodology not only to reduce the memory utilization required to build and store the index, but also to reduce the time required for the pruning phase.
The GRAPESDD workflow is reported in Fig. 3. The workflow is composed by two main phases: (1) the index building phase in which an MTMDD indexing the collection of target graphs is created, and (2) the filtering phase in which, given a query graph, the set of target graphs is potentially restricted to those subgraphs probably containing the query. The GRAPESDD verification phase remains as in the original version of the software (see Sect. 2.1.2 and [29] for details).
Index building phase
The index building phase takes as input a collection of target graphs \({{\mathbb {G}}^t = \{ G^t_1, G^t_2, \dots , G^t_n\}}\) and the maximum path length \(l_p\) and returns as output an MTMDD that maps each path to the total number of times it appears in the graph for a specific input vertex. We will refer to this MTMDD as index MTMDD.
In details, the first level of the index MTMDD stores the identification of the vertices of the indexed graphs. Then, the labelled paths are stored from the second to the last level of the MTMDD, one label per level starting from the first label of the path. Finally, the total occurrence number of the labelled paths in each indexed graph resides on the terminal nodes of the MTMDD.
An example of such a data structure is reported in Fig. 3b. This MTMDD is created considering the three target graphs, \(G_1\), \(G_2\) and \(G_3\) in Fig. 3a and \(l_p=3\). Since in the first level of the MTMDD all the vertices of the target graphs are enumerated, its domain is [1, 15]. Then, for each vertex in \(G^t_i\) all the labelled paths up to length 3 starting from it are added in the MTMDD. Special nodes, namely unlabelled nodes and colored gray in Fig. 3b, are introduced to deal with labelled paths having length smaller than \(l_p\). This is needed because MTMDDs cannot directly encode paths with different lengths.
Practically, the index MTMDD is created in an incremental manner, processing one graph at the time. Thus, the vertices of each graph are initially grouped based on their labels. For each of these groups, all the labelled paths containing up to \(l_p\) vertices are retrieved by depthlimited search on the graph. These paths are stored temporally in a trie to efficiently count the occurrence of each labelled path in \(G^t_i\). Before considering a new group, the trie is explored to create the corresponding MTMDD using the createEdge operator of Meddly and then is discarded. The created MTMDD is merged to the index MTMDD using the apply function with operator addition. Once the building phase is over, the MTMDD index is stored into a textual file.
Figure 4 shows the building steps for the target graph \(G_1\) with \(l_p=3\). The vertices of \(G_1\) are indeed divided into four groups (i.e. \(\{1,5\}\), \(\{2,3\}\), \(\{4\}\) and \(\{6\}\)) depending on their label. For each group the corresponding temporary trie and MTMDD are reported. The original GRAPES index is the union of the tries shown in Fig. 4. Thus, it contains the root node and 25 (\(9+8+4+4\)) nodes representing labelled paths, plus 13 nodes for storing the occurrences count, 13 nodes for storing the ids of the starting vertices in correspondence of each path, for a total of 51 nodes. On the contrary, the final MTMDD structure contains a single node storing all the six vertices ids, 13 nodes for the labelled paths and one node for the occurrence count, for a total of 15 nodes. In addition, the trie stores 39 links between its nodes, while the MTMDD stores 23 links.
Filtering phase
The filtering phase takes as input the index MTMDD and a query graph \(G^q\) that has to be searched within the graph collection. As output, the filtering phase provides for each graph the list of candidate vertices to match the query. Therefore, only these vertices will be subsequently tested using the subgraph isomorphism algorithm.
The algorithm initially builds the query MTMDD to represent the query graph through the use of its features (i.e. paths), which is shown in Fig. 3d. The vertices of the query graph are not represented in the corresponding MTMDD. The first level of such MTMDD contains all the vertex ids of \(G^t_i\), meaning that initially each vertex of \(G^t_i\) is candidate to match any path of \(G^q\).
The multiplication operator (using the apply function) is applied between the index and the query MTMDDs, in order to extract from the index the information about the vertices really involved in the current query. We called pruned MTMDD the result of such multiplication, which is depicted in Fig. 3e. We see that only the subgraph composed by the vertices {1,2,6} is kept from \(G_1\), \(G_2\) is entirely kept and \(G_3\) is totally discarded because it does not contain any feature in \(G^q\).
The set of candidate vertices obtained is then filtered to keep only those graphs whose vertices satisfy the constraints imposed by the query. For each vertex \(v_q\) of the query and a potentially matching vertex v of a target graph \(G_i\), the algorithm verifies that (1) any path starting from \(v_q\) also starts from v and that (2) the occurrence number of each path in the target graph is not less than the occurrence number of the same path in the query graph. Figure 3 shows that the graph \(G_1\) is filtered out because the occurrence number of its features are not sufficient to satisfy the constraint imposed by \(G^q\), while all the vertices of \(G_2\) passed the filtering phase.
Finally, for each vertex of the query, the algorithm reports the list of the matchable vertices of the indexed graphs passing the pruning phase. The overall effect is that the algorithm extracts from the graph collection all the maximally connected components composed only by the vertices involved in the query graph. Over these components, the GRAPES subgraph isomorphism algorithm can be executed to find all the occurrences of the query graph [29].
Results
Datasets description
For this study, we considered six different types of graphs. Four of them are real graphs widely used as a benchmarks in the fields of bioinformatics and computational chemistry, the others are synthetically generated by means of the Barabasi–Albert’s and the ForestFire models. the choice of such two synthetic models has been taken according to their properties of the topologies to be similar the graphs used in biological databases. Differently from collections of real graphs, synthetic topologies allow us to investigate the performance of compared methods in relation to the parameters of such models, and thus to the properties of the produced topologies.
Biochemical structures
The collection of biochemical graphs was initially used for evaluating the performance of onetoone subgraph isomorphism algorithms [60], and, nowadays, it is a wellestablished benchmark for graph theory problems linked to the subgraph isomorphism [61]. These four datasets that compose the collection are described in what follows.
AIDS is the standard database for Antiviral Screen [62], and it consists of 40k chemical structures representing small molecules. Vertices are atoms and edge are the chemical bounds linking them. Vertices are labelled by the atomic element they represent, and there are a total of 62 distinct elements. The average number of vertices per graph is 44.98, and the average degree is 4.17.
PDBS is a benchmark composed of 600 target graphs representing the topological structure of proteins [63, 64]. Vertices are the atoms and edges are chemiophysical bounds between them. These graphs have up to 16,431 vertices and 33,562 edges, with an average degree over the whole dataset equal to 4.27. There are a total of 10 unique labels, corresponding to the atomic types.
PCM is composed of threedimensional structures of protein, called protein contact maps [65]. Vertices represent the amino acids of a protein and edges informs about the spatial proximity of amino acids. The dataset contains 200 target graphs having up to 883 vertices and 18,832 edges, with an average of 376 vertices per graph and 44.78 edges per vertex. There are a total of 21 labels of which 18 appears on average in each graph.
PPI is a dataset of 20 proteinprotein interaction target graphs of 5 different species: Caenorhabditis elegants, Drosophila melanogaster, Mus musculus, Saccaromyces cerevisae and Homo sapiens [66]. Vertices are proteins and edges are predicted physical interactions between them. For each species, different thresholds on the accurateness of the prediction were applied, ranging from 0.4, 0.5, 0.6–0.7. Vertices are labelled according to their functional category, for a total of 45 distinct categories. The dataset contains graphs up to 10,186 vertices and 179,348 edges, an average degree of 18.46 and an average number of distinct labels per graph equal to 28.45.
For all of the biochemical datasets, queries were extracted from the target graphs by fixing the desired number of edges, from 4, 8, 18–32, and such that the topological structure of the extracted graph reflects the properties of the graph of origin.
Synthetic graphs
The BarabasiAlbert’s model is able to reproduce a graph with an observed stationary scalefree distribution, which reflects many of the structures that can be encountered in nature [67]. Starting from an initial set of vertices, \(m_0\), the model inserts one vertex at time to the graph. At each insertion, new edges are added in order to connect the new vertex with existing ones. The probability of an edge with vertex i is \(p_i = k_i^{\alpha }\), where k is the vertex degree and \(\alpha\) is a user defined parameter. The benchmark contains 384 target graphs which were generated by fixing a desired number of vertices and average degree. Generated graphs have 200, 500, 1k, 5k, 10k and 20k vertices. In addition, three copies of each generated network are made in order to provide a labelled version of the initial structure with three different percentages of distinct labels, 0.1%, 1% and 10%. Labels are assigned randomly to vertices according to a uniform distribution.
The second type of synthetic graphs were generated according to the ForestFire model [68], that is inspired by forest growing behaviours, and which imposes a geometric distribution with mean \(p/(1p)\) which is used for randomly extract links between two distinct vertices. This benchmark contains 160 target graphs having the same number of vertices of the BarabasiAlbert benchmark, and they were labelled in the same way of the previous model. Moreover, the graphs were generated by varying the value of the model parameter p as 0.1, 0.3, 0.5, 0.7 and 0.9.
For both synthetic benchmarks, query graphs were extracted from the generated target graphs. The extraction was performed by fixing the number of desired vertices, ranging from 4, 8, 24, 32–64, and by extracting all edges among the selected vertices.
For more details regarding the two sets of synthetic benchmarks, the reader can refer to [69].
Experimental setup and output
We evaluated the performance of GRAPESDD, with respect to its predecessor GRAPES, by taking into account both space and time requirements. In particular, we focused on the amount of primary memory that the two approaches require during the execution, reported as memory peak, as well as the space needed to store the built index in the hard disk, reported as index size. In addition, we compared the running time required by the two approaches for building the index. The analysis was mainly focused on the index construction phase because it is the main difference between the two approaches. They share the same methodology for what concerns the matching phase. In addition, the filtering time can be considered negligible with respect to the total querying time.
Both GRAPESDD and GRAPES have been containerized in a Docker [70] image in order to ensure both functional and computational reproducibility of the experiments. The dockerfile to build the image is provided together with the source code, and it is available at https://github.com/qBioTurin/grapesdd or at https://github.com/InfOmics/grapesdd. Both the tools were implemented in C++ and compiled with gcc 6.3.0. Then, the experiments have been carried out on a server equipped with four processors AMD Opteron 6167 2.20 GHz and 502 GB of RAM. Since GRAPES is a natively parallel software while GRAPESDD is sequential, the experiments were executed using GRAPES with a singlethread.
Figures 5 and 6 show memory peak and index size on the synthetic datasets obtained by indexing one target graph at time. Values are calculated taking into account three different grouping strategies that reflect the way in which the datasets are generated. Plots were generated via the Pandas framework available for Python^{Footnote 3}. In details, datasets were grouped by (1) percentage of distinct labels with respect to the total number of vertices of the graph, (2) number of vertices and (3) value of the BarabasiAlbert model parameter \(\alpha\) or ForestFire parameter p.
Results show that, independently from the label percentage and model parameters, the performance of GRAPESDD improves as the number of vertices of the indexed graph increases. In fact, for graphs having less than 5k vertices, the memory peak required by GRAPESDD is higher than the peak of GRAPES, resulting in a ratio between the two values less than 1. The outperformance of GRAPESDD can reach two/three orders of magnitude with respect to GRAPES, for graphs with 20k vertices, which means that the memory requirement of GRAPESDD is one hundredth that of GRAPES.
Similar trends are observed for the size of the index when it is stored into the hard disk. In this case, the ratio can achieve five orders of magnitude as it is shown for the ForestFire graphs with 20k vertices. In general, best ratios are obtained for the ForestFire graphs with a high number of vertices, however, this behaviour is counterbalanced by the fact that on average ForestFire graphs with less than 5k vertices are also those with the lowest ratios.
For what concerns the memory peak, we can observe that the label percentage is a more crucial factor for the Barabasi–Albert model rather than for the Forestfire model. More in general, a low label percentage is to the advantage to the trie structure of GRAPES because the extracted paths share and relatively high number of labels. Opposite trends are observed for what concerns the storing of the index.
As for the label percentage, model parameters produce less variation compared to the number of vertices. The BarabasiAlbert model produces scalefree networks where the distribution of the degrees of the vertices follows a power law. A value greater than 1 increases the skewness of the resultant distribution, while a value less than 1 flattens the distribution. Thus higher values trend to produce a more sparse graph. Results in Fig. 5 show that GRAPESDD performs better for dense graphs, namely for low values of the \(\alpha\) parameter. The trend is confirmed by the results regarding the Forestfire models (Fig. 6), where higher values of the p parameters produce more dense graphs.
GRAPESDD reaches an average indexing compression ratio of 11.16 with respect to GRAPES when BarabasiAlbert networks are indexed. Instead, an average ratio of 9.46 is reached over the ForestFire collection. The better ratio obtained by GRAPESDD highlights that the application of MTMDDs is advantageous for any of the two types of random graphs, however, it is more suitable for BarabasiAlbert networks that are considered more similar to biological networks.
Subsequently, we evaluated the performance of exploiting the MTMDD structure for indexing 14 collections of synthetic graphs (see Table 1). The first three collections are obtained by grouping Barabasi–Albert graphs by the label percentage, such that graphs having the same percentage are contained in the same collection. Similarly, ForestFire graphs were grouped into three further collections. The grouping procedure was also performed by taking into account the \(\alpha\) and p model parameters. As for the previous analysis, the ratio is computed by dividing the values measured for the trie structure of GRAPES with those registered for the MTMDD of GRAPESDD. As it has been shown for the singlegraph analysis, the percentage of distinct labels with respect to the total number of vertices in the graphs) is a discriminant factor for the compression gain obtained by the MTMDD structure. Also the trends relative to the parameters of the models are confirmed. In general, the MTMDD structure is on average more convenient on the ForestFire graphs for what concerns the memory peak. BarabasiAlbert graphs with \(\alpha = 0.5\) are an exception to this trend, since they reach the maximum registered ratio equal to 45. In contrast to the singlegraph analysis, the space required for storing the index into the hard disk does not provide the same advantage to the MTMDD structure. In fact, in the singlegraph analysis the ratio reaches a value of \(10^5\) that is two order of magnitude higher of the ratios obtained for the memory peak. On the contrary, these experiments show an inversion of the ratio such that the MTMDD structure reaches best results for the memory peak. It is notable to report that, while the trie structure requires a maximum of 94Gb of memory, the process for building the MTMDDbased index does not reaches the 9Gb of requirement, making it suitable for common personal computers.
Table 1 also shows the running time of the two approaches for building the index and for storing it. The MTMDD structure requires more time for its construction, the compression capability of the MTMDD must come with an unavoidable additional cost. However, the growth time is only a few minutes and the construction of the index is performed in a preprocessing phase, only once and reused for each query search.
Table 2 reports the complete set of experiments that were performed on the biochemical graphs. The experiments regard the indexing of the four different collections of real graphs. For this benchmark, ratios are less prominent compared to synthetic graphs, however many of them are higher than 1, confirming a gain in using the MTMDD structure rather than the trie. The trend for which paths extracted from more dense and more uniform graphs are better compacted by the MTMDD structure is confirmed. In fact, the best ratio is obtained for the PCM collection that contains the most dense graphs. However, the PCM collection is also the one with the lowest number of labels and a relatively small number of vertices. Thus, it seems that the density of the graphs is the key factor for the good performance of GRAPESDD in biochemical graphs. In addition, in contrast with the results on the synthetic graphs, the running time of GRAPESDD for the construction of index is generally faster than the time required by GRAPES. In these cases, the compression capability of the MTMDD comes without additional cost.
Collections of biochemical graphs were also used for evaluating the performance of GRAPESDD during the querying phase in comparison with exiting approaches VF2 [21] and CTIndex [31]. VF2 is a nonindexed approach used by GRAPES and GRAPESDD in the verification phase. The comparison with it allows us to evaluate the effectiveness of using indexing in graph searching applications. CTIndex is a indexbased graph searching solution that uses paths as indexing features. Biochemical graphs have already been used for investigating the performance of GRAPES, VF2 and CTIndex [29, 48]. Here, we propose those comparisons by adding GRAPESDD. GRAPESDD is compared with GRAPES, two configurations of CTIndex and the pure subgraph isomorphism algorithm VF2. All the compared methods enumerate all the matches. CTIndex was run with default parameters (CTindex def), such that paths, cycles and trees are indexed. Moreover, a configuration (CTindex 4) which only includes paths of length 4 was taken into account. We were not able to run CTIndex on the PCM and PPI datasets due to excessive memory usage of the tool.
Figure 7 shows the cumulative time (in seconds) for executing 100 queries. Running times of GRAPES, GRAPESDD and CTindex include the time to read graphs from the input files, filtering time and verification time. The time required by the methods for reading the prebuilt index is considered only once and it is included in the running time of the first executed query. Since no index is built by VF2, its total execution time is taken into account. CTindex takes 461 seconds for building the index of the AIDS datasets with default parameters and 82 seconds for indexing only paths of length 4. Moreover, it requires 4,400 for indexing the PDBS collection with default parameters and 40 seconds when only paths of length 4 are taken into account. In all experiments, CTindex is outperformed by the other three approaches.
On AIDS collection (see Fig. 7a), GRAPESDD is not able to outperform GRAPES; its running time is close to the one of VF2. As shown in Table 2, this type of biochemical structures are too small and not suitable for being indexed and queried via MTMDDs. The overhead for reading the index and for extracting candidate graphs according to the query structure is not amortized during the verification phase, indeed, GRAPESDD requires 15 seconds for reading the index and an average of 12 seconds for the filtering phase. On the contrary, GRAPES requires only 3.5 seconds for loading the index and an average of 3 seconds for the filtering.
The VF2 algorithm is outperformed by GRAPESDD in the PDBS, PCM and PPI collections (see Fig. 7b–d). Moreover, VF2 is outperformed by GRAPES also in AIDS dataset. Thus, the indexbased methodology used by GRAPES and GRAPESDD is generally helpful in reducing the time required for the verification phase.
Regarding the PDBS collection (see Fig. 7b), GRAPESDD requires 2.3 seconds for loading the index and an average of 6 seconds for filtering the collection. GRAPES requires 0.12 seconds for the index load and 20 seconds for the filtering phase. Since GRAPESDD and GRAPES produce the same set of candidate graphs, GRAPESDD outperforms GRAPES thank to its performance in the filtering phase.
Considering the PCM collection (see Fig. 7c), GRAPESDD requires 20 seconds for loading the index and an average of 14 seconds for filtering the collection. GRAPES requires 30 seconds for the load and 2 seconds for the filtering. Thus, GRAPESDD builds a more succinct index that allows a fast loading time, however it is not sufficient for outperforming GRAPES in filtering time.
On the PPI collection (see Fig. 7d), GRAPESDD and GRAPES have comparable running times. GRAPESDD requires 13 seconds to load the index, in contrast to 2 seconds required by GRAPES. However, GRAPESDD spends on average 0.05 seconds for the filtering phase, while GRAPES requires on average 11 seconds.
Lastly, Table 3 reports the results regarding the PPI networks obtained by indexing one PPI at time, since PPI networks are often analysed standalone. Similarly to the synthetic networks, the increase of the graph size, i.e. number of vertices V and number of edges E, results in a better performance of GRAPESDD with respect to GRAPES. However, comparing the ratios obtained for M. musculus and H. sapiens we can deduce that as expected there is not a fixed correlation between the graph size and the performance. Therefore, the intrinsic nature of the graph is also responsible for these results. PPI networks are also the targets for which running times of GRAPESDD are comparable to those of GRAPES, and some times they are even better. The GRAPESDD building approach includes the construction of partial tries but without merging them. The cost for traversing a single whole trie may limit GRAPES.
Discussion
In this study, we deal with the problem of reducing the indexing size of biochemical and biological graph searching systems to make them effective with the increasing size of the structures. We show that the indexing of labelled graphs can take the advantages of newly adapted data structures based on decision diagrams. These techniques allow already existing methodologies to increase their compression power, in terms of memory consumption, without significantly increasing the searching time requirement.
We examined synthetic graphs because they offer a more systematic way of investigating performance of indexing using decision diagrams. Since the type of the generated graphs reflects the structures that are found in nature, their analysis can be exploited for inferring performance behaviour of real biochemical and biological structures. The results showed that relevant indexing compression ratio can be obtained in relation with the size and the topological structure of the graphs and the distribution of labels within them. Moreover, the larger are the indexed graphs, the higher is the advantage of using Decision Diagram data structure.
A wellestablished benchmark was also used for evaluating the performance on real graphs. The size of the considered graphs are relatively small, compared with the synthetically generated ones, however trends of gain ratio are confirmed. This must be considered in the perspective of future applications of the proposed indexing technique, because the continuous development of new technologies for extraction biological information leads to the construction of biological relational systems that constantly increase in size. In addition to the gain in compression ratio, GRAPESDD outperforms GRAPES in terms of build times while maintaining comparable query times. Furthermore, our analyse show that graph search approaches based on indexing, in graphs of some complexity, can amortize the overhead of building indexing data structures at query time.
Conclusions
Nowadays, graphs are fundamental structures for representing and for investigating the current biological and biomedical knowledge. In this work we investigated the possibility to improve the performance of the cuttingedge algorithms for searching substructures in graphs based on indexing, by addressing one of their disadvantages which is the size of the index. To this aim, we developed GRAPESDD, a new version of GRAPES tool, whose strength is the use of decision diagrams to substantially reduce the size of the index. Experimental results performed on a set of synthetic and real benchmarks reported clearly that the use of this data structure allows us to substantially reduce the memory footprint of the index (i.e up to 5 orders of magnitude smaller) with respect to the original version of GRAPES without impacting the running time of the algorithm.
Further enhancement of GRAPESDD will be to reimplement the building phase to allow threadbased parallelization as in the original GRAPES implementation. Moreover, since the efficacy of decision diagram techniques is strictly dependent on the variable order, we will investigate how different algorithms for variable orderings behave and we will evaluate the possibility of developing metaheuristics to identify apriori the best variable ordering depending on the features of each target graph.
Availability of data and materials
Project name: GRAPESDD Project home page: https://github.com/InfOmics/grapesdd and https://github.com/qBioTurin/grapesdd Source code repositories: https://github.com/qBioTurin/grapesdd and https://github.com/InfOmics/grapesdd Operating system(s): Linux Programming language: C++, Docker License: MIT Any restrictions to use by nonacademics: licence needed
Notes
The multiset (or bag) extends the concept of a set allowing for multiple instances for each of its elements.
Abbreviations
 DD:

Decision diagram
 MTMDD:

Multiterminal multiway decision diagram
 OMTMDD:

Ordered multiterminal multiway decision diagram
 ROMTMDD:

Reduced ordered multiterminal multiway decision diagram
 QROMTMDD:

Quasireduced ordered multiterminal multiway decision diagram
 SMP:

Symmetric MultiProcessing
 PPI:

Protein–protein interaction
References
Bonchev D. Chemical graph theory: introduction and fundamentals, vol. 1. Boca Raton: CRC Press; 1991.
Mering Cv, Huynen M, Jaeggi D, Schmidt S, Bork P, Snel B. STRING: a database of predicted functional associations between proteins. Nucleic Acids Res. 2003;31(1):258–61.
Bonnici V, De Caro G, Constantino G, Liuni S, D’Elia D, Bombieri N, Licciulli F, Giugno R. ArenaIdb: a platform to build human noncoding RNA interaction networks. BMC Bioinform. 2018;19(10):350.
Goh KI, Cusick ME, Valle D, Childs B, Vidal M, Barabási AL. The human disease network. Proc Nat Acad Sci. 2007;104(21):8685–90.
Grochow JA, Kellis M. Network motif discovery using subgraph enumeration and symmetrybreaking. In: Annual international conference on research in computational molecular biology. Springer; 2007. p. 92–106.
Rinnone F, Micale G, Bonnici V, Bader GD, Shasha D, Ferro A, Pulvirenti A, Giugno R. NetMatchStar: an enhanced Cytoscape network querying app. F1000Research 2015;4
Sadeghi M, Ordway B, Rafiei I, Borad P, Fang B, Koomen JL, Zhang C, Yoder S, Johnson J, Damaghi M. Integrative analysis of breast cancer cells reveals an epithelialmesenchymal transition role in adaptation to acidic microenvironment. Front Oncol. 2020;10:304.
Tran NTL, Mohan S, Xu Z, Huang CH. Current innovations and future challenges of network motif detection. Brief Bioinform. 2015;16(3):497–525.
Wong E, Baur B, Quader S, Huang CH. Biological network motif detection: principles and practice. Brief Bioinform. 2012;13(2):202–15.
ShenOrr SS, Milo R, Mangan S, Alon U. Network motifs in the transcriptional regulation network of Escherichia coli. Nat Genet. 2002;31(1):64–8.
Allison JR, Welsh ID. CherryPicker: an algorithm for the automated parameterisation of large biomolecules for molecular simulation. Front Chem. 2019;7:400.
Kelley BP, Yuan B, Lewitter F, Sharan R, Stockwell BR, Ideker T. PathBLAST: a tool for alignment of protein interaction networks. Nucl Acids Res. 2004;32(suppl–2):83–8.
Yang Q, Sze SH. Path matching and graph matching in biological networks. J Comput Biol. 2007;14(1):56–67.
Sharan R, Ulitsky I, Shamir R. Networkbased prediction of protein function. Mol Syst Biol. 2007;3(1):88.
Micale G, Pulvirenti A, Giugno R, Ferro A. GASOLINE: a greedy and stochastic algorithm for optimal local multiple alignment of interaction networks. PLoS ONE. 2014;9(6):98750.
Gülsoy G, Kahveci T. RINQ: referencebased indexing for network queries. Bioinformatics. 2011;27(13):149–58.
Himmelstein DS, Baranzini SE. Heterogeneous network edge prediction: a data integration approach to prioritize diseaseassociated genes. PLoS Comput Biol. 2015;11(7):1004259.
Himmelstein DS, Lizee A, Hessler C, Brueggeman L, Chen SL, Hadley D, Green A, Khankhanian P, Baranzini SE. Systematic integration of biomedical knowledge prioritizes drugs for repurposing. Elife. 2017;6:26726.
Fionda V, Palopoli L. Biological network querying techniques: analysis and comparison. J Comput Biol. 2011;18(4):595–625.
Cook SA. The complexity of theoremproving procedures. In: Proceedings of the Third Annual ACM Symposium on Theory of Computing, 1971. p. 151–8.
Cordella LP, Foggia P, Sansone C, Vento M. An improved algorithm for matching large graphs. In: 3rd IAPRTC15 Workshop on Graphbased Representations in Pattern Recognition, 2001. p. 149–59.
Carletti V, Foggia P, Saggese A, Vento M. Introducing VF3: a new algorithm for subgraph isomorphism. In: International Workshop on GraphBased Representations in Pattern Recognition. Springer; 2017. p. 128–39.
Bonnici V, Giugno R. On the variable ordering in subgraph isomorphism algorithms. IEEE/ACM Trans Comput Biol Bioinf. 2016;14(1):193–203.
He H, Singh AK. Graphsatatime: query language and access methods for graph databases. In: Proceedings of the 2008 ACM SIGMOD International Conference on Management of Data, 2008. p. 405–18.
Han WS, Lee J, Lee JH. Turboiso: towards ultrafast and robust subgraph isomorphism search in large graph databases. In: Proceedings of the 2013 ACM SIGMOD International Conference on Management of Data, 2013. p. 337–348.
Bi F, Chang L, Lin X, Qin L, Zhang W. Efficient subgraph matching by postponing cartesian products. In: Proceedings of the 2016 International Conference on Management of Data, 2016. p. 1199–214.
Giugno R, Shasha D. Graphgrep: A fast and universal method for querying graphs. In: Object Recognition Supported by User Interaction for Service Robots, vol. 2. IEEE; 2002. pp. 112–5.
Bonnici V, Ferro A, Giugno R, Pulvirenti A, Shasha D. Enhancing graph database indexing by suffix tree structure. In: IAPR International Conference on Pattern Recognition in Bioinformatics. Springer; 2010. p. 195–203.
Giugno R, Bonnici V, Bombieri N, Pulvirenti A, Ferro A, Shasha D. Grapes: A software for parallel searching on biological graphs targeting multicore architectures. PloS ONE. 2013;8(10).
Di Natale R, Ferro A, Giugno R, Mongiovì M, Pulvirenti A, Shasha D. Sing: Subgraph search in nonhomogeneous graphs. BMC Bioinform. 2010;11(1):96.
Klein K, Kriege N, Mutzel P. CTindex: Fingerprintbased graph indexing combining cycles and trees. In: 2011 IEEE 27th International Conference on Data Engineering. IEEE; 2011. p. 1115–26.
Williams DW, Huan J, Wang W. Graph database indexing using structured graph decomposition. In: 2007 IEEE 23rd International Conference on Data Engineering. IEEE. 2007. p. 976–985.
Zou L, Chen L, Yu JX, Lu Y. A novel spectral coding in a large graph database. In: Proceedings of the 11th International Conference on Extending Database Technology: Advances in Database Technology, 2008. p. 181–92.
Shang H, Zhang Y, Lin X, Yu JX. Taming verification hardness: an efficient algorithm for testing subgraph isomorphism. Proc VLDB Endow. 2008;1(1):364–75.
Zhang S, Hu M, Yang J. Treepi: A novel graph indexing method. In: 2007 IEEE 23rd International Conference on Data Engineering. IEEE; 2007. p. 966–75.
Zhao P, Yu JX, Philip SY. Graph indexing: Tree+ Delta>= Graph. VLDB. 2007;7:938–49.
Xie Y, Yu PS. CPindex: on the efficient indexing of large graphs. In: Proceedings of the 20th ACM International Conference on Information and Knowledge Management, 2011. p. 1795–804.
Yan X, Yu PS, Han J. Graph indexing: a frequent structurebased approach. In: Proceedings of the 2004 ACM SIGMOD International Conference on Management of Data, 2004. p. 335–46.
Cheng J, Ke Y, Ng W, Lu A. Fgindex: towards verificationfree query processing on graph databases. In: Proceedings of the 2007 ACM SIGMOD International Conference on Management of Data, 2007. p. 857–72.
Yuan D, Mitra P. Lindex: a latticebased index for graph databases. VLDB J. 2013;22(2):229–52.
Pal D, Rao P, Slavov V, Katib A. Fast processing of graph queries on a large database of small and mediumsized data graphs. J Comput Syst Sci. 2016;82(6):1112–43.
Katsarou F, Ntarmos N, Triantafillou P. Hybrid algorithms for subgraph pattern queries in graph databases. In: 2017 IEEE International Conference on Big Data (Big Data). IEEE. 2017. p. 656–665.
Sun S, Luo Q. Scaling Up Subgraph Query Processing with Efficient Subgraph Matching. In: 2019 IEEE 35th International Conference on Data Engineering (ICDE). IEEE; 2019. p. 220–31.
Wang J, Ntarmos N, Triantafillou P. Indexing query graphs to speed up graph query processing, 2016.
Wang J, Ntarmos N, Triantafillou P. GraphCache: a caching system for graph queries, 2017.
Gouda K, Hassaan M. Compressed featurebased filtering and verification approach for subgraph search. In: Proceedings of the 16th International Conference on Extending Database Technology, 2013. p. 287–98.
Luaces D, Viqueira JR, Pena TF, Cotos JM. Leveraging Bitmap Indexing for Subgraph Searching. In: EDBT, 2019. p. 49–60.
Katsarou F, Ntarmos N, Triantafillou P. Performance and scalability of indexed subgraph query processing methods. Proc VLDB Endow. 2015;8(12):1566–77.
James CA, Weininger D, Delany J. Daylight theory manual. Irvine: Daylight Chemical Information Systems. Inc.; 1995.
Sæther AA. Pathbased Graph Indexing for Keyword Search on RDF dataDiscovering Concepts Through Community Detection. Master’s thesis, NTNU, 2017.
Burch JR, Clarke EM, McMillan KL, Dill DL, Hwang LJ. Symbolic model checking: 1020 states and beyond. Inf Comput. 1992;98(2):142–70.
Veeraraghavan M, Trivedi KS. An improved algorithm for the symbolic reliability analysis of networks. In: Proceedings Ninth Symposium on Reliable Distributed Systems. IEEE; 1990. p. 34–43.
Ciardo G, Zhao Y, Jin X. Ten years of saturation: A Petri net perspective. In: Transactions on Petri Nets and Other Models of Concurrency V. New York: Springer. 2012. p. 51–95
Miner A, Parker D. Symbolic representations and analysis of large probabilistic systems. In: Validation of Stochastic Systems. Springer; 2004. p. 296–338.
Bollig B, Wegener I. Improving the variable ordering of OBDDs is NPcomplete. IEEE Trans Comput. 1996;45(9):993–1002.
Brace KS, Rudell RL, Bryant RE: Efficient implementation of a BDD package. In: 27th ACM/IEEE Design Automation Conference, IEEE; 1990. p. 40–5.
Somenzi, F.: CUDD: CU decision diagram package release 2.3. 0. University of Colorado at Boulder. 1998.
ThierryMieg Y, Poitrenaud D, Hamez A, Kordon F. Hierarchical set decision diagrams and regular models. In: Kowalewski S, Philippou A, editors. Tools and algorithms for the construction and analysis of systems. Berlin: Springer; 2009. p. 1–15.
Babar J, Miner A. Meddly: Multiterminal and edgevalued decision diagram library. In: 2010 Seventh International Conference on the Quantitative Evaluation of Systems, IEEE; 2010. p. 195–196.
Bonnici V, Giugno R, Pulvirenti A, Shasha D, Ferro A. A subgraph isomorphism algorithm and its application to biochemical data. BMC Bioinform. 2013;14(S7):13.
Carletti V, Foggia P, Vento M. Performance comparison of five exact graph matching algorithms on biological databases. In: International Conference on Image Analysis and Processing, 2013;pp. 409–417. Springer
cancer institute, N.: National cancer institute. http://www.nci.nih.gov/. Accessed 2013 March 10
Berman HM, Battistuz T, Bhat TN, Bluhm WF, Bourne PE, Burkhardt K, Feng Z, Gilliland GL, Iype L, Jain S, et al. The protein data bank. Acta Crystallogr D Biol Crystallogr. 2002;58(6):899–907.
Huehne R, Suehnel J. The Jena Library of Biological MacromoleculesJenaLib. Nature Precedings. 2009;1.
Vehlow C, Stehr H, Winkelmann M, Duarte JM, Petzold L, Dinse J, Lappe M. CMView: interactive contact map visualization and analysis. Bioinformatics. 2011;27(11):1573–4.
Szklarczyk D, Franceschini A, Kuhn M, Simonovic M, Roth A, Minguez P, Doerks T, Stark M, Muller J, Bork P, et al. The STRING database in 2011: functional interaction networks of proteins, globally integrated and scored. Nucleic Acids Res. 2010;39(suppl1):561–8.
Barabási A.L., Albert R. Emergence of scaling in random networks. Science. 1999;286(5439):509–12.
Leskovec J, Kleinberg J, Faloutsos C. Graphs over time: densification laws, shrinking diameters and possible explanations. In: Proceedings of the Eleventh ACM SIGKDD International Conference on Knowledge Discovery in Data Mining, 2005. p. 177–87.
Aparo A, Bonnici V, Micale G, Ferro A, Shasha D, Pulvirenti A, Giugno R. Fast subgraph matching strategies based on patternonly heuristics. Interdiscip Sci: Comput Life Sci. 2019;11(1):21–32.
Merkel D. Docker: Lightweight Linux Containers for Consistent Development and Deployment. Linux J. 2014;2014(239).
Acknowledgements
Not applicable.
Funding
NL and MB were partially supported by “Creation of a computational framework to model and study West Nile Disease” project supported by CRT foundation (PI Marco Beccuti). VB and RG were partially supported by GNCSINDAM and JPND 2019466037. The funding bodies were not involved and played no role in the study design; data collection, analysis or interpretation; or writing of the manuscript.
Author information
Authors and Affiliations
Contributions
All the authors equally contributed to the development of the methodology. NL and VB contribute to the developed of the software. All the authors equally contributed to the writing of the manuscript. MB and RG supervised the work. All the authors have read and approved the final manuscript.
Corresponding author
Ethics declarations
Ethics approval and consent to participate
Not applicable.
Consent to publish
Not applicable.
Competing interests
The authors declare that they have no competing interests.
Additional information
Publisher's Note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Rights and permissions
Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article's Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article's Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by/4.0/. The Creative Commons Public Domain Dedication waiver (http://creativecommons.org/publicdomain/zero/1.0/) applies to the data made available in this article, unless otherwise stated in a credit line to the data.
About this article
Cite this article
Licheri, N., Bonnici, V., Beccuti, M. et al. GRAPESDD: exploiting decision diagrams for indexdriven search in biological graph databases. BMC Bioinformatics 22, 209 (2021). https://doi.org/10.1186/s12859021041290
Received:
Accepted:
Published:
DOI: https://doi.org/10.1186/s12859021041290
Keywords
 Query processing
 Pattern matching
 Subgraph isomorphism
 Graph indexing
 Decision diagrams