Complex network graph display method and device based on compression clustering algorithm

By merging entity nodes in complex network graphs using a method based on the compression clustering algorithm, the scale and complexity of the network graph is simplified, the performance problem in processing large-scale network graphs in the existing technology is solved, and more efficient information is achieved Obtain and visualize effects.

CN118568523APending Publication Date: 2024-08-30XIAMEN MEIYABAIKE INFORMATION SECURITY RES INST CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410397276.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-04-03
Publication Date
2024-08-30

AI Technical Summary

Technical Problem

When the existing technology processes complex network graphs, as the network scale increases, the direct use of layout algorithms leads to problems such as long processing time, memory overflow, and node accumulation, making it difficult for users to obtain effective information.

Method used

Using a method based on compression clustering algorithm, by parsing entity relationship data, the relationship link between the starting entity and the end entity is constructed, entity nodes with the same counterpart are merged to form a composite entity node, and the merged relationship structure is input into the layout algorithm to draw entities. Relationship diagram, simplifying complexity and reducing the number of nodes.

Benefits of technology

It effectively reduces the size and number of nodes of the network diagram, retains the original structure of the network diagram, improves the efficiency and visualization effect of information acquisition, and solves the problem of users having difficulty in obtaining useful information from complex network diagrams.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure FT_1
    Figure FT_1
  • Figure FT_2
    Figure FT_2
  • Figure FT_3
    Figure FT_3
Patent Text Reader

Abstract

The invention discloses a complex network diagram display method and device based on a compression clustering algorithm, and the method comprises the steps: S1, analyzing entity relation data, and constructing a relation link between a starting point entity and a terminal point entity; s2, constructing maplt according to the relation link; the method comprises the following steps of: 1, int, AdJacentIdgt; the relation structure stores a precursor entity set and a subsequent entity set of each starting point entity and each terminal point entity, the int structure stores the starting point entities or the terminal point entities, and the AdjactId structure is a structural body # imgabs0 # and stores a precursor node set and a subsequent node set corresponding to the starting point entities or the terminal point entities; and S3, setting a query condition, traversing the relation structures meeting the query condition, merging the relation structures, and inputting the merged relation structures into a layout algorithm to draw an entity relation graph.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data visualization technology, and in particular to a method and device for displaying a complex network graph based on a compression clustering algorithm. Background Art

[0002] In data analysis applications, the most useful method is to find the relationship between different nodes, and then display the relationship using a layout algorithm. Since the mid-1990s, complex network visualization has been gaining attention from scholars around the world. In the visualization layout of smaller network graphs, satisfactory results have been achieved. Foreign scholars first proposed the force-directed algorithm, which has different convergence speeds for different graphs.

[0003] At present, most layout algorithms for visualization applications on the market directly use conventional layout algorithms to draw them, and the displayed results are limited by the limitations of the graphics display equipment itself. As the scale of the processed network graph continues to increase, directly using layout algorithms for layout will, on the one hand, cause the processing time to exceed the user's tolerance and even cause memory overflow, and on the other hand, cause a large number of nodes to pile up on the canvas so that users cannot obtain useful information from them, losing the original meaning of visualization.

[0004] Therefore, faced with the dilemma of the network graph being too large, certain processing methods must be adopted in order to quickly present the required beautiful graphics to users. Summary of the invention

[0005] In response to the technical problem in the prior art that it becomes extremely difficult to obtain effective information from the display results due to the complexity of complex networks, the exponential growth of data volume and the limitations of people's ability to perceive graphics, the present application proposes a complex network graph display method and device based on a compression clustering algorithm.

[0006] According to one aspect of the present invention, a complex network graph display method based on a compression clustering algorithm is proposed, comprising the following steps:

[0007] S1. Parse entity relationship data to build a relationship link between the starting entity and the end entity;

[0008] S2. Build a map based on the relationship link<int,AdjacentId> The relationship structure stores the predecessor entity set and successor entity set of each starting point entity and end point entity. The int structure stores the starting point entity or the end point entity. The AdjacentId structure is a structure Store the predecessor node set and the successor node set of the corresponding starting point entity or end point entity;

