CN111597404A - Based on k2Maximum common subgraph matching method of labeled graph of MDD (minimization drive distribution) - Google Patents

Based on k2Maximum common subgraph matching method of labeled graph of MDD (minimization drive distribution) Download PDF

Info

Publication number
CN111597404A
CN111597404A CN202010441592.6A CN202010441592A CN111597404A CN 111597404 A CN111597404 A CN 111597404A CN 202010441592 A CN202010441592 A CN 202010441592A CN 111597404 A CN111597404 A CN 111597404A
Authority
CN
China
Prior art keywords
graph
mdd
matching
vertex
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Withdrawn
Application number
CN202010441592.6A
Other languages
Chinese (zh)
Inventor
朱奕杰
冷贝贝
关善文
沈薪童
罗力耕
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guilin Intelligent Industrial Park Co ltd
Original Assignee
Guilin Intelligent Industrial Park Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guilin Intelligent Industrial Park Co ltd filed Critical Guilin Intelligent Industrial Park Co ltd
Priority to CN202010441592.6A priority Critical patent/CN111597404A/en
Publication of CN111597404A publication Critical patent/CN111597404A/en
Withdrawn legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/901Indexing; Data structures therefor; Storage structures
    • G06F16/9024Graphs; Linked lists
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/901Indexing; Data structures therefor; Storage structures
    • G06F16/9027Trees
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/903Querying
    • G06F16/90335Query processing

Abstract

The invention discloses a method based onk 2 -a method for maximum common subgraph matching of labeled graphs of MDD, comprising the steps of: screening the vertex labels of the matching images, selecting the vertexes of the matching images which are the same as the target image labels, and changing the labels of the vertexes into the labels of the vertexes corresponding to the vertexes in the target image to obtain a new matching image; according tok 2 The rules of the tree respectively encode the vertexes of the target graph and the new matching graph; encoding the edges of the target graph and the new matching graph according to the vertex codes of the target graph and the new matching graph; constructing a multi-value decision diagram structure according to the encoding of the edges of the target diagram and the new matching diagram to obtain the target diagram and the new matching diagramk 2 -MDD structural diagram; in the constructed target graph and matching graphk 2 In the MDD structure diagram, the purpose is obtained by using logical operation of symbol decision diagramThe largest common subgraph of the plots and the matching plots. The method can make the storage structure more compact, and greatly reduce the number of generated vertexes, thereby reducing the search space and improving the search efficiency.

Description

Based on k2Maximum common subgraph matching method of labeled graph of MDD (minimization drive distribution)
Technical Field
The invention relates to the technical field of maximum public subgraph matching of labeled graphs, in particular to a graph based on a label graphk 2 Maximum common subgraph matching method of labeled graphs of MDD.
Background
The graph is an important mathematical model and data structure for describing specific relations between things, and is widely applied to various fields in life, such as the world wide web, social networks, protein interaction networks, chemical molecular structures, and the like. With the continuous increase of the scale of Graph data, effective and rapid analysis and processing of the Graph data still face a serious challenge, and a Graph Pattern Matching technology (Graph Pattern Matching) as an important method for realizing efficient query on the Graph data has become a research hotspot of scholars at home and abroad. From the perspective of whether the matching result is completely consistent with the pattern graph, the graph matching problem can be divided into exact matching and non-exact matching, wherein the exact matching generally analyzes the relationship between the data graph and the pattern graph by defining graph isomorphism and sub-graph isomorphism; non-exact graph matching generally measures the degree of similarity between two graphs by defining edit distance, minimum common hypergraph, and maximum common subgraph.
The largest common subgraph has wide application in biology, chemistry, computer vision, source code analysis, binary programming, circuit design, character recognition problems, and many other fields, and in some fields it is directed to a method of measuring similarity or difference between two graphs.
In order to compactly represent graph data, Brisaboa et al, in 2009, proposed a graph based on a traditional adjacency matrix representationk 2 Tree (k 2 -tree), each level in the tree corresponding to a partitioned sub-matrix of the adjacency matrix or of the partitioned sub-matrix, the nodes corresponding to the partitioned sub-matrices of the adjacency matrix, generatedk 2 The tree is stored by using two bit vectors T and L, and the method not only can compactly represent the adjacency matrix, but also can realize forward or reverse efficient query operation of the adjacent nodes. To address this challenge, Li et al propose using Brisaboak 2 Tree structures to solve this problem. Although usingk 2 The tree structure is used for storing the large-scale graph, so that the structure is more compact, the number of nodes is greatly reduced, and the tree structure still has certain limitation when large-scale graph data are represented. Sch\ 20346k 2 Two optimization techniques for tree representation: heuristic depth-first node reordering and adaptive correction k enable the expressed structure to be more compact and nodes to be obviously reduced.
Whether it bek 2 Whether trees are optimized by k 2 The tree still has certain limitation when representing large-scale graph data storage, and is particularly represented as follows:
1. when the scale of the graph becomes larger, a large number of isomorphic subgraphs exist in the graph, and similarly, when the graph is according tok 2 The tree concept divides the adjacent matrix into a large number of identical sub-matrices. This results ink 2 There are also a large number of isomorphic subtrees within the tree.
2、k 2 The tree is only valid for sparse graphs, when the graph becomes dense, since there are fewer 0 nodes that can be compressed within the adjacency matrix, sok 2 The tree compactness also becomes low.
3、k 2 The tree does not involve the representation and operation of dynamic graphs (graphs that require the addition or deletion of vertices, edges, subgraphs, etc.).
At present, the use of the compositionk 2 The method for representing the tree graph data compactly lacks necessary consideration for the structural characteristics of the graph, and still has great improvement space in compactness. For based onk 2 There is a need for further optimization and improvement of the tree, so as to obtain a more compact structure representation method, which further reduces the storage space of the nodes.
Disclosure of Invention
The invention aims to overcome the defects of the prior art and provides a device based onk 2 Maximum common subgraph matching method of labeled graphs of MDD.
The technical scheme for realizing the purpose of the invention is as follows:
based onk 2 -a method for maximal common subgraph matching of labeled graphs of MDDs, comprising the steps of:
1) screening the vertex labels of the matching images, selecting the vertexes of the matching images which are the same as the target image labels, and changing the labels of the vertexes into the labels of the vertexes corresponding to the vertexes in the target image to obtain a new matching image;
2) according tok 2 The rules of the tree respectively encode the vertexes of the target graph and the new matching graph;
3) encoding the edges of the target graph and the new matching graph according to the vertex codes of the target graph and the new matching graph;
4) constructing a multi-value decision diagram structure according to the encoding of the edges of the target diagram and the new matching diagram to obtain the target diagram and the new matching diagramk 2 -MDD structural diagram;
5) in the constructed target graph and matching graphk 2 In the MDD structure diagram, the maximum common subgraph of the target graph and the matching graph is respectively obtained by using the logical traffic operation of the symbol decision graph.
In step 2), the number of coded bits of each vertex of the target graph and the new matching graph is n bits, whereinkIs an integer of 2 or moreVAnd l is the number of the vertex points, and the vertex coding steps of the target graph and the new matching graph are as follows:
2-1) according tok 2Rules for tree-to-target graph and new matching graph adjacency matrix partitioning, i.e.k 2Dividing rule, determining coding length n of vertex of graph data as vertex numberkBase logarithmic ceiling, i.e.
Figure 100002_DEST_PATH_IMAGE001
WhereinkIs an integer of 2 or more;
2-2) encoding vertices using a binary approach, the lower bound L of the binaryT=1, upper bound HT=2 n For number isNThe vertex of (1) is less than or equal toN≤|V(|, to the total number |)VCoding the vertex of the I according to a recursive halving mode, wherein each bit in the n-bit coding of the vertex is one of 2 states, namely 0 or 1;
2-3) if LT<HTThe median of the dichotomy is equal to half of the sum of the upper bound and the lower bound; if it isNLess than or equal to the median value, given a number ofNOne bit of the vertex of (1) is encoded as "0", and the median value minus 1 is taken as the upper bound HT(ii) a Otherwise, get the serial number ofNOne bit of the vertex of (1) is encoded as "1", while the median value plus 1 is taken as the lower bound LT
2-4) step 2-3) is repeated until LT≥HTGet the number asNN-bit encoding of the vertices of (1), each bit of the n-bit encoding beingkOne of the states, namely (0, 1, …,k-1) of the above.
In step 3), the edges of the target graph and the new matching graph are encoded, the directed edges of the target graph and the new matching graph are relationships between vertices, and are described by using a feature function between the vertices, which is specifically as follows:
3-1) X = (X)1,…,xn)、Y=(y1,…,yn) For the vertex coded vector in the figure, the characteristic function of the vertex X to vertex Y edge is represented as:E(X,Y):{0,1,…k-1} n ×{0,1,…k-1} n → {1,2,…k 2} n i.e. on each bit of the two vertex codeskCombining the species states to obtaink 2 In the seed state, the code length of the edge is still n bits, and each bit of the code isk 2 One of the seed states;
3-2) coding the edge according to the vertex codes obtained in the step 2), and combining the coding states of certain corresponding bits of the two vertexes of the edge to obtain one-bit codes of the edge; and the n-bit coding states are correspondingly combined in sequence to obtain the n-bit coding of the edge.
In step 4), the target graph and the new matching graphk 2 -MDD structural diagram, obtained in particular by the following steps:
4-1) initializing an MDD comprising n variables, i.e. the code length n of a vertex or edge, the value range of n being 1 tok 2
4-2) assuming that the target graph or the matching graph has m edges, coding one edge obtained in the step 3), and generating an initial MDD by using a createEdge () function in the MEDDLY library, wherein the initial MDD is marked as R; taking one edge from the rest edges, generating MDD of the other edge by the same method, and marking as T;
4-3) using UNION operator provided in MEDDLY library to perform UNION operation on MDDs (namely R and T) generated by the strip edges, and storing the combined result in the initial MDD, namely covering the combined result with the original R and still recording the combined result as R;
4-4) continuously taking one edge from the rest edges, generating MDD by the same method, marking as T, carrying out UNION operation on R and T, and marking the combined result as R;
4-5) repeating the steps until all edges generate MDD and combining the MDD into initial MDD, and obtaining the final initial MDD R which is the graphk 2-MDDAnd (5) structure.
In step 5), the step of obtaining the maximum common subgraph of the target graph and the matching graph by using the logic traffic operation of the symbolic decision graph is to find the maximum common subgraph of the target graph and the matching graph in the edge queryk 2 Any 2 vertices v on the MDD structure diagram1And v2Performing an edge query operation, if the query return result is T, representing a vertex v1And v2If the query returns a result of F, the vertex v is represented1And v2The edge in between does not exist.
The invention provides a method based onk 2 The maximum common subgraph matching method of MDD labeled graph includes screening the top point labels of the matched graph, selecting the top points in the matched graph identical to the target graph labels, and matching the top pointsThe labels are changed into the labels of the vertexes corresponding to the labels in the target graph, and then a new matching graph can be obtained. Then, the vertex of the target graph and the new matching graph are coded, the edge is coded according to the coding of the vertex, and then the coding set of the edge is constructedk 2 -an MDD; thereafter using the symbolk 2 -logical traffic operation of the MDDs finding a common subgraph. For the inventionk 2 The idea of the tree is to divide the adjacent matrix and then use the multi-valued decision diagram for storage, so thatk 2 Redundant vertexes caused by a large number of isomorphic subtrees in the tree are combined, the purpose of more compact storage structure is achieved, the number of generated vertexes is greatly reduced, the search space is reduced, and the search efficiency is also improved.
Drawings
FIG. 1 is an original target graph GTAnd the original matching graph GP
FIG. 2 is an original target graph GTAnd a new matching graph GQ
FIG. 3 is a target graph GTAnd matching graph GQIs/are as followsk 2 -MDDTAndk 2 -MDDQ
FIG. 4 is a drawing showingk 2-MDD results graph.
Detailed Description
The invention will be further described with reference to the following drawings and examples, but the invention is not limited thereto.
A Multi-valued Decision Diagram (MDD) is a directed acyclic graph with multiple terminal nodes, describing a node with a node numbernA discrete multi-valued function of the individual variables,f:D1×D2×…×Di×…×Dn→ S, wherein:
1、Di={1,2,…,n i is a multivalued variablex i The value ranges of the different variables may be different; s is a multi-valued functionfThe finite value range of (1), i.e. the value set of the MDD terminal node, which may be boolean values (true and false, or 0 and 1), a finite set of integersA sum or a finite set of real numbers.
2. The nodes of the MDD include terminal nodes and non-terminal nodes.
3. For non-terminal nodesx i Is shown as comprisingn i Pointers to other nodes, the pointers and functionsfCorrespondingly, the formalization is described as formula (1):
f xi c==fx 1x 2,…,x i-1cx i+1,…,x n ) (1)
multivalued variable x1To xnAnd giving a group of values to obtain a unique terminal node value.
The simplification rules for MDD are the following three:
rule 1, merging the same terminal nodes:
only one terminal node with the same attribute is reserved, other terminal nodes with the same attribute are deleted, and the pointer originally pointing to the deleted terminal nodes is redirected to the reserved terminal nodes.
Rule 2, merge the same internal nodes:
only one internal node with the same attribute, namely a non-terminal node, is reserved, other internal nodes with the same attribute are deleted, and the pointer originally pointing to the deleted nodes is redirected to the reserved internal nodes.
Rule 3, delete redundant nodes:
if all the pointers of a node point to the same node, then the node is a redundant node, it is deleted, and the pointer to the node points to the child node of the deleted node.
The invention provides a method based onk 2 -maximum common subgraph matching algorithm of labeled graphs of MDD, given the process of constructing the algorithm: firstly, encoding the vertexes in the two graphs; encoding edges again according to the encoding of the vertex; encoding set construction by edgesk 2-an MDD; by means of symbolsk 2The logical operation of the MDD enables the solution of the maximum common subgraph match.
Example (b):
based onk 2 -a method for maximal common subgraph matching of labeled graphs of MDDs, comprising the steps of:
1) screening the vertex labels of the matching graph to select the vertexes in the matching graph, which are the same as the target graph labels, and obtaining the original target graph GTAnd the original matching graph GPAs shown in fig. 1, the new matching graph is obtained by changing the labels of the vertices to the labels of the vertices corresponding to the vertices in the target graph, i.e., the vertex P in fig. 1 (b)0、P1、P2And the vertex T in FIG. 1 (a)1、T2、T4So that fig. 1 (b) can be converted as shown in fig. 2, and a new matching graph is shown in fig. 2;
2) according tok 2 The rules of the tree respectively encode the vertexes of the target graph and the new matching graph;
3) encoding the edges of the target graph and the new matching graph according to the vertex codes of the target graph and the new matching graph;
4) constructing a multi-value decision diagram structure according to the encoding of the edges of the target diagram and the new matching diagram to obtain the target diagram and the new matching diagramk 2 MDD structure diagram, FIG. 3, it can be seen from FIG. 3 that of the new matching graphk 2 The MDD structure, also called the process of FIG. 2, transformed into FIG. 3;
5) in the constructed target graph and matching graphk 2 In the MDD structure diagram, the maximum common subgraph of the target diagram and the matching diagram is obtained by using the logical operation of the symbol decision diagram respectively, namely the maximum common subgraph of the target diagramk 2 -MDDTWith new matching figuresk 2-MDDQA new one can be obtained by performing the logical intersection operationk 2MDD, as shown in fig. 4. FIG. 4 is obtained by the logical "intersection" operation of FIG. 3, from which FIG. 4 the vertices of the matching graph that match the target graph, and thus the matching result (P)0,T1),(P1,T2),(P2,T4) (ii) a This is the desired end result.
In step 2), the number of coded bits of each vertex of the target graph and the new matching graph is n bits, wherein k is an integer greater than or equal to 2, and the caltrops are not overlapped with each otherVAnd l is the number of the vertex points, and the vertex coding steps of the target graph and the new matching graph are as follows:
2-1) according tok 2Rules for tree-to-target graph and new matching graph adjacency matrix partitioning, i.e.k 2Dividing rule, determining coding length n of vertex of graph data as vertex numberkBase logarithmic ceiling, i.e.
Figure DEST_PATH_IMAGE003
WhereinkIs an integer of 2 or more;
2-2) this examplek=2, encode vertex using dichotomy, lower bound of dichotomy LT=1, upper bound HT=2 n For number isNThe vertex of (1) is less than or equal toN≤|V(|, to the total number |)VCoding the vertex of the I according to a recursive halving mode, wherein each bit in the n-bit coding of the vertex is one of 2 states, namely 0 or 1;
2-3) if LT<HTThe median of the dichotomy is equal to half of the sum of the upper bound and the lower bound; if it isNLess than or equal to the median value, given a number ofNOne bit of the vertex of (1) is encoded as "0", and the median value minus 1 is taken as the upper bound HT(ii) a Otherwise, get the serial number ofNOne bit of the vertex of (1) is encoded as "1", while the median value plus 1 is taken as the lower bound LT
2-4) step 2-3) is repeated until LT≥HTGet the number asNN-bit encoding of the vertices of (1), each bit of the n-bit encoding beingkOne of the states, namely (0, 1, …,k-1) of the above.
In step 3), the edges of the target graph and the new matching graph are encoded, the directed edges of the target graph and the new matching graph are relationships between vertices, and are described by using a feature function between the vertices, which is specifically as follows:
3-1) e.g. the edge between vertex X and vertex Y, described by a characteristic function E (X, Y), let X = (X)1,…,xn)、Y=(y1,…,yn) For the vertex coded vector in the figure, the characteristic function of the vertex X to vertex Y edge is represented as:E(X,Y):{0,1,…k-1} n ×{0,1,…k-1} n → {1,2,…k 2} n i.e. on each bit of the two vertex codeskCombining the species states to obtaink 2 In the seed state, the code length of the edge is still n bits, and each bit of the code isk 2 One of the seed states;
3-2) according to the vertex codes obtained in the step 2), then coding the edge, and combining the coding states of certain corresponding bits of the two vertexes of the edge to obtain a bit code of the edge; and the n-bit coding states are correspondingly combined in sequence to obtain the n-bit coding of the edge.
In step 4), the target graph and the new matching graphk 2 -MDD structural diagram, obtained in particular by the following steps:
4-1) initializing an MDD comprising n variables, i.e. the code length n of a vertex or edge, the value range of the variable n being 1 ℃; 1Ek 2 Examples of the case are 1 to 4;
4-2) assuming that the target graph or the matched graph has m edges, coding one edge obtained in the step 3), and generating an initial MDD by using a createEdge () function in the MEDDLY library, wherein the initial MDD is marked as R; taking one edge from the rest edges, generating MDD of the other edge by the same method, and marking as T;
4-3) using UNION operator provided in MEDDLY library to perform UNION operation on MDDs (namely R and T) generated by the strip edges, and storing the combined result in the initial MDD, namely covering the combined result with the original R and still recording the combined result as R;
4-4) continuously taking one edge from the rest edges, generating MDD by the same method, marking as T, carrying out UNION operation on R and T, and marking the combined result as R;
4-5) repeating the above stepsUntil all edges generate MDD and combine into initial MDD, the final initial MDD R is the graphk 2-MDDAnd (5) structure.
k 2-MDDThe structure is a special case of the MDD structure, and defines the number of variables and the value range of the variables, wherein the value range of each variable is {1,2, …,k 2}. Therefore, it isk 2-MDDHas the property of MDD, and applies the simplification rule of MDD.
k 2-MDDBy using a graph-structured adjacency matrix with a recursion of the original matrixk 2A multi-valued decision diagram structure constructed after equal division, wherein any unit in a adjacency matrix of the diagram corresponds tok 2-MDDAnd obtaining a unique function value, namely a terminal vertex value, according to the unique group of values of the n variables, wherein the value is equal to the element value of the corresponding cell in the original matrix. Constructed according to the invention and containing n variablesK 2-MDDMaking the values of n variables equal to the values in the edge coding set, the function value is T, otherwise, it is F, and the obtained valuek 2-MDDCorresponding to the original map.
Using a Multi-endpoint and Edge decision gallery, MEDDLY (Multi-terminal and Edge-value decision dictionary), a map is created with a range of values that are all {1,2, …,k 2n variables of. From these n variables, a boolean MDD is used whose end point is true (T) indicating that the conceptual parameter has a correlation with the service, and false (F) indicating that the conceptual parameter has no correlation with the service.
The MEDDLY library is a C/C + + open source project provided for the manipulation of MDDs, developed by Iowa State university under the LINUX platform, which provides rich functions of MDD construction and operation. For example: creating the number of variables and the value range of each variable for constructing the MDD by using a createVariablesBottomUp () function; generating an MDD from the values of the given one or more sets of variables using a createEdge () function; the two MDDs are merged using the apply () function and the UNION operator.
In step 5), the step of obtaining the maximum common subgraph of the target graph and the matching graph by using the logic traffic operation of the symbolic decision graph is to find the maximum common subgraph of the target graph and the matching graph in the edge queryk 2Any 2 vertices v on the MDD structure diagram1And v2Performing an edge query operation, if the query return result is T, representing a vertex v1And v2If the query returns a result of F, the vertex v is represented1And v2The edge in between does not exist.

Claims (5)

1. Based onk 2 -method for maximum common subgraph matching of labeled graphs of MDDs, characterized in that it comprises the following steps:
1) screening the vertex labels of the matching images, selecting the vertexes of the matching images which are the same as the target image labels, and changing the labels of the vertexes into the labels of the vertexes corresponding to the vertexes in the target image to obtain a new matching image;
2) according tok 2 The rules of the tree respectively encode the vertexes of the target graph and the new matching graph;
3) encoding the edges of the target graph and the new matching graph according to the vertex codes of the target graph and the new matching graph;
4) constructing a multi-value decision diagram structure according to the encoding of the edges of the target diagram and the new matching diagram to obtain the target diagram and the new matching diagramk 2 -MDD structural diagram;
5) in the constructed target graph and matching graphk 2 In the MDD structure diagram, the maximum common subgraph of the target graph and the matching graph is respectively obtained by using the logical traffic operation of the symbol decision graph.
2. A method according to claim 1k 2 -method for maximum common subgraph matching of labeled graphs of MDD, characterized in that in step 2) the number of coded bits per vertex of the target graph and the new matching graph is n bits, wherekIs an integer of 2 or moreVAnd l is the number of the vertex points, and the vertex coding steps of the target graph and the new matching graph are as follows:
2-1) according tok 2Rules for tree-to-target graph and new matching graph adjacency matrix partitioning, i.e.k 2Dividing rule, determining coding length n of vertex of graph data as vertex numberkBase logarithmic ceiling, i.e.
Figure DEST_PATH_IMAGE001
WhereinkIs an integer of 2 or more;
2-2) encoding vertices using a binary approach, the lower bound L of the binaryT=1, upper bound HT=2 n For number isNThe vertex of (1) is less than or equal toN≤|V(|, to the total number |)VCoding the vertex of the I according to a recursive halving mode, wherein each bit in the n-bit coding of the vertex is one of 2 states, namely 0 or 1;
2-3) if LT<HTThe median of the dichotomy is equal to half of the sum of the upper bound and the lower bound; if it isNLess than or equal to the median value, given a number ofNOne bit of the vertex of (1) is encoded as "0", and the median value minus 1 is taken as the upper bound HT(ii) a Otherwise, get the serial number ofNOne bit of the vertex of (1) is encoded as "1", while the median value plus 1 is taken as the lower bound LT
2-4) step 2-3) is repeated until LT≥HTGet the number asNN-bit encoding of the vertices of (1), each bit of the n-bit encoding beingkOne of the states, namely (0, 1, …,k-1) of the above.
3. A method according to claim 1k 2 The maximum common subgraph matching method of the labeled graphs of the MDD is characterized in that, in step 3), the edges of the target graph and the new matching graph are encoded, and the directed edges of the target graph and the new matching graph are relationships between vertices and are described by a feature function between the vertices, which is as follows:
3-1) X = (X)1,…,xn)、Y=(y1,…,yn) For the vertex code vector in the figure, the edge from vertex X to vertex YIs expressed as:E(X,Y):{0,1,…k-1} n ×{0,1,…k-1} n → {1,2,…k 2} n i.e. on each bit of the two vertex codeskCombining the species states to obtaink 2 In the seed state, the code length of the edge is still n bits, and each bit of the code isk 2 One of the seed states;
3-2) coding the edge according to the vertex codes obtained in the step 2), and combining the coding states of certain corresponding bits of the two vertexes of the edge to obtain one-bit codes of the edge; and the n-bit coding states are correspondingly combined in sequence to obtain the n-bit coding of the edge.
4. A method according to claim 1k 2 -method for maximum common subgraph matching of labeled graphs of MDD, characterized in that in step 4) said target graph and new matching graph are obtainedk 2 -MDD structural diagram, obtained in particular by the following steps:
4-1) initializing an MDD comprising n variables, i.e. the code length n of a vertex or edge, the value range of n being 1 tok 2
4-2) assuming that the target graph or the matching graph has m edges, coding one edge obtained in the step 3), and generating an initial MDD by using a createEdge () function in the MEDDLY library, wherein the initial MDD is marked as R; taking one edge from the rest edges, generating MDD of the other edge by the same method, and marking as T;
4-3) using UNION operator provided in MEDDLY library to perform UNION operation on MDDs (namely R and T) generated by the strip edges, and storing the combined result in the initial MDD, namely covering the combined result with the original R and still recording the combined result as R;
4-4) continuously taking one edge from the rest edges, generating MDD by the same method, marking as T, carrying out UNION operation on R and T, and marking the combined result as R;
4-5) repeating the steps until all edges generate MDD and combining the MDD into initial MDD, and obtaining the final initial MDD R which is the graphk 2-MDDAnd (5) structure.
5. A method according to claim 1k 2 -MDD maximum common subgraph matching method of labeled graphs, characterized in that in step 5), the maximum common subgraph of the target graph and the matching graph is obtained by using the logic traffic operation of the symbolic decision graph in the edge queryk 2 Any 2 vertices v on the MDD structure diagram1And v2Performing an edge query operation, if the query return result is T, representing a vertex v1And v2If the query returns a result of F, the vertex v is represented1And v2The edge in between does not exist.
CN202010441592.6A 2020-05-22 2020-05-22 Based on k2Maximum common subgraph matching method of labeled graph of MDD (minimization drive distribution) Withdrawn CN111597404A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010441592.6A CN111597404A (en) 2020-05-22 2020-05-22 Based on k2Maximum common subgraph matching method of labeled graph of MDD (minimization drive distribution)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010441592.6A CN111597404A (en) 2020-05-22 2020-05-22 Based on k2Maximum common subgraph matching method of labeled graph of MDD (minimization drive distribution)

Publications (1)

Publication Number Publication Date
CN111597404A true CN111597404A (en) 2020-08-28

Family

ID=72186161

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010441592.6A Withdrawn CN111597404A (en) 2020-05-22 2020-05-22 Based on k2Maximum common subgraph matching method of labeled graph of MDD (minimization drive distribution)

Country Status (1)

Country Link
CN (1) CN111597404A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105956114A (en) * 2016-05-05 2016-09-21 南京邮电大学 Method for searching pattern matching subgraphs based on tag graph
CN107193882A (en) * 2017-04-27 2017-09-22 东南大学 Why not query answer methods based on figure matching on RDF data
CN108038498A (en) * 2017-12-05 2018-05-15 北京工业大学 A kind of indoor scene Object Semanteme mask method based on subgraph match
CN109189996A (en) * 2018-09-18 2019-01-11 桂林电子科技大学 Based on K2The public connected subgraph matching process of maximum of the Large Scale Graphs of-MDD
US20190361905A1 (en) * 2018-05-24 2019-11-28 People.ai, Inc. Systems and methods for restricting generation and delivery of insights to second data source providers

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105956114A (en) * 2016-05-05 2016-09-21 南京邮电大学 Method for searching pattern matching subgraphs based on tag graph
CN107193882A (en) * 2017-04-27 2017-09-22 东南大学 Why not query answer methods based on figure matching on RDF data
CN108038498A (en) * 2017-12-05 2018-05-15 北京工业大学 A kind of indoor scene Object Semanteme mask method based on subgraph match
US20190361905A1 (en) * 2018-05-24 2019-11-28 People.ai, Inc. Systems and methods for restricting generation and delivery of insights to second data source providers
CN109189996A (en) * 2018-09-18 2019-01-11 桂林电子科技大学 Based on K2The public connected subgraph matching process of maximum of the Large Scale Graphs of-MDD

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
朱奕杰; 蔺宏伟: ""基于正则化一维卷积神经网络的网格模型显著性检测"" *

Similar Documents

Publication Publication Date Title
Sommer Shortest-path queries in static networks
US20210350583A1 (en) Methods and Devices for Binary Entropy Coding of Point Clouds
Nishizeki et al. Planar graphs: Theory and algorithms
US10985775B2 (en) System and method of combinatorial hypermap based data representations and operations
CN110533096B (en) DNA storage coding optimization method of multivariate universe algorithm based on K-means clustering
JP2004164596A (en) Method and system for traversing n-dimensional bi-tree
CN106294739A (en) A kind of based on k2tree and the large-scale graph data processing method of multivalued decision diagram
Bartholdi III et al. Vertex‐labeling algorithms for the Hilbert spacefilling curve
CN106570166A (en) Video retrieval method and apparatus based on multiple partial sensitive hash tables
Marshall et al. Quantifying the pathways to life using assembly spaces
Delgosha et al. A universal low complexity compression algorithm for sparse marked graphs
CN109189996B (en) Based on K2Maximum common connectivity subgraph matching method of large-scale graph of MDD (minimization drive distribution)
Mohamed et al. Speeding up fractal image compression by genetic algorithms
CN107169066A (en) One kind is based on kdTree and the timing diagram data processing method of multivalued decision diagram
CN110097581B (en) Method for constructing K-D tree based on point cloud registration ICP algorithm
CN111597404A (en) Based on k2Maximum common subgraph matching method of labeled graph of MDD (minimization drive distribution)
Yin et al. Quadtree representation and compression of spatial data
CN107248930B (en) Based on k2Web service composition method of MDD
Tanimoto A method for detecting structure in polygons
Gori et al. The RW2 algorithm for exact graph matching
CN116363234A (en) Data compression format of graph adjacency list and calculation method of graph algorithm of data compression format
Bille et al. Compressed data structures for range searching
Jahn et al. A scaled space-filling curve index applied to tropical rain forest tree distributions
Gutiérrez et al. cKd-tree: a Compact Kd-tree
Uno et al. Bounding the number of reduced trees, cographs, and series-parallel graphs by compression

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WW01 Invention patent application withdrawn after publication

Application publication date: 20200828

WW01 Invention patent application withdrawn after publication