CN102521332B - Graphic mode matching method, device and system based on strong simulation - Google Patents

Graphic mode matching method, device and system based on strong simulation Download PDF

Info

Publication number
CN102521332B
CN102521332B CN 201110402608 CN201110402608A CN102521332B CN 102521332 B CN102521332 B CN 102521332B CN 201110402608 CN201110402608 CN 201110402608 CN 201110402608 A CN201110402608 A CN 201110402608A CN 102521332 B CN102521332 B CN 102521332B
Authority
CN
China
Prior art keywords
coupling
node
pattern
antithesis
treatment facility
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.)
Expired - Fee Related
Application number
CN 201110402608
Other languages
Chinese (zh)
Other versions
CN102521332A (en
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.)
Beihang University
Original Assignee
Beihang University
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 Beihang University filed Critical Beihang University
Priority to CN 201110402608 priority Critical patent/CN102521332B/en
Publication of CN102521332A publication Critical patent/CN102521332A/en
Application granted granted Critical
Publication of CN102521332B publication Critical patent/CN102521332B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention provides a graphic mode matching method, device and system based on strong simulation, wherein the graphic mode matching method comprises the following steps of: acquiring a matched mode graph and a data graph; establishing matched spheres with sphere centers at nodes of the data graph and radius equal to the diameter of the matched mode graph; respectively matching all the matched spheres according to the constraint condition of dual stimulation so as to acquire a set of dual mode relationships in the matched spheres and the matched mode graph; according to the set of dual moderelationships, acquiring matched subgraphs in the matched spheres, wherein the matched subgraphs contain the sphere centers of the matched spheres where the matched subgraphs locate. The invention further provides the corresponding device and system. The method, the device and the system provided by the invention can realize the graphic mode matching efficiently and accurately.

Description