[0009] S3. Set query conditions, traverse the relationship structures that meet the query conditions and merge them, and input the merged relationship structures into the layout algorithm to draw an entity relationship diagram.

[0010] By constructing a map<int,AdjacentId> The relational structure stores and merges entity relationships, which can intuitively display the associations between different nodes, thereby simplifying the complexity of the entity relationship diagram to be drawn. While greatly reducing the size of the network diagram, it can also retain the original structure of the network diagram.

[0011] Preferably, S2 specifically includes traversing the relationship links, and for a starting point entity in a relationship link, constructing a map<starting point entity, >, store the end entity corresponding to the starting entity into the successor entity set. If the starting entity is also the end entity in another relationship link, store the starting entity in the other relationship link into the predecessor entity set of the starting entity. For the end entity in a relationship link, construct a map<end entity. >, store the starting entity corresponding to the end entity in the predecessor entity set; if the end entity is also the starting entity in another relationship link, store the end entity in the other relationship link in the successor entity set.

[0012] Further preferably, S2 specifically includes: if the relationship link direction is entity A->entity B or entity A-entity B (unknown direction), entity A is taken as the starting entity and entity B is taken as the end entity, then entity A is the predecessor entity of entity B, and entity B is the successor entity of entity A; if the relationship link direction is B->A, then entity B is taken as the starting entity and entity A is taken as the end entity, then entity A is the successor entity of entity B, and entity B is the predecessor entity of entity A; if the relationship link direction is A<->B, then entity A and entity B need to be taken as the starting entity and the end entity respectively, then entity A and entity B are each other's predecessor and successor entities.

[0013] By constructing a predecessor entity set and a successor entity set corresponding to each entity, the entity relationship that originally required a large number of relationship links to describe can be converted into a description using a set of entities, simplifying the complexity of merging entity relationships.

[0014] More preferably, S3 specifically includes traversing the relationship structure that meets the query conditions and constructing a map <AdjacentId,set <int>>Compound structure, find out whether the AdjacentId structure in the relationship structure is equal to the AdjacentId structure of the compound structure. If they are equal, insert the entity corresponding to the relationship structure into the set of the compound structure. <int>In the structure, if they are not equal, apply for a new set <int>The structure stores the entities corresponding to the AdjacentId structure in the relationship structure, and repeats this step until all the relationship structures are traversed to establish a composite structure set that meets the query conditions.

[0015] More preferably, the composite structure set is traversed, and the set of the composite structure <int>Structure C3, by formula Calculate the subscript, if a i ≥0, then select a i The integer part of is used as the subscript, and the entity corresponding to the subscript is found in C3 as the composite entity, and the other entities are deleted; if a i <0, no deletion will be performed.

[0016] By storing entities with the same predecessor entity set and successor entity set in the same set <int>In the structure, an entity is selected as a composite entity. When the subsequent layout algorithm draws the graph, all entities that originally connected the same predecessor entity and the same successor entity are replaced by one entity, thereby reducing the complexity of the drawing.

[0017] Preferably, S1 further includes obtaining the entity relationship data according to the relationship model, specifically including:

[0018] S101, obtaining the table data of the original entity relationship, selecting two columns of data in the data as the unique identifier of entity A and the unique identifier of entity B respectively, and further selecting a column of data as an entity label for displaying entity information, thereby constructing a relationship model of the two columns of data;

[0019] S102, removing empty and duplicate data in the column where the entity unique identifier is located in the data, forming the relationship configuration data, and storing it;

[0020] S103, parsing the relationship configuration data, and constructing a relationship link between the starting point entity and the end point entity.

[0021] Preferably, the layout algorithm includes but is not limited to a force-guided layout algorithm and an organizational architecture layout algorithm.

[0022] According to a second aspect of the present invention, a complex network diagram display device based on a compression clustering algorithm is proposed, comprising the following modules:

[0023] Data parsing module: parses entity relationship data to build relationship links between the starting entity and the end entity;

[0024] Relationship storage module: build a map based on the relationship links<int,AdjacentId> The relationship structure stores the predecessor entity set and successor entity set of each starting point entity and end point entity. The int structure stores the starting point entity or the end point entity. The AdjacentId structure is a structure Store the predecessor node set and the successor node set of the corresponding starting point entity or end point entity;

[0025] Query display module: set query conditions, traverse the relationship structures that meet the query conditions and merge them, and input the merged relationship structures into the layout algorithm to draw the entity relationship diagram.

[0026] According to a third aspect of the present invention, a computer-readable medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the method according to any one of the first aspects is implemented.

[0027] According to a fourth aspect of the present invention, a computing system is provided, comprising a processor and a memory, wherein the processor is configured to execute the method according to any one of the first aspects.

[0028] The present invention is beneficial in that:

[0029] After constructing entity relationship data through a customized relationship model, the adjacent nodes of each entity node in the entity relationship data are calculated, and the entity nodes with the same counterparts are merged to form composite entity nodes for data visualization. The present invention does not affect the overall structure of the network diagram, but reduces the number of nodes in the network diagram, thus solving the problem of difficulty in obtaining effective information in the network diagram. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] The accompanying drawings are included to provide a further understanding of the embodiments and are incorporated into and constitute a part of this specification. The accompanying drawings illustrate the embodiments and are used together with the description to explain the principles of the present invention. It will be easy to recognize other embodiments and many expected advantages of the embodiments because they become better understood by reference to the following detailed description. The elements of the accompanying drawings are not necessarily to scale with each other. The same reference numerals refer to corresponding similar parts.

[0031] Figure 1 A schematic diagram of a process of a complex network graph display method based on a compression clustering algorithm according to the present invention is shown;

[0032] Figure 2 A schematic diagram showing the effect of the first set of data before processing;

[0033] Figure 3 A schematic diagram showing the effect of the first set of data after being processed by the method proposed by the present invention is shown;

[0034] Figure 4 A schematic diagram showing the effect of the second set of data before processing is shown;

[0035] Figure 5 A schematic diagram showing the effect of the second set of data after being processed by the method proposed by the present invention is shown;

[0036] Figure 6 A schematic diagram showing the effect of the third group of data before processing;

[0037] Figure 7 A schematic diagram showing the effect of the third group of data after being processed by the method proposed by the present invention is shown;

[0038] Figure 8 A schematic structural diagram of a complex network diagram display device based on a compression clustering algorithm according to the present invention is shown;

[0039] Fig. 9 It is a schematic diagram of the structure of a computer device suitable for implementing the electronic device of the embodiment of the present invention. DETAILED DESCRIPTION

[0040] The present application will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the relevant invention, rather than to limit the invention. It should also be noted that, for ease of description, only the parts related to the relevant invention are shown in the accompanying drawings.

[0041] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0042] Figure 1 A complex network graph display method based on a compression clustering algorithm according to the present invention is provided, comprising the following steps:

[0043] S1. Parse entity relationship data to build a relationship link between the starting entity and the end entity;

[0044] S2. Build a map based on the relationship link<int,AdjacentId> The relationship structure stores the predecessor entity set and successor entity set of each starting point entity and end point entity. The int structure stores the starting point entity or the end point entity. The AdjacentId structure is a structure Store the predecessor node set and the successor node set of the corresponding starting point entity or end point entity;

[0045] S3. Set query conditions, traverse the relationship structures that meet the query conditions and merge them, and input the merged relationship structures into the layout algorithm to draw an entity relationship diagram.

[0046] S1 also includes obtaining the entity relationship data according to the relationship model, specifically including:

[0047] S101, obtaining the table data of the original entity relationship, selecting two columns of data in the data as the unique identifier of entity A and the unique identifier of entity B respectively, and further selecting a column of data as an entity label for displaying entity information, thereby constructing a relationship model of the two columns of data;

[0048] S102, removing empty and duplicate data in the column where the entity unique identifier is located in the data, forming the relationship configuration data, and storing it;

[0049] S103, parsing the relationship configuration data, and constructing a relationship link between the starting point entity and the end point entity.

[0050] The relationship between entities includes but is not limited to transaction relationship, call relationship, etc. For example, in transaction data, an entity can be the name of the trader, the card number held, the bank, etc., and the deposit, withdrawal and remittance in the transaction can be regarded as the relationship between the two entities. In a call relationship, an entity can be the name, number, location, operator, etc. of the caller, and the dialing and access in the call process can be regarded as the relationship between the two entities.

[0051] Taking the transaction relationship as an example, you can select your own card number in the table data as the unique identifier of entity A, and the other party's card number as the unique identifier of entity B. Your name and the other party's name can be displayed as labels of entity A and B respectively on the interface, and the access type (transfer in / out) is used as the link direction. The transaction amount and transaction time can be displayed as link labels. In this way, a transaction relationship model of your own card number and the other party's card number is constructed, the relationship configuration data configured by the transaction relationship model is saved, and the relationship link is constructed according to the relationship configuration data and stored in the link database for subsequent re-analysis and query of link details.

[0052] Construct a SQL query statement, find the relationship records that meet the conditions from the link database according to the search conditions, and use the value of the column where the link direction is located to determine which of entity A and entity B is the starting entity and which is the end entity.

[0053] If the relationship link direction is entity A->entity B or entity A-entity B (unknown direction), entity A is taken as the starting entity and entity B is taken as the end entity, then entity A is the predecessor entity of entity B, and entity B is the successor entity of entity A; if the relationship link direction is B->A, then entity B is taken as the starting entity and entity A is taken as the end entity, then entity A is the successor entity of entity B, and entity B is the predecessor entity of entity A; if the relationship link direction is A<->B, then entity A and entity B need to be taken as the starting entity and the end entity respectively, then entity A and entity B are each other's predecessor and successor entities.

[0054] If you need to build a reverse graph, you need to invert the value of the link direction determined in the relationship model and then confirm the starting point entity and the end point entity.

[0055] If the link direction is not selected in the relationship model, an undirected graph is constructed. By default, entity A is used as the starting entity and entity B is used as the end entity. In this case, entity A is the predecessor entity of entity B, and entity B is the successor entity of entity A.

[0056] As an example, in a transaction relationship, for example, if the link direction is the access type column in the data, and the access type includes transfer-in and transfer-out, if the access type between card number A and card number B is transfer-out, the link direction is A—>B; if the access type between card number A and card number B is transfer-in, the link direction is B—>A; if the access type between A and B is a null value, the default link direction is A—B; if the access type between A and B includes both transfer-in and transfer-out, the link direction is A<—>B.

[0057] In a specific embodiment, S2 specifically includes traversing the relationship links, by constructing a map<key,value> The entity and its corresponding predecessor entity set and successor entity set are stored in the form of key-value pairs. Each entity in the relationship link being searched and its predecessor entity set and successor entity set are stored as an adjacency relationship map<int,AdjacentId> Structure C, the int structure of structure C is used as the key to store entities, where AdjacentId is a structure and the predecessor node set of the corresponding entity as the value <int>and the set of successor nodes set <int>, so that subsequent merges with the same predecessor and successor entities can be performed.

[0058] For a pair of starting entity A and end entity B in a relationship link, if the ID value of the starting entity A already exists in the key of structure C, B will be appended to the successor entity set of A. If the ID of the starting entity A does not exist in the key of structure C, a new AdjacentId structure will be applied for, the end entity B will be stored in the successor entity set of A, and A and the new AdjacentId structure will be mapped and stored in structure C.

[0059] At the same time, for the end entity B, if the ID value of B already exists in the key of structure C, A is appended to the predecessor entity set of B. If the ID of the end entity B does not exist in the key of structure C, a new AdjacentId structure is applied for, the starting entity A is stored in the predecessor entity set of B, and the B and the new AdjacentId structure are mapped and stored in structure C.

[0060] Repeat the above operation for each starting point entity and end point entity to form a map<int,AdjacentId> Structure C.

[0061] As an example, if there are A->B, D->B, E->B, F->A, B->H relationships between entities, then map<int,AdjacentId> The structure C stores

[0062] Note: The content in {} is the key-value pair mapping constructed by the present invention, the content in () stores the AdjacentId structure, the upper part of () stores the predecessor entity set [], and the lower part stores the successor entity set [].

[0063] After completing the above steps, traverse the structure C and build a map <AdjacentId,set <int>>Compound structure, check whether the AdjacentId structure in structure C is equal to the AdjacentId structure of the compound structure. If they are equal, insert the entity corresponding to the relationship structure into the set of the compound structure. <int>If they are not equal, apply for a new set collection to store the entity corresponding to the AdjacentId structure in structure C, and repeat this step until all the relationship structures are traversed to establish a composite structure set C1 that meets the query conditions.

[0064] As an example, if there are A->B, D->B, E->B, F->A, B->H relationships between entities, after the above steps, the structure C generates a composite structure set C1 to store:

[0065]

[0066] Traverse the composite structure set C1, and for the set of composite structure C1 <int>Structure C3, by formula Calculate the subscript, if a i ≥0, then select a i The integer part of is used as the subscript, and the entity corresponding to the subscript is found in C3 as the composite entity, and the other entities are deleted; if a i <0, no deletion will be performed.

[0067] As an example, in the above example, only The key-value pairs can be expressed by the formula Get a i =0, satisfying a i ≥0, the subscript is 0 after rounding, so the entity D with subscript 0 is selected as the composite entity, and the entity E and its associated links are deleted for merging. The remaining key-value pairs do not satisfy a after calculation by the formula. i ≥0, so no merging is done.

[0068] You can choose to use the force-guided layout algorithm or the organizational structure layout algorithm to draw the merged entity and link data. The force-guided layout algorithm is used to describe the relationship between nodes in the relationship graph and distribute the nodes to reasonable positions in the canvas. It can be used to describe the relationship between enterprises, interpersonal relationships in social networks, etc. The organizational structure layout algorithm is a tree structure and can be used to describe the company's organizational structure.

[0069] In a specific embodiment, three groups of data with different numbers of entities and relationship links are selected and processed using the method proposed in the present invention.

[0070] The first set of data contains 80 entities and 98 relationship links. The constructed graph is an undirected graph. The results before and after processing are as follows: Figure 2 , Figure 3 As shown, Figure 2 The entities in the red box meet the merging conditions (for example only, not all points that meet the conditions are circled). Figure 3 The red dots are composite nodes formed by merging nodes with the same adjacent points, and the yellow lines are composite link lines connected to the composite nodes.

[0071] In the second set of data, there are 6 entities and 5 relationship links. The constructed graph is a directed graph. The effects before and after processing are as follows: Figure 4 , Figure 5 As shown, Figure 5 The points in the red frame are the composite nodes formed by merging the nodes with the same adjacent points, and the yellow lines are the composite link lines connected to the composite nodes.

[0072] In the third set of data, the number of entities is 7905 and the number of relationship links is 20271. The effects before and after processing are as follows: Figure 6 , Figure 7 As shown, Figure 7 The red dots are the merged composite nodes, and the yellow lines are the merged composite link lines.

[0073] Therefore, after the network diagram is processed by the method proposed in the present invention, the network structure does not change much, and the number of entities and links is greatly reduced. The specific amount of reduction is related to the structure of the network diagram. If there are many nodes with the same counterpart entity in the relationship data in the network diagram, merging them through this method can greatly reduce the number of entities and links. For data analysis business, nodes with adjacent points are of more concern and are bridges connecting different nodes. Therefore, merging these nodes will not destroy the network structure, but can greatly reduce the number of nodes, and can also view the node information before the merger, thereby reducing the accumulation of a large number of nodes and edges without losing key information.

[0074] According to a second aspect of the present invention, a complex network diagram display device based on a compression clustering algorithm is proposed, comprising the following modules:

[0075] Data parsing module 801: parsing entity relationship data to construct a relationship link between a starting entity and an end entity;

[0076] Relationship storage module 802: constructing a map based on the relationship link<int,AdjacentId> The relationship structure stores the predecessor entity set and successor entity set of each starting point entity and end point entity. The int structure stores the starting point entity or the end point entity. The AdjacentId structure is a structure Store the predecessor node set and the successor node set of the corresponding starting point entity or end point entity;

[0077] Query display module 803: set query conditions, traverse and merge relationship structures that meet the query conditions, and input the merged relationship structures into the layout algorithm to draw an entity relationship diagram.

[0078] Reference below Fig. 9 , which shows a schematic diagram of the structure of a computer system 900 suitable for implementing an electronic device of an embodiment of the present application. Fig. 9 The electronic device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0079] like Fig. 9 As shown, the computer system 900 includes a central processing unit (CPU) 901, which performs various appropriate actions and processes according to a program stored in a read-only memory (ROM) 902 or a program loaded from a storage part 909 into a random access memory (RAM) 904. In the RAM 904, various programs and data required for the operation of the system 900 are also stored. The CPU 901, the ROM 902, the ROM 903, and the RAM 904 are connected to each other via a bus 905. An input / output (I / O) interface 906 is also connected to the bus 905.

[0080] The following components are connected to the I / O interface 906: an input section 907 including a keyboard, a mouse, etc.; an output section 908 including a liquid crystal display (LCD), etc. and a speaker, etc.; a storage section 909 including a hard disk, etc.; and a communication section 910 including a network interface card such as a LAN card, a modem, etc. The communication section 910 performs communication processing via a network such as the Internet. A drive 911 is also connected to the I / O interface 906 as needed. A removable medium 912, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 911 as needed, so that a computer program read therefrom is installed into the storage section 909 as needed.

[0081] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart is implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable storage medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program is downloaded and installed from the network through the communication part 910, and / or installed from the removable medium 912. When the computer program is executed by the central processing unit (CPU) 901, the above-mentioned functions defined in the method of the present application are executed.

[0082] It should be noted that the computer-readable storage medium of the present application is a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium is, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable storage medium is any tangible medium containing or storing a program that is used by or in combination with an instruction execution system, device or device. In the present application, a computer-readable signal medium includes a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal takes a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium is any computer-readable storage medium other than a computer-readable storage medium that sends, propagates or transmits a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer-readable storage medium is transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.

[0083] Computer program code for performing the operations of the present application is written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code is executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer is connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or is connected to an external computer (e.g., through the Internet using an Internet service provider).

[0084] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each box in the flow chart or block diagram represents a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the box also occur in a sequence different from that marked in the accompanying drawings. For example, two boxes represented in succession are actually executed substantially in parallel, and they are sometimes also executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flow chart, and the combination of the boxes in the block diagram and / or flow chart, are implemented by a dedicated hardware-based system that performs the specified function or operation, or are implemented by a combination of dedicated hardware and computer instructions.

[0085] The modules involved in the embodiments of the present application are implemented by software and hardware.

[0086] As another aspect, the present application also provides a computer-readable storage medium, which is included in the electronic device described in the above embodiment; it also exists independently and is not assembled into the electronic device. The above computer-readable storage medium carries one or more programs, and when the above one or more programs are executed by the electronic device, the electronic device: S1, parses entity relationship data to construct a relationship link between the starting entity and the end entity; S2, constructs a map based on the relationship link<int,AdjacentId> The relationship structure stores the predecessor entity set and successor entity set of each starting point entity and end point entity, the int structure stores the starting point entity or the end point entity, and the AdjacentId is a structure Store the predecessor node set and the successor node set of the corresponding starting point entity or end point entity; S3, set the query conditions, traverse the relationship structure that meets the query conditions and merge them, and input the merged relationship structure into the layout algorithm to draw the entity relationship diagram.

[0087] The above description is only a preferred embodiment of the present application and an explanation of the technical principles used. Those skilled in the art should understand that the scope of the invention involved in the present application is not limited to the technical solution formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above invention concept. For example, the above features are replaced with the technical features with similar functions disclosed in this application (but not limited to) by each other to form a technical solution.< / int> < / int> < / int> < / int> < / int> < / int> < / int> < / int> < / int> < / int>

Claims

1. A complex network graph display method based on a compression clustering algorithm, comprising the following steps: S1. Parse entity relationship data to build a relationship link between the starting entity and the end entity; S2. Build a map based on the relationship link<int,AdjacentId> The relationship structure stores the predecessor entity set and successor entity set of each starting point entity and end point entity. The int structure stores the starting point entity or the end point entity. The AdjacentId structure is a structure Store the predecessor node set and the successor node set of the corresponding starting point entity or end point entity; S3. Set query conditions, traverse the relationship structures that meet the query conditions and merge them, and input the merged relationship structures into the layout algorithm to draw an entity relationship diagram.

2. The complex network diagram display method based on the compression clustering algorithm according to claim 1 is characterized in that: S2 specifically includes traversing the relationship links, and for a starting point entity in a relationship link, constructing a map<starting point entity, >, store the end entity corresponding to the starting entity into the successor entity set. If the starting entity is also the end entity in another relationship link, store the starting entity in the other relationship link into the predecessor entity set of the starting entity. For the end entity in a relationship link, construct a map<end entity. >, store the starting entity corresponding to the end entity in the predecessor entity set; if the end entity is also the starting entity in another relationship link, store the end entity in the other relationship link in the successor entity set.

3. The complex network diagram display method based on the compression clustering algorithm according to claim 2 is characterized in that: S2 specifically includes: if the relationship link direction is entity A->entity B or entity A-entity B (unknown direction), entity A is used as the starting entity and entity B is used as the end entity, then entity A is the predecessor entity of entity B, and entity B is the successor entity of entity A; if the relationship link direction is B->A, then entity B is used as the starting entity and entity A is used as the end entity, then entity A is the successor entity of entity B, and entity B is the predecessor entity of entity A; if the relationship link direction is A<->B, then entity A and entity B need to be used as the starting entity and the end entity respectively, then entity A and entity B are each other's predecessor and successor entities.

4. The complex network diagram display method based on the compression clustering algorithm according to claim 3 is characterized in that: S3 specifically includes traversing the relationship structure that meets the query conditions and building a map <AdjacentId,set <int>>Compound structure, find out whether the AdjacentId structure in the relationship structure is equal to the AdjacentId structure of the compound structure. If they are equal, insert the entity corresponding to the relationship structure into the set of the compound structure. <int>In the structure, if they are not equal, apply for a new set <int> The structure stores the entities corresponding to the AdjacentId structure in the relationship structure, and repeats this step until all the relationship structures are traversed to establish a composite structure set that meets the query conditions.< / int> < / int> < / int> 5. The complex network diagram display method based on compression clustering algorithm according to claim 4 is characterized in that: Traverse the composite structure set, and for the set of the composite structure <int>Structure C3, by formula Calculate the subscript, if a i ≥0, then select a i The integer part of is used as the subscript, and the entity corresponding to the subscript is found in C3 as the composite entity, and the other entities are deleted; if a i <0, no deletion will be performed.< / int> 6. The complex network diagram display method based on compression clustering algorithm according to claim 1, characterized in that: S1 also includes obtaining the entity relationship data according to the relationship model, specifically including: S101, obtaining the table data of the original entity relationship, selecting two columns of data in the data as the unique identifier of entity A and the unique identifier of entity B respectively, and further selecting a column of data as an entity label for displaying entity information, thereby constructing a relationship model of the two columns of data; S102, removing empty and duplicate data in the column where the entity unique identifier is located in the data, forming the relationship configuration data, and storing it; S103, parsing the relationship configuration data, and constructing a relationship link between the starting point entity and the end point entity.

7. The complex network diagram display method based on compression clustering algorithm according to claim 1, characterized in that: The layout algorithm includes but is not limited to a force-guided layout algorithm and an organizational architecture layout algorithm.

8. A complex network diagram display device based on a compression clustering algorithm, characterized in that: Includes the following modules: Data parsing module: parses entity relationship data to build relationship links between the starting entity and the end entity; Relationship storage module: build a map based on the relationship links<int,AdjacentId> The relationship structure stores the predecessor entity set and successor entity set of each starting point entity and end point entity. The int structure stores the starting point entity or the end point entity. The AdjacentId structure is a structure Store the predecessor node set and the successor node set of the corresponding starting point entity or end point entity; Query display module: set query conditions, traverse the relationship structures that meet the query conditions and merge them, and input the merged relationship structures into the layout algorithm to draw the entity relationship diagram.

9. A computer readable medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the method according to any one of claims 1 to 7.

10. A computing system comprising a processor and a memory, wherein the processor is configured to execute the method according to any one of claims 1 to 7.