Chart-pattern matching process, Apparatus and system based on strong simulation
Technical field
The present invention relates to the database search technology, relate in particular to a kind of chart-pattern matching process, Apparatus and system based on strong mode, belong to database technical field.
Background technology
The chart-pattern coupling is called the chart-pattern inquiry again, technical fields such as social network relationships excavation, biometric database, software piracy detection and intelligent information analyzing and processing have been widely applied to, in these are used, data are not only single entity, contact between the data is also of equal importance, figure is applied in the above-mentioned field as a kind of new types of data storage organization of can expression data, contacting between again can expression data, and can be called as diagram data.
The chart-pattern coupling is inquiry and the search operaqtion to this diagram data, generally speaking, chart-pattern is the one group of constraint to diagram data that takes out from use, this restriction table is reached a mode chart, equal portability is to the semantic constraint of institute's query graph data on the node of this mode chart and the limit, wherein utilize node representative data itself, and the contact between the representative data of limit.The chart-pattern coupling namely is under the situation of given diagram data and query pattern figure, in diagram data (generally very big), inquire the data subgraph that some nodes (data) and limit (contacts between the data) are formed, make this data subgraph meet the expressed constraint of query pattern figure, namely find the coupling mapping of the node in this data subgraph of node in the mode chart, and the coupling mapping on the limit of the limit in the mode chart in this data subgraph.
In the present chart-pattern matching process, a kind of matching process based on subgraph isomorphism (subgraph isomorphism) is arranged, its coupling be by the node set of mode chart and limit gather the node set of data subgraph and limit set one by one mapping determine, the too strictness of constraint that the subgraph isomorphism is expressed, it requires mode chart to be point-to-point, to shine upon one by one while arriving to the coupling of data plot, the semantic constraint of this strictness tends to make Query Result to omit and uses desired matching result, can't look for full information needed.
Above-mentioned two kinds of chart-pattern matching process of the prior art can't increase the accuracy rate that chart-pattern mates when raising the efficiency.
Summary of the invention
The invention provides a kind ofly for chart-pattern matching process, the Apparatus and system based on strong simulation of realizing efficiently and accurately carrying out the chart-pattern coupling, can when improving the chart-pattern matching efficiency, provide its accuracy rate.
One aspect of the present invention provides a kind of chart-pattern matching process based on strong simulation, comprising:
Obtain match pattern figure and data plot;
Each node with described data plot is the centre of sphere, is that radius is set up the coupling spheroid with the diameter of described match pattern figure;
Constraint condition according to the antithesis simulation is carried out matching treatment to all described coupling spheroids respectively, to obtain the antithesis pattern set of relationship in described match pattern figure and each coupling spheroid, described antithesis simulation constraint condition is that the node among the match pattern figure is identical with the type of its antithesis matched node in the coupling spheroid, there is the antithesis matched node of the filial generation node of the node among the described match pattern figure in the antithesis matched node that has the parent node of the node among the described match pattern figure in the described coupling spheroid in the described coupling spheroid;
According to described antithesis pattern set of relationship, obtain the coupling subgraph in all described coupling spheroids, comprise the centre of sphere of the coupling spheroid at its place in the described coupling subgraph.
Another aspect of the present invention provides a kind of chart-pattern coalignment based on strong simulation, comprising:
Acquisition module is used for obtaining match pattern figure and data plot;
The coupling spheroid is set up module, and each node that is used for described data plot is the centre of sphere, is that radius is set up the coupling spheroid with the diameter of described match pattern figure;
The matching treatment module, be used for respectively all described coupling spheroids being carried out matching treatment according to the constraint condition of antithesis simulation, to obtain the antithesis pattern set of relationship of described match pattern figure and each coupling spheroid, described antithesis simulation constraint condition is that the node among the match pattern figure is identical with the type of its antithesis matched node in the coupling spheroid, there is the antithesis matched node of the filial generation node of the node among the described match pattern figure in the antithesis matched node that has the parent node of the node among the described match pattern figure in the described coupling spheroid in the described coupling spheroid;
Coupling subgraph generation module is used for according to described antithesis pattern set of relationship, obtains the coupling subgraph in all described coupling spheroids, comprises the centre of sphere of the coupling spheroid at its place in the described coupling subgraph.
Another aspect of the present invention provides a kind of chart-pattern matching system based on strong simulation, comprises a main treatment facility, and more than one from treatment facility; Described main treatment facility is used for obtaining match pattern figure and data plot, and described data plot is divided into plural data subgraph, and described plural data subgraph is with corresponding one by one from treatment facility and main treatment facility;
Described main treatment facility also is used for described match pattern figure, and corresponding data subgraph sends to from treatment facility, and each node that is used for the data subgraph of correspondence is the centre of sphere, diameter with described match pattern figure is that radius is set up the coupling spheroid, and respectively the coupling spheroid of setting up is carried out matching treatment according to the constraint condition of antithesis simulation, to obtain the antithesis pattern set of relationship of described match pattern figure and each coupling spheroid; And according to described antithesis pattern set of relationship, obtain the coupling subgraph in the coupling spheroid;
Described each node that is used for the data subgraph of correspondence from treatment facility more than is the centre of sphere, diameter with described match pattern figure is that radius is set up the coupling spheroid, and respectively the coupling spheroid of setting up is carried out matching treatment according to the constraint condition of antithesis simulation, to obtain the antithesis pattern set of relationship of described match pattern figure and each coupling spheroid, and be used for according to described antithesis pattern set of relationship, obtain the coupling subgraph in the coupling spheroid, and the coupling subgraph that will obtain sends described main treatment facility.
Another aspect of the present invention also provides another kind of chart-pattern matching system based on strong simulation, comprises a main treatment facility, and more than two from treatment facility;
Described main treatment facility is used for obtaining match pattern figure and data plot, and described data plot is divided into plural data subgraph, and described plural data subgraph is with corresponding one by one from treatment facility;
Described main treatment facility also is used for described match pattern figure, and corresponding data subgraph sends to from treatment facility;
Described each node that is used for the data subgraph of correspondence from treatment facility more than two is the centre of sphere, diameter with described match pattern figure is that radius is set up the coupling spheroid, and respectively the coupling spheroid of setting up is carried out matching treatment according to the constraint condition of antithesis simulation, to obtain the antithesis pattern set of relationship of described match pattern figure and each coupling spheroid, and be used for according to described antithesis pattern set of relationship, obtain the coupling subgraph in the coupling spheroid, and the coupling subgraph that will obtain sends described main treatment facility.
Chart-pattern matching process based on strong simulation provided by the invention, device and system, what it was concrete is that data plot is converted to a plurality of coupling spheroids, respectively each coupling spheroid is carried out matching treatment according to the constraint condition of antithesis simulation then, to obtain the antithesis pattern set of relationship that satisfies the constraint condition of described antithesis simulation in match pattern figure and each coupling spheroid, at last again according to this antithesis pattern set of relationship, obtain the coupling subgraph in each coupling spheroid, and comprise the centre of sphere that mates spheroid in the final coupling subgraph that obtains, because the antithesis of foundation simulation constraint condition in the above-mentioned matching treatment process, the node that not only defines among the match pattern figure is identical with the type of its antithesis matched node in the coupling spheroid, and there is the antithesis matched node of the parent node of the node among the match pattern figure in the coupling spheroid, the antithesis matched node that has the filial generation node of the node among the match pattern figure in the coupling spheroid, make it possible to carry out accurately the chart-pattern coupling, while technical scheme provided by the invention, wherein calculated amount is directly proportional with the cube of interstitial content in the data plot, with respect to the chart-pattern matching way based on the subgraph isomorphism of the prior art, also can improve the speed of chart-pattern coupling.
Description of drawings
Fig. 1 is the schematic flow sheet that the present invention is based on the chart-pattern matching process embodiment of strong simulation;
Fig. 2 is the schematic flow sheet in specific embodiment of the present invention;
Fig. 3 is the structural representation of match pattern figure in the specific embodiment of the invention;
Fig. 4 is the structural representation of the match pattern figure after minimizing in the specific embodiment of the invention;
Fig. 5 is the structural representation that the present invention is based on the chart-pattern coalignment embodiment of strong simulation.
Embodiment
Can't efficiently and accurately carry out at chart-pattern matching process of the prior art, the embodiment of the invention provides a kind of chart-pattern matching process based on strong simulation, Fig. 1 is the schematic flow sheet that the present invention is based on the chart-pattern matching process embodiment of strong simulation, as shown in Figure 1, comprise the steps:
Step 101, obtain match pattern figure and data plot;
Step 102, being the centre of sphere with each node of described data plot, is that radius is set up the coupling spheroid with the diameter of described match pattern figure;
Step 103, constraint condition according to the antithesis simulation is carried out matching treatment to described coupling spheroid respectively, to obtain the antithesis pattern set of relationship that satisfies the constraint condition of described antithesis simulation in described match pattern figure and each coupling spheroid, above-mentioned antithesis simulation constraint condition is that the node among the match pattern figure is identical with the type of its antithesis matched node in the coupling spheroid, there is the antithesis matched node of the filial generation node of the node among the described match pattern figure in the antithesis matched node that has the parent node of the node among the described match pattern figure in the described coupling spheroid in the described coupling spheroid;
Step 104, according to described antithesis pattern set of relationship, obtain the coupling subgraph in the described coupling spheroid, described coupling subgraph comprises the centre of sphere of described coupling spheroid.
The chart-pattern matching process based on strong simulation that the above embodiment of the present invention provides, what it was concrete is that data plot is converted to a plurality of coupling spheroids, respectively each coupling spheroid is carried out matching treatment according to the constraint condition of antithesis simulation then, to obtain the antithesis pattern set of relationship that satisfies the constraint condition of described antithesis simulation in match pattern figure and each coupling spheroid, at last again according to this antithesis pattern set of relationship, obtain the coupling subgraph in each coupling spheroid, and comprise the centre of sphere that mates spheroid in the final coupling subgraph that obtains, because the antithesis of foundation simulation constraint condition in the above-mentioned matching treatment process, the node that not only defines among the match pattern figure is identical with the type of its antithesis matched node in the coupling spheroid, and there is the antithesis matched node of the parent node of the node among the match pattern figure in the coupling spheroid, the antithesis matched node that has the filial generation node of the node among the match pattern figure in the coupling spheroid, make it possible to carry out accurately the chart-pattern coupling, the technical scheme that the while embodiment of the invention provides, wherein calculated amount is directly proportional with the cube of interstitial content in the data plot, with respect to the chart-pattern matching way based on the subgraph isomorphism of the prior art, also can improve the speed of chart-pattern coupling.
Concrete before carrying out above-mentioned step 103, can carry out minimization to match pattern figure, obtain the match pattern figure after the minimization.This minimization can effectively reduce the calculated amount in the final matching process.Concrete, this minimization process can for:
The node of equal value that obtains among the described match pattern figure is right, and described equivalence class node is generated node to replacing with one, if when having the limit to be connected between right two nodes of above-mentioned node of equal value, then be that described generation node increases the generation limit.
For convenience of explanation, following several concepts of using in the embodiment of the invention are described, at first in step 101, get access to match pattern figure and data plot, wherein for match pattern figure, can use Q (V Q, E Q, l Q), and for data plot, can be used for G (V G, E G, l G) expression, wherein V QThe set of node among the expression match pattern figure, E QThe set on limit among the expression match pattern figure, l QBe the function of node and limit tax label among the match pattern figure, it regards this node types as; Similarly, V GThe set of node in the expression data plot, E QThe set on limit in the expression data plot, l GFor the function of node in the data plot and limit tax label, namely can regard this node types as.
And for the concept that antithesis is simulated, can followingly understand, when match pattern figure and data plot antithesis pattern, can remember and make to exist binary relation:
Figure BDA0000116752350000051
In fact, this binary relation S correspondence all nodes among the match pattern figure, and the set of the antithesis matched node in data plot, also can be described as the antithesis simulation set of relationship of match pattern figure and data plot, node among the match pattern figure and the corresponding node in data plot thereof satisfy antithesis pattern constraint condition, and this antithesis simulation constraint condition specifically comprises:
(1) (wherein node u is the node among the match pattern figure Q, i.e. u ∈ V for u, v) ∈ S for binary relation arbitrarily Q, node v is the node among the data plot G, i.e. v ∈ V G, the node of above-mentioned match pattern figure, identical with the type of its antithesis matched node in data plot, namely satisfy l Q(u)=l G(v);
(2) (u, v) ∈ S is if exist node u among the match pattern figure Q for binary relation arbitrarily 1, make limit (u, u 1) E that belongs to Q, i.e. (u, u 1) ∈ E Q, then in data plot G, have limit (v, v 1), i.e. (v, v 1) ∈ E G, for u 1And v 1Satisfy following relation: (u 1, v 1) ∈ S, can guarantee for the descendent node of the node u among the match pattern figure Q, corresponding antithesis matched node is arranged also in data plot G like this; In addition, there is node u among the match pattern figure Q 2, make limit (u, u 2) E that belongs to QSubclass, i.e. (u 2, u) ∈ E Q, then in data plot G, have limit (v, v 2), i.e. (v 2, v) ∈ E G, for u 1And v 1Also should satisfy following relation: (u 2, v 2) ∈ S, can guarantee for the parent node of the node u among the match pattern figure Q, corresponding antithesis matched node is arranged also in data plot G like this.
The above embodiment of the present invention is to handle at match pattern figure and coupling spheroid, for the coupling spheroid, can obtain according to following mode, to any node v among the data plot G, can this node v centered by, be that the sphere of radius is the coupling spheroid of G with r (r is a nonnegative integer)
Figure BDA0000116752350000061
Wherein r is the diameter of match pattern figure Q, and namely r is any two internodal maximal values among the match pattern figure, for the coupling spheroid
Figure BDA0000116752350000062
It satisfies:
(1) to arbitrary node
Figure BDA0000116752350000063
V to the shortest path length of v ' less than r, i.e. dist (v, v ')≤r;
(2)
Figure BDA0000116752350000064
The limit collection be the subclass of the limit collection of G.For the coupling subgraph, can followingly understand: given binary relation
Figure BDA0000116752350000065
The match map of definition S correspondence is the coupling subgraph among the data plot G, and note is made G[V S, E S], wherein for any node v in the coupling subgraph, v ∈ V S, then v also should be in binary relation S, in addition for any (v, v ') ∈ E on one side in the coupling subgraph S, in match pattern figure Q, exist limit (u, u ') to satisfy (u, v) ∈ S and (u ', v ') ∈ S.
Among each embodiment of the present invention, by strong simulated mode match pattern figure Q being carried out matching treatment, is to carry out respectively at the coupling of the difference in data plot spheroid.Match pattern figure and coupling spheroid coupling can remember work Refer to that in the matching process of match pattern figure and coupling spheroid, match pattern figure should satisfy the constraint condition that antithesis is simulated with the coupling spheroid, the while also will confirm to mate the centre of sphere that has comprised the coupling spheroid in the subgraph, namely for the coupling spheroid In coupling subgraph G S, should satisfy (being that corresponding binary relation is S); Make G again SIn comprise a w, and be the coupling subgraph of S correspondence.Here w is the node of G, the centre of sphere of coupling spheroid, d QIt is the radius of match pattern figure Q.
As shown in Figure 2, below be specific embodiment of the present invention, concrete comprise following step:
The match pattern figure of step 201, reception user input, and obtain the data plot of storage in advance;
Step 202, being the centre of sphere with each node in the data plot, is that radius makes up the coupling spheroid with the diameter of match pattern figure, and the number of the coupling spheroid of setting up in this step is identical with the number of node in the data plot;
Step 203, match pattern figure Q is carried out minimization, obtain minimized match pattern figure Q ', and match pattern figure Q and minimized match pattern figure Q ' equivalence (note is made Q ≡ Q '), namely for data plot G, Q is identical with the matching result of Q ' on G, simultaneously, the number sum that also satisfies the interstitial content of match pattern figure Q and limit is not more than node number and the limit number sum of Q ', with reference to match pattern figure Q and Q ' before and after figure 3 and the minimization shown in Figure 4, this minimization comprises following flow process:
(1) calculates match pattern figure Q at the matching relationship of simulating from antithesis on one's body, note binary relation S;
(2) based on S be among the match pattern figure Q each node to calculate corresponding node of equal value right, for example, for the node of equal value among the match pattern figure Q to u and v, not only need to satisfy (u, v) ∈ S and (v, u) ∈ S just requires the node of node centering of equal value need have identical type, and the node of node centering of equal value has parent node and filial generation node of equal value; For example the node C1 shown in Fig. 3 and node C2 are that node of equal value is right, and Node B 1 and Node B 2 are that node of equal value is right, and node D1 and node D2 are that node of equal value is right;
(3) generate node for each node of equal value that obtains in above-mentioned (2) to generating one, and it is right to replace original node of equal value, for example shown in Figure 4, node of equal value is replaced with generation node C to node C1 and node C2, node of equal value is replaced with the generation Node B to Node B 1 and Node B 2, node of equal value is replaced with generation node D to node D1 and node D2; In addition, if among the former match pattern figure, when between two right nodes of node of equal value, having the limit to be connected, then be that above-mentioned generation node increases the generation limit, example has the limit to connect as shown in Figure 3 and Figure 4 between node C1 and the node C2, then increased the generation limit for generating node C;
(4) it is right above-mentioned generation node to be replaced former node of equal value, obtain the match pattern figure after the minimization, and this match pattern figure has comprised possible generation limit.
In the concrete enforcement of the present invention, when obtaining match pattern figure in the antithesis pattern set of relationship of each coupling on spheroid, can realize by dual mode, the one, can carry out the coupling pre-service optimization of antithesis simulation earlier, and then draw antithesis pattern set of relationship, or directly draw antithesis pattern set of relationship, respectively can be referring to following step 204, or step 205.
The coupling pre-service that step 204, execution are simulated based on antithesis, this step are as the optimizing process of whole matching process, and it is very obvious to optimize effect when data plot is more sparse; What it was concrete can comprise following flow process:
(1) obtains the matching relationship S based on antithesis simulation of match pattern figure Q on data plot G;
(2) for data plot G each the coupling spheroid
Figure BDA0000116752350000081
Carry out following step (3) to step (7);
(3) S is projected to the coupling spheroid
Figure BDA0000116752350000082
In, the antithesis simulation set of relationship of obtaining after the projection is S W, and the filtration of initialization simultaneously tag set filterSet, get it and be empty set;
(4) to S WIn arbitrarily binary relation (u, v), wherein u is the node among the match pattern figure Q, and v is Boundary node, and there is node u1 among the match pattern figure Q, u2, satisfy (u, u1) and (u2, u) be the limit of match pattern figure Q, make the descendent node set succ of v (v) gather sim (u1) common factor for empty with the antithesis simulation matched node of u1 simultaneously, or the parent node of v set pred (v) gathers sim (u2) common factor for empty with the antithesis simulation matched node of u2, namely in the coupling spheroid, in the coupling spheroid, do not have corresponding node if satisfy the descendent node of node u among the match pattern figure simultaneously, or the parent node of node u there is not corresponding node among the match pattern figure in the coupling spheroid, then with (u v) adds among the set filterSet;
(5) when filterSet is not sky, take out arbitrary element among the filterSet, the note work (u, v), with (u is v) from S WMiddle deletion;
(6) to any u2, v2 satisfies (u 2, u) ∈ E q, v 2∈ pred (v) ∩ sim (u 2) and
Figure BDA0000116752350000084
With (u2 v2) adds filterSet;
(7) to any u1, v1 satisfies (u, u 1) ∈ E q, v 1∈ succ (v) ∩ sim (u 1) and
Figure BDA0000116752350000085
With (u1 v1) adds filterSet; Go to the execution of step (5) step;
If exist the some u among the match pattern figure Q to satisfy
Figure BDA0000116752350000086
Be that some u among the match pattern figure does not exist the node that satisfies antithesis simulation constraint condition in the spheroid in coupling, then empty
Figure BDA0000116752350000087
In addition, delete all in the above-mentioned steps (5) and do not met node and the antithesis matched node thereof of antithesis simulation constraint condition, removed the new ineligible matching result that the deletion processing brings in the step (5) in step (6) and the step (7).After executing above-mentioned steps, export binary set (S at last W, v).
Step 205, obtain match pattern figure in the antithesis pattern set of relationship of each coupling on spheroid;
If carried out above-mentioned step 204, then can be from obtaining binary set (S at last W, take out S in v) W, mating spheroid as match pattern figure
Figure BDA0000116752350000088
In antithesis pattern set of relationship; Do not go up l if carry out Q(u)=l G(the v) step of stating 204, then for match pattern figure Q, and each coupling spheroid
Figure BDA0000116752350000091
All carry out following step:
(1) for each the node v among the match pattern figure, initialization its antithesis simulation matched node set sim of coupling in the spheroid (v), node u wherein in the coupling spheroid a bit, namely Node u is identical with the type of node v, satisfies namely
Figure BDA0000116752350000093
With;
(2) for each node among each match pattern figure, execution in step (3) if all nodes are all finished, skips to step (6) to step (5) successively;
(3) if exist limit (v, v ') to belong to match pattern Q, i.e. (v, v ') ∈ E Q, make to arbitrary node u ∈ sim (v), coupling spheroid
Figure BDA0000116752350000094
In all do not exist limit (u, u ') to satisfy u ' ∈ sim (v '); Then with u from sim (take out v), namely sim (v) :=sim (v) u}, this step is that the descendent node v ' that determines v among the match pattern figure Q does not exist matched node in the coupling spheroid;
(4) if exist the limit (v ', v) belong to match pattern figure Q, namely (v ', v) ∈ E Q, make to arbitrary node u ∈ sim (v), coupling spheroid
Figure BDA0000116752350000095
In all do not exist the limit (u ', u) satisfy u ' ∈ sim (v '); Then with u from sim (take out v), namely sim (v) :=sim (v) u}, this step is that the parent node v ' that determines v among the match pattern figure Q does not exist matched node in the coupling spheroid;
(5) if
Figure BDA0000116752350000096
Be that node v does not exist the node that satisfies antithesis simulation constraint condition in the coupling spheroid, then return empty set
Figure BDA0000116752350000097
And termination is withdrawed from execution, otherwise is gone to step (2) the execution of this coupling spheroid;
(6) upgrade antithesis pattern set of relationship S W, this S WComprise that all satisfy the node set of antithesis simulation constraint condition, i.e. S in match pattern figure and the coupling spheroid w:={ (v, u) | v ∈ V q, u ∈ sim (v) }, return S w
Step 206, obtain match pattern figure at the coupling subgraph of each coupling in spheroid, this coupling subgraph also can be called perfect subgraph, at first judges in this step and mates spheroid
Figure BDA0000116752350000098
The antithesis pattern set of relationship S that whether is included in of centre of sphere w wIn, if do not exist, think that then match pattern figure does not mate subgraph in this coupling spheroid, namely there is not effectively coupling.After satisfying above-mentioned condition, according to S wMake up coupling subgraph G m, return coupling subgraph G at last m, this coupling subgraph comprises each node of w, and the limit between each node.
In the above embodiment of the present invention, wherein for step 205 and step 206, can obtain match pattern figure antithesis pattern set of relationship thereon to different coupling spheroids successively, and obtain the coupling subgraph, therefore, before execution in step 205, can further judge whether not carry out in addition the coupling spheroid that above-mentioned steps 205 and step 206 are carried out matching treatment, if.Then also need again execution in step 205 and step 206, otherwise can export the coupling subgraph of acquisition.
In the above embodiment of the present invention, the scale of data plot G wherein may be bigger, calculated amount is also a lot, the embodiment of the invention also provides a kind of distributed matching treatment mechanism, finished by distributed system, this distributed system comprise a main treatment facility and more than one from treatment facility, or main treatment facility and more than two from treatment facility, cooperate by above-mentioned main treatment facility with from treatment facility and to carry out above-mentioned matching treatment based on strong simulation.
In concrete implementation process, can obtain match pattern figure Q and data plot G by main treatment facility, and data plot G is divided into plural data subgraph G j, each data subgraph G jCorresponding treatment facility is arranged, for example when main treatment facility is not carried out match pattern figure and is mated the matching treatment of spheroid, this data subgraph be one to one from treatment facility, and when main treatment facility is carried out above-mentioned matching treatment, data subgraph and main treatment facility and be one to one from treatment facility, one of them data subgraph will carry out matching treatment by main treatment facility.Main treatment facility is subsequently with above-mentioned data subgraph G jDistribute to correspondingly from treatment facility with match pattern figure Q, each is obtaining corresponding data subgraph G from treatment facility jBehind match pattern figure Q, each node with the data subgraph that gets access to is the centre of sphere, diameter with described match pattern figure is that radius is set up the coupling spheroid, simultaneously above-mentioned in the process of setting up the coupling spheroid, when especially setting up the coupling spheroid with the borderline node of data subgraph, may also need the information of the node on other data subgraphs, therefore, in the embodiment of the invention, a certain from treatment facility when setting up the coupling spheroid, also need to obtain to other from treatment facility the information of node.
Each is after the centre of sphere is set up the coupling spheroid from treatment facility with the node of the data subgraph of correspondence, can carry out matching treatment to the coupling spheroid of setting up respectively according to the constraint condition of antithesis simulation, and set of relationship simulated in the antithesis that obtains match pattern figure and coupling spheroid, obtain coupling subgraph in above-mentioned spheroid according to antithesis simulation set of relationship then, all include the centre of sphere that mates spheroid in this coupling subgraph.
Each from treatment facility after obtaining above-mentioned coupling subgraph, above-mentioned coupling subgraph is sent to main treatment facility, by main treatment facility all matching results from treatment facility are compiled, obtain the last matching result of match pattern figure in whole data plot.
Further, above-mentioned main treatment facility is before the data subgraph that sends match pattern figure and correspondence from treatment facility, can also be set by main processing match pattern figure is carried out minimization, then to match pattern figure and corresponding data subgraph thereof after treatment facility transmission minimization.
In above-described embodiment, main treatment facility is the control end equipment of whole distributed system, main treatment facility is divided into a plurality of data subgraphs with data plot, to be carried out the data subgraph is carried out matching treatment from treatment facility by each, in concrete implementation process, this main treatment facility also can be responsible for one of them data subgraph is carried out matching treatment according to the method that above-described embodiment provides, and obtains the coupling subgraph.
Fig. 5 is the structural representation that the present invention is based on the chart-pattern matching process system of strong simulation, as shown in Figure 5, it comprises that acquisition module 11, coupling spheroid set up module 12, matching treatment module 13 and coupling subgraph generation module 14, and wherein acquisition module 11 is used for obtaining match pattern figure and data plot; It is the centre of sphere that the coupling spheroid is set up each node that module 12 is used for described data plot, is that radius is set up the coupling spheroid with the diameter of described match pattern figure; Matching treatment module 13
Be used for respectively all described coupling spheroids being carried out matching treatment according to the constraint condition of antithesis simulation, to obtain the antithesis pattern set of relationship of described match pattern figure and each coupling spheroid, described antithesis simulation constraint condition is that the node among the match pattern figure is identical with the type of its antithesis matched node in the coupling spheroid, there is the antithesis matched node of the filial generation node of the node among the described match pattern figure in the antithesis matched node that has the parent node of the node among the described match pattern figure in the described coupling spheroid in the described coupling spheroid; Coupling subgraph generation module 14 is used for according to described antithesis pattern set of relationship, obtains the coupling subgraph in all described coupling spheroids, comprises the centre of sphere of the coupling spheroid at its place in the described coupling subgraph.
The chart-pattern coalignment based on strong simulation that the above embodiment of the present invention provides, what it was concrete is that data plot is converted to a plurality of coupling spheroids, respectively each coupling spheroid is carried out matching treatment according to the constraint condition of antithesis simulation then, to obtain the antithesis pattern set of relationship that satisfies the constraint condition of described antithesis simulation in match pattern figure and each coupling spheroid, at last again according to this antithesis pattern set of relationship, obtain the coupling subgraph in each coupling spheroid, and comprise the centre of sphere that mates spheroid in the final coupling subgraph that obtains, because the antithesis of foundation simulation constraint condition in the above-mentioned matching treatment process, the node that not only defines among the match pattern figure is identical with the type of its antithesis matched node in the coupling spheroid, and there is the antithesis matched node of the parent node of the node among the match pattern figure in the coupling spheroid, the antithesis matched node that has the filial generation node of the node among the match pattern figure in the coupling spheroid, make it possible to carry out accurately the chart-pattern coupling, the technical scheme that the while embodiment of the invention provides, wherein calculated amount is directly proportional with the cube of interstitial content in the data plot, with respect to the chart-pattern matching way based on the subgraph isomorphism of the prior art, also can improve the speed of chart-pattern coupling.
Concrete, this device can also comprise the minimization module, this module is used for described match pattern figure is carried out minimization, match pattern figure after the acquisition minimization, so that the matching treatment module is carried out matching treatment according to the match pattern figure after minimizing, this concrete minimization module of calculated amount that can effectively reduce in the final matching process is right for the node of equal value that obtains described match pattern figure, and described equivalence class node generated node to replacing with one, if when having the limit to be connected between right two nodes of described node of equal value, then be that described generation node increases the generation limit.
In addition, the embodiment of the invention is also supported distributed treatment mechanism, and namely the embodiment of the invention provides a kind of chart-pattern matching system based on strong simulation, and this system comprises a main treatment facility, and more than one from treatment facility; Described main treatment facility is used for obtaining match pattern figure and data plot, and described data plot is divided into plural data subgraph, and described plural data subgraph is with corresponding one by one from treatment facility and main treatment facility; Described main treatment facility also is used for described match pattern figure, and corresponding data subgraph sends to from treatment facility, and each node that is used for the data subgraph of correspondence is the centre of sphere, diameter with described match pattern figure is that radius is set up the coupling spheroid, and respectively the coupling spheroid of setting up is carried out matching treatment according to the constraint condition of antithesis simulation, to obtain the antithesis pattern set of relationship of described match pattern figure and each coupling spheroid; And according to described antithesis pattern set of relationship, obtain the coupling subgraph in the coupling spheroid; Described each node that is used for the data subgraph of correspondence from treatment facility more than is the centre of sphere, diameter with described match pattern figure is that radius is set up the coupling spheroid, and respectively the coupling spheroid of setting up is carried out matching treatment according to the constraint condition of antithesis simulation, to obtain the antithesis pattern set of relationship of described match pattern figure and each coupling spheroid, and be used for according to described antithesis pattern set of relationship, obtain the coupling subgraph in the coupling spheroid, and the coupling subgraph that will obtain sends described main treatment facility.
The main treatment facility that above-described embodiment provides also can distribute a data subgraph, is responsible for setting up the coupling spheroid by this main treatment facility, and carries out matching treatment.In the chart-pattern matching system of another one based on strong simulation, it comprises a main treatment facility, and more than two from treatment facility; Described main treatment facility is used for obtaining match pattern figure and data plot, and described data plot is divided into plural data subgraph, and described plural data subgraph is with corresponding one by one from treatment facility; Described main treatment facility also is used for described match pattern figure, and corresponding data subgraph sends to from treatment facility; Described each node that is used for the data subgraph of correspondence from treatment facility more than two is the centre of sphere, diameter with described match pattern figure is that radius is set up the coupling spheroid, and respectively the coupling spheroid of setting up is carried out matching treatment according to the constraint condition of antithesis simulation, to obtain the antithesis pattern set of relationship of described match pattern figure and each coupling spheroid, and be used for according to described antithesis pattern set of relationship, obtain the coupling subgraph in the coupling spheroid, and the coupling subgraph that will obtain sends described main treatment facility.
One of ordinary skill in the art will appreciate that: all or part of step that realizes said method embodiment can be finished by the relevant hardware of programmed instruction, aforesaid program can be stored in the computer read/write memory medium, this program is carried out the step that comprises said method embodiment when carrying out; And aforesaid storage medium comprises: various media that can be program code stored such as ROM, RAM, magnetic disc or CD.
It should be noted that at last: above embodiment only in order to technical scheme of the present invention to be described, is not intended to limit; Although with reference to previous embodiment the present invention is had been described in detail, those of ordinary skill in the art is to be understood that: it still can be made amendment to the technical scheme that aforementioned each embodiment puts down in writing, and perhaps part technical characterictic wherein is equal to replacement; And these modifications or replacement do not make the essence of appropriate technical solution break away from the scope of various embodiments of the present invention technical scheme.

Claims (10)

1. the chart-pattern matching process based on strong simulation is characterized in that, comprising:
Obtain match pattern figure and data plot;
Each node with described data plot is the centre of sphere, is that radius is set up the coupling spheroid with the diameter of described match pattern figure;
Constraint condition according to the antithesis simulation is carried out matching treatment to all described coupling spheroids respectively, to obtain the antithesis pattern set of relationship in described match pattern figure and each coupling spheroid, described antithesis simulation constraint condition is that the node among the match pattern figure is identical with the type of its antithesis matched node in the coupling spheroid, there is the antithesis matched node of the filial generation node of the node among the described match pattern figure in the antithesis matched node that has the parent node of the node among the described match pattern figure in the described coupling spheroid in the described coupling spheroid;
According to described antithesis pattern set of relationship, obtain the coupling subgraph in all described coupling spheroids, comprise the centre of sphere of the coupling spheroid at its place in the described coupling subgraph.
2. the chart-pattern matching process based on strong simulation according to claim 1 is characterized in that, described constraint condition according to the antithesis simulation carries out also comprising before the matching treatment to described coupling spheroid respectively:
Described match pattern figure is carried out minimization, the match pattern figure after the acquisition minimization.
3. the chart-pattern matching process based on strong simulation according to claim 2 is characterized in that, describedly described match pattern figure is carried out minimization comprises:
The node of equal value that obtains among the described match pattern figure is right, and described node of equal value is generated node to replacing with one, if when having the limit to be connected between right two nodes of described node of equal value, then be that described generation node increases the generation limit.
4. according to the arbitrary described chart-pattern matching process based on strong simulation of claim 1-3, it is characterized in that, carry out chart-pattern matching process based on strong simulation by distributed system, described distributed processing system(DPS) comprises a main treatment facility, and more than one from treatment facility;
Described main treatment facility obtains match pattern figure and data plot, and described data plot is divided into plural data subgraph, described plural data subgraph is with corresponding one by one from treatment facility and main treatment facility, described main treatment facility is with described match pattern figure, and corresponding data subgraph sends to from treatment facility;
Described main treatment facility and be the centre of sphere from treatment facility with each node of the data subgraph of described correspondence more than one, diameter with described match pattern figure is that radius is set up the coupling spheroid, and respectively the coupling spheroid of setting up is carried out matching treatment according to the constraint condition of antithesis simulation, to obtain the antithesis pattern set of relationship of described match pattern figure and each coupling spheroid;
Described main treatment facility and more than one from treatment facility also according to described antithesis pattern set of relationship, obtain the coupling subgraph of coupling in the spheroid;
The described coupling subgraph that will obtain from treatment facility more than sends to described main treatment facility.
5. according to the arbitrary described chart-pattern matching process based on strong simulation of claim 1-3, it is characterized in that, carry out chart-pattern matching process based on strong simulation by distributed system, described distributed processing system(DPS) comprises a main treatment facility, and more than two from treatment facility;
Described main treatment facility obtains match pattern figure and data plot, and described data plot is divided into plural data subgraph, described data subgraph and described corresponding one by one from treatment facility more than two, described main treatment facility is with described match pattern figure, and corresponding data subgraph sends to from treatment facility;
Described more than two from treatment facility, each node with the data subgraph of described correspondence is the centre of sphere, diameter with described match pattern figure is that radius is set up the coupling spheroid, and respectively the coupling spheroid of setting up is carried out matching treatment according to the constraint condition of antithesis simulation, to obtain the antithesis pattern set of relationship of described match pattern figure and each coupling spheroid;
Described more than two from treatment facility also according to described antithesis pattern set of relationship, obtain the coupling subgraph of coupling in the spheroid;
The described coupling subgraph that will obtain from treatment facility more than two sends to described main treatment facility.
6. the chart-pattern coalignment based on strong simulation is characterized in that, comprising:
Acquisition module is used for obtaining match pattern figure and data plot;
The coupling spheroid is set up module, and each node that is used for described data plot is the centre of sphere, is that radius is set up the coupling spheroid with the diameter of described match pattern figure;
The matching treatment module, be used for respectively all described coupling spheroids being carried out matching treatment according to the constraint condition of antithesis simulation, to obtain the antithesis pattern set of relationship of described match pattern figure and each coupling spheroid, described antithesis simulation constraint condition is that the node among the match pattern figure is identical with the type of its antithesis matched node in the coupling spheroid, there is the antithesis matched node of the filial generation node of the node among the described match pattern figure in the antithesis matched node that has the parent node of the node among the described match pattern figure in the described coupling spheroid in the described coupling spheroid;
Coupling subgraph generation module is used for according to described antithesis pattern set of relationship, obtains the coupling subgraph in all described coupling spheroids, comprises the centre of sphere of the coupling spheroid at its place in the described coupling subgraph.
7. the chart-pattern coalignment based on strong simulation according to claim 6 is characterized in that, also comprises:
The minimization module is used for described match pattern figure is carried out minimization, the match pattern figure after the acquisition minimization.
8. the chart-pattern coalignment based on strong simulation according to claim 7, described minimization module is specifically right for the node of equal value that obtains described match pattern figure, and described node of equal value generated node to replacing with one, if when having the limit to be connected between right two nodes of described node of equal value, then be that described generation node increases the generation limit.
9. the chart-pattern matching system based on strong simulation is characterized in that, comprises a main treatment facility, and more than one from treatment facility; Described main treatment facility is used for obtaining match pattern figure and data plot, and described data plot is divided into plural data subgraph, and described plural data subgraph is with corresponding one by one from treatment facility and main treatment facility;
Described main treatment facility also is used for described match pattern figure, and corresponding data subgraph sends to from treatment facility, and each node that is used for the data subgraph of correspondence is the centre of sphere, diameter with described match pattern figure is that radius is set up the coupling spheroid, and respectively the coupling spheroid of setting up is carried out matching treatment according to the constraint condition of antithesis simulation, to obtain the antithesis pattern set of relationship of described match pattern figure and each coupling spheroid; And according to described antithesis pattern set of relationship, obtain the coupling subgraph in the coupling spheroid;
Described each node that is used for the data subgraph of correspondence from treatment facility more than is the centre of sphere, diameter with described match pattern figure is that radius is set up the coupling spheroid, and respectively the coupling spheroid of setting up is carried out matching treatment according to the constraint condition of antithesis simulation, to obtain the antithesis pattern set of relationship of described match pattern figure and each coupling spheroid, and be used for according to described antithesis pattern set of relationship, obtain the coupling subgraph in the coupling spheroid, and the coupling subgraph that will obtain sends to described main treatment facility.
10. the chart-pattern matching system based on strong simulation is characterized in that, comprises a main treatment facility, and more than two from treatment facility;
Described main treatment facility is used for obtaining match pattern figure and data plot, and described data plot is divided into plural data subgraph, and described plural data subgraph is with corresponding one by one from treatment facility;
Described main treatment facility also is used for described match pattern figure, and corresponding data subgraph sends to from treatment facility;
Described each node that is used for the data subgraph of correspondence from treatment facility more than two is the centre of sphere, diameter with described match pattern figure is that radius is set up the coupling spheroid, and respectively the coupling spheroid of setting up is carried out matching treatment according to the constraint condition of antithesis simulation, to obtain the antithesis pattern set of relationship of described match pattern figure and each coupling spheroid, and be used for according to described antithesis pattern set of relationship, obtain the coupling subgraph in the coupling spheroid, and the coupling subgraph that will obtain sends to described main treatment facility.
CN 201110402608 2011-12-06 2011-12-06 Graphic mode matching method, device and system based on strong simulation Expired - Fee Related CN102521332B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201110402608 CN102521332B (en) 2011-12-06 2011-12-06 Graphic mode matching method, device and system based on strong simulation

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201110402608 CN102521332B (en) 2011-12-06 2011-12-06 Graphic mode matching method, device and system based on strong simulation

Publications (2)

Publication Number Publication Date
CN102521332A CN102521332A (en) 2012-06-27
CN102521332B true CN102521332B (en) 2013-09-18

Family

ID=46292249

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201110402608 Expired - Fee Related CN102521332B (en) 2011-12-06 2011-12-06 Graphic mode matching method, device and system based on strong simulation

Country Status (1)

Country Link
CN (1) CN102521332B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104504003B (en) * 2014-12-09 2018-03-13 北京航空航天大学 The searching method and device of diagram data
CN105488289B (en) * 2015-12-09 2018-10-19 四川长虹电器股份有限公司 The method of Dynamic Graph structure matching under distributed environment
CN109614520B (en) * 2018-10-22 2021-06-04 中国科学院信息工程研究所 Parallel acceleration method for multi-pattern graph matching
CN111382315B (en) * 2018-12-29 2024-04-05 阿里巴巴集团控股有限公司 Merging method of sub-graph isomorphic matching results, electronic equipment and storage medium
CN110489607B (en) * 2019-08-01 2021-04-02 北京邮电大学 Isomorphic subgraph query method and device, electronic equipment and storage medium
CN111538867B (en) * 2020-04-15 2021-06-15 深圳计算科学研究院 Method and system for dividing bounded incremental graph
CN112559807B (en) * 2020-12-03 2022-06-21 浙江邦盛科技股份有限公司 Graph pattern matching method based on multi-source point parallel exploration

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101295311A (en) * 2008-06-17 2008-10-29 浙江大学 Semantic matching algorithm of large scale issuance subscription system
CN101404040A (en) * 2008-08-07 2009-04-08 南方电网技术研究中心 Computation resource partition method for power system real-time simulation based on subgraph omorphism
CN102073708A (en) * 2010-12-30 2011-05-25 东北大学 Large-scale uncertain graph database-oriented subgraph query method
US8010544B2 (en) * 2008-06-06 2011-08-30 Yahoo! Inc. Inverted indices in information extraction to improve records extracted per annotation

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8010544B2 (en) * 2008-06-06 2011-08-30 Yahoo! Inc. Inverted indices in information extraction to improve records extracted per annotation
CN101295311A (en) * 2008-06-17 2008-10-29 浙江大学 Semantic matching algorithm of large scale issuance subscription system
CN101404040A (en) * 2008-08-07 2009-04-08 南方电网技术研究中心 Computation resource partition method for power system real-time simulation based on subgraph omorphism
CN102073708A (en) * 2010-12-30 2011-05-25 东北大学 Large-scale uncertain graph database-oriented subgraph query method

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
一种基于图模式匹配的逻辑单元映射算法;倪刚等;《计算机辅助设计与图形学学报》;20061231;第18卷(第12期);1850-1854页 *
倪刚等.一种基于图模式匹配的逻辑单元映射算法.《计算机辅助设计与图形学学报》.2006,第18卷(第12期),1850-1854页.

Also Published As

Publication number Publication date
CN102521332A (en) 2012-06-27

Similar Documents

Publication Publication Date Title
CN102521332B (en) Graphic mode matching method, device and system based on strong simulation
CN106897322B (en) A kind of access method and device of database and file system
Moritz et al. Sparknet: Training deep networks in spark
CN105893349B (en) Classification tag match mapping method and device
US8719299B2 (en) Systems and methods for extraction of concepts for reuse-based schema matching
CN103793422B (en) Methods for generating cube metadata and query statements on basis of enhanced star schema
CN108536761A (en) Report data querying method and server
Perez et al. Ringo: Interactive graph analytics on big-memory machines
CN107526645B (en) A kind of communication optimization method and system
CN109299133A (en) Data query method, computer system and non-transitory computer-readable medium
CN109508355A (en) A kind of data pick-up method, system and terminal device
CN103838672A (en) Automated testing method and device for all-purpose financial statements
US10268749B1 (en) Clustering sparse high dimensional data using sketches
WO2011032077A2 (en) System and method for data management in large data networks
CN109871470B (en) Power grid equipment data labeling management system and implementation method
JP5791149B2 (en) Computer-implemented method, computer program, and data processing system for database query optimization
CN103309904A (en) Method and device for generating data warehouse ETL (Extraction, Transformation and Loading) codes
CN106778880B (en) Microblog topic representation and topic discovery method based on multi-mode deep Boltzmann machine
CN105812175B (en) Resource management method and resource management equipment
CN110866029A (en) sql statement construction method, device, server and readable storage medium
CN105653716A (en) Database construction method and system based on classification-attribute-value
Singh et al. Spatial data analysis with ArcGIS and MapReduce
CN104267974A (en) Method and device for calling business interface
CN104133891A (en) Method for storing massive structural data based on relational database
CN116992887A (en) Metadata data catalog processing method, device and processing equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20130918

Termination date: 20171206