CN110502672A - A kind of implementation method and device of the annular associated diagram constructing business connection - Google Patents

A kind of implementation method and device of the annular associated diagram constructing business connection Download PDF

Info

Publication number
CN110502672A
CN110502672A CN201910817177.3A CN201910817177A CN110502672A CN 110502672 A CN110502672 A CN 110502672A CN 201910817177 A CN201910817177 A CN 201910817177A CN 110502672 A CN110502672 A CN 110502672A
Authority
CN
China
Prior art keywords
node
associated diagram
annular
implementation method
business connection
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.)
Pending
Application number
CN201910817177.3A
Other languages
Chinese (zh)
Inventor
陈玮
刘德彬
万俐君
吴亚东
严开
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Chongqing Yu Yu Da Data Technology Co Ltd
Original Assignee
Chongqing Yu Yu Da Data Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Chongqing Yu Yu Da Data Technology Co Ltd filed Critical Chongqing Yu Yu Da Data Technology Co Ltd
Priority to CN201910817177.3A priority Critical patent/CN110502672A/en
Publication of CN110502672A publication Critical patent/CN110502672A/en
Pending legal-status Critical Current

Links

Classifications

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses the implementation methods and device of a kind of annular associated diagram for constructing business connection, including service terminal and the annular associated diagram being built by service terminal, annular associated diagram is constructed the following steps are included: step 1: obtaining the list of enterprise's incidence relation, which includes a node listing and a line list;Step 2: counting the number of each node layer, and the perimeter of each circle is then calculated according to node diameter, interval;Step 3: go out the radius of each circle according to circumference calculating;The methods of exhibiting of the annular associated diagram designed through the invention, the associated diagram hierarchical relationship drawn out is clear, the hierarchical relationship between facilitating user to check node;Layout is quickly not in shake;It is mutually indepedent between node, it will not influence the layout of other nodes when drawing node, sufficiently solve the problems of power guiding layout.

Description

A kind of implementation method and device of the annular associated diagram constructing business connection
Technical field
The invention belongs to business connection technical fields, and in particular to a kind of realization for the annular associated diagram for constructing business connection Method and device.
Background technique
When checking business connection, user there may come a time when to wonder which node is associated with central node closer.It is relatively tight Some information of close node may have more reference value, such as some risk informations occur compared with tight knot point or have some Bad public opinion is likely to involve central node.
Existing technology is that finally business connection is laid out and is shown by power modeling joint movements, power guiding The principle of layout is that some power are arranged on node, and then analog node moves, and finally allows node is static to get off to be formed layout, this There is following problem under kind placement algorithm:
1. node location is uncontrollable and disperses, the close and distant relation being unfavorable between user's discovery enterprise;
2. power guiding layout needs to take a lot of time to allow numerous nodes are static to get off, therefore when node is too many It will appear jitter phenomenon, such as node is being moved or moved always and for a long time just stopping;
3. other nodes are as being destroyed balance and having moved, other nodes when user is when pulling a node Movement user can be interfered, if user merely desires to pay close attention at this time the point of the dragging of oneself, other nodes should drop as far as possible It is low oneself there are senses.
Summary of the invention
The purpose of the present invention is to provide the implementation methods and device of a kind of annular associated diagram for constructing business connection, with solution The close and distant relation that node location is uncontrollable and disperses, and is unfavorable between user's discovery enterprise is proposed in certainly above-mentioned background technique;Work as section When point is too many, power guiding layout needs to take a lot of time to allow numerous nodes are static to get off, therefore will appear jitter phenomenon, Such as node is being moved or is being moved always and for a long time just stopping;When user is when pulling a node, other nodes also can It is moved because balance has been destroyed, the movement of other nodes can interfere user, if user merely desires to concern certainly at this time The point of oneself dragging, there is sense in what other nodes should reduce oneself as far as possible.
To achieve the above object, the invention provides the following technical scheme: a kind of annular associated diagram for constructing business connection Implementation method and device construct annular associated diagram including service terminal and the annular associated diagram being built by service terminal The following steps are included:
Step 1: obtaining the list of enterprise's incidence relation, which includes a node listing and a line list;
Step 2: counting the number of each node layer, and the perimeter of each circle is then calculated according to node diameter, interval;
Step 3: go out the radius of each circle according to circumference calculating;
Step 4: with one week 360 ° of node numbers for removing every layer of angle obtain each layer for layout angle;
Step 5: the radius and angle obtained according to step 3 and step 4, and calculate the coordinate of each node layer;
Step 6: node and line are drawn according to the coordinate that step 5 obtains.
Preferably, in the node listing in the step 1, each node must have following attribute:
Identity property, to identify oneself, this attribute must have uniqueness;
Level attributes are associated with level for indicate the node and central node;Incidence relation, to indicate node in The relationship of heart node;
Line in the line list must there are two attribute, one for saving the mark of source node, one is used for The mark of destination node is saved, wherein source node is the starting point of line, and destination node is the terminal of line.
Preferably, the service terminal includes web server and browser terminal.
Preferably, the browser terminal is any equipment with browser, including but not limited to PC, plate, mobile phone.
Preferably, the browser terminal accesses webpage, obtains for drawing a network and network relevant operation JavaScript script.
Preferably, the service terminal further includes obtaining data module, computing module and display module, wherein obtaining number It is used to obtain the linked list of enterprise according to module;Computing module is used for the coordinate of calculate node;Display module is for drawing network Figure.
Preferably, user inputs after company name obtains the linked list of the enterprise from web server, browser terminal it is clear Device of looking at can execute associated script calculate node position, draw a network.
Compared with prior art, the beneficial effects of the present invention are: the displaying side of the annular associated diagram designed through the invention Method, the associated diagram hierarchical relationship drawn out is clear, the hierarchical relationship between facilitating user to check node;Layout is not in quickly to tremble It is dynamic;It is mutually indepedent between node, it will not influence the layout of other nodes when drawing node, sufficiently solve present in power guiding layout The problem of.
Detailed description of the invention
Fig. 1 is applied environment figure of the invention;
Fig. 2 is the flow diagram that data module is taken during the present invention obtains;
Fig. 3 is the schematic diagram of interior joint of the present invention layout;
Fig. 4 is that block process schematic diagram is calculated in the present invention;
Fig. 5 is the flow chart of display module in the present invention.
In figure: 101, web server;102, browser terminal.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall within the protection scope of the present invention.
Fig. 1 to Fig. 5 is please referred to, the present invention provides a kind of technical solution: a kind of annular associated diagram constructing business connection Implementation method and device construct annular associated diagram including service terminal and the annular associated diagram being built by service terminal The following steps are included:
Step 1: obtaining the list of enterprise's incidence relation, which includes a node listing and a line list;
Step 2: counting the number of each node layer, and the perimeter of each circle is then calculated according to node diameter, interval;
Step 3: go out the radius of each circle according to circumference calculating;
Step 4: with one week 360 ° of node numbers for removing every layer of angle obtain each layer for layout angle;
Step 5: the radius and angle obtained according to step 3 and step 4, and calculate the coordinate of each node layer;
Referring to Fig. 3, the schematic diagram of node layout, on the same circle, node coordinate calculates the identical Node distribution of level Mode, referring to Fig. 4:
S401: line list and node listing are matched, and the source node of both gut-nodes and destination node is allowed to be directed toward section The node of identification attribute matches in point list.Specific step is as follows, it is assumed that data are line list and section cited in S202 Point list, the source in first line correspond to the node that name is A, the reference of this node are copied to source;First Target in line corresponds to the node that name is B, the reference of this node is copied to target, according to this operation circulation The source of all lines and target are changed to the reference of node, the coordinate of the node in modification node listing in this way will move The beginning or end of state modification line;
S402: according to the level attributes of node, the number of each node layer is counted.Assuming that data are cited in S202 Line list and node listing, the result counted be exactly the 0th layer 1;First layer 2;The second layer 1;
S403: (one is set as needed according to the diameter of the number (being assumed to be n) of each node layer counted, node A constant, it is assumed that diameter d), interval (constant is set as needed, it is assumed that be divided into the perimeter for m) calculating each circle, The circle refers to that the circle of Fig. 3 gone out with dashed lines labeled, the node of each level are distributed on a circle, it is assumed that round Zhou Changwei L, then:
L=n* (d+m);
S404: known circumferential length can extrapolate radius, that is, every node layer is to the distance of central node, it is assumed that some Round radius is r, and the radius is the r of Fig. 3 label, and each layer of radius is all different, and the calculation formula of radius is as follows:
R=l/ (2* π);
S405: herein will be in view of there is a kind of situation, if a certain node layer number will lead to the perimeter calculated very little Too small, perimeter is too small to result in radius too small, this node layer will be Chong Die with preceding layer in this way, so each layer will have one Least radius, the definition method of least radius are as follows: the least radius of first layer is to be defined as a constant, later each layer Radius is all incremented by a constant;
S406: select a value biggish as final radius in least radius and calculated radius.
S407: the angle that each layer is used to be laid out is obtained with 360 ° of numbers divided by each node layer, the angle ranging from Fig. 3 The α of label, each layer of angle is all different, and the calculation formula of angle is as follows:
α=360 °/n;
S408: each node x, the position of y can be calculated with angle [alpha] and radius r, it is assumed that the x of i-th of node of a certain layer Coordinate is x, y-coordinate y, then:
X=cos (i* α) * r;
Y=sin (i* α) * r;
It obtains and draws container dimensional, calculate the coordinate of container center point, the coordinate of this central point is to be queried enterprise The coordinate of industry, the central node coordinate is plus the coordinate that the coordinate obtained in S408 is exactly eventually for drawing;
Step 6: node and line are drawn according to the coordinate that step 5 obtains.
In actual operation, the concrete operations mode of step 1 to step 6 is as follows:
The method for constructing annular associated diagram is as shown in Figure 2:
S201: user inputs a company name;
S202: obtaining the list of enterprise's incidence relation, this list includes a node listing and a line list, node List data format can be [{ name: ' A ', layer:0, type: ' inquiry enterprise ' }, and name: ' B ', layer:1, type: ' legal representative ' }, { name: ' C ', layer:1, type: ' shareholder ' }, { name: ' D ', layer:2, type: ' shareholder ' }];
Wherein for name to indicate node, this attribute has uniqueness;Layer indicates level where node;Type table Show corresponding incidence relation, although field name does not limit, to ensure that each node includes association attributes, line is protected What is deposited is the line between node, its data format can be [{ source: ' A ', target: ' B ' }, source: ' A ', Target: ' C ' }, { source: ' B ', target: ' D ' }], wherein source and target is the mark of node listing interior joint Know.
In the present embodiment, it is preferred that in the node listing in step 1, each node must have following attribute:
Identity property, to identify oneself, this attribute must have uniqueness;
Level attributes are associated with level for indicate the node and central node;Incidence relation, to indicate node in The relationship of heart node;
Line in line list must be there are two attribute, and one is used to save the mark of source node, and one for saving The mark of destination node, wherein source node is the starting point of line, and destination node is the terminal of line.
In the present embodiment, it is preferred that service terminal includes web server 101 and browser terminal 102.
In the present embodiment, it is preferred that browser terminal 102 is any equipment with browser, including but not limited to PC, Plate, mobile phone.
In the present embodiment, it is preferred that browser terminal 102 accesses webpage, obtains for drawing a network and network The JavaScript script of relevant operation.
In the present embodiment, it is preferred that service terminal further includes obtaining data module, computing module and display module, The middle linked list for obtaining data module and being used to obtain enterprise;Computing module is used for the coordinate of calculate node;Display module is used for It draws a network.
In the present embodiment, it is preferred that user inputs company name after the linked list that web server 101 obtains the enterprise, The browser of browser terminal 102 can execute associated script calculate node position, draw a network.
It although an embodiment of the present invention has been shown and described, for the ordinary skill in the art, can be with A variety of variations, modification, replacement can be carried out to these embodiments without departing from the principles and spirit of the present invention by understanding And modification, the scope of the present invention is defined by the appended.

Claims (7)

1. it is a kind of construct business connection annular associated diagram implementation method and device, including service terminal and by service eventually Hold the annular associated diagram that is built into, it is characterised in that: construct annular associated diagram the following steps are included:
Step 1: obtaining the list of enterprise's incidence relation, which includes a node listing and a line list;
Step 2: counting the number of each node layer, and the perimeter of each circle is then calculated according to node diameter, interval;
Step 3: go out the radius of each circle according to circumference calculating;
Step 4: with one week 360 ° of node numbers for removing every layer of angle obtain each layer for layout angle;
Step 5: the radius and angle obtained according to step 3 and step 4, and calculate the coordinate of each node layer;
Step 6: node and line are drawn according to the coordinate that step 5 obtains.
2. the implementation method and device of a kind of annular associated diagram for constructing business connection according to claim 1, feature Be: in the node listing in the step 1, each node must have following attribute:
Identity property, to identify oneself, this attribute must have uniqueness;
Level attributes are associated with level for indicate the node and central node;Incidence relation, to indicate node and centromere The relationship of point;
Line in the line list must be there are two attribute, and one is used to save the mark of source node, and one for saving The mark of destination node, wherein source node is the starting point of line, and destination node is the terminal of line.
3. the implementation method and device of a kind of annular associated diagram for constructing business connection according to claim 1, feature Be: the service terminal includes web server (101) and browser terminal (102).
4. the implementation method and device of a kind of annular associated diagram for constructing business connection according to claim 3, feature Be: the browser terminal (102) is any equipment with browser, including but not limited to PC, plate, mobile phone.
5. the implementation method and device of a kind of annular associated diagram for constructing business connection according to claim 4, feature Be: the browser terminal (102) accesses webpage, obtains for drawing a network and network relevant operation JavaScript script.
6. the implementation method and device of a kind of annular associated diagram for constructing business connection according to claim 1, feature Be: the service terminal further includes obtaining data module, computing module and display module, is used for wherein obtaining data module Obtain the linked list of enterprise;Computing module is used for the coordinate of calculate node;Display module is for drawing a network.
7. the implementation method and device of a kind of annular associated diagram for constructing business connection according to claim 6, feature Be: user input company name after the linked list that web server (101) obtains the enterprise, browser terminal (102) it is clear Device of looking at can execute associated script calculate node position, draw a network.
CN201910817177.3A 2019-08-30 2019-08-30 A kind of implementation method and device of the annular associated diagram constructing business connection Pending CN110502672A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910817177.3A CN110502672A (en) 2019-08-30 2019-08-30 A kind of implementation method and device of the annular associated diagram constructing business connection

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910817177.3A CN110502672A (en) 2019-08-30 2019-08-30 A kind of implementation method and device of the annular associated diagram constructing business connection

Publications (1)

Publication Number Publication Date
CN110502672A true CN110502672A (en) 2019-11-26

Family

ID=68590740

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910817177.3A Pending CN110502672A (en) 2019-08-30 2019-08-30 A kind of implementation method and device of the annular associated diagram constructing business connection

Country Status (1)

Country Link
CN (1) CN110502672A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114239900A (en) * 2021-10-13 2022-03-25 三明学院 Optimal path selection method, device, equipment and readable storage medium
CN117764161A (en) * 2023-12-21 2024-03-26 高等教育电子音像出版社有限公司 Construction method and device of visual knowledge graph and electronic equipment

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105426499A (en) * 2015-11-25 2016-03-23 成都数联铭品科技有限公司 Implementation method of data visualization
CN105488130A (en) * 2015-11-25 2016-04-13 成都数联铭品科技有限公司 Associated data visualization display method
CN106097091A (en) * 2016-08-05 2016-11-09 西安交通大学 A kind of suspicion group identification method towards interlocking shareholder benefit conveying behavior
CN106204292A (en) * 2016-06-28 2016-12-07 合肥讯飞数码科技有限公司 The methods of exhibiting of a kind of topological relation and device
CN107229756A (en) * 2017-06-30 2017-10-03 山东合天智汇信息技术有限公司 A kind of design method and system directly perceived for showing business connection collection of illustrative plates
CN107358527A (en) * 2017-06-19 2017-11-17 重庆誉存大数据科技有限公司 A kind of investment relation network visualization analysis method and system
CN108376095A (en) * 2018-02-27 2018-08-07 北京金堤科技有限公司 A kind of icon arrangement method and apparatus

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105426499A (en) * 2015-11-25 2016-03-23 成都数联铭品科技有限公司 Implementation method of data visualization
CN105488130A (en) * 2015-11-25 2016-04-13 成都数联铭品科技有限公司 Associated data visualization display method
CN106204292A (en) * 2016-06-28 2016-12-07 合肥讯飞数码科技有限公司 The methods of exhibiting of a kind of topological relation and device
CN106097091A (en) * 2016-08-05 2016-11-09 西安交通大学 A kind of suspicion group identification method towards interlocking shareholder benefit conveying behavior
CN107358527A (en) * 2017-06-19 2017-11-17 重庆誉存大数据科技有限公司 A kind of investment relation network visualization analysis method and system
CN107229756A (en) * 2017-06-30 2017-10-03 山东合天智汇信息技术有限公司 A kind of design method and system directly perceived for showing business connection collection of illustrative plates
CN108376095A (en) * 2018-02-27 2018-08-07 北京金堤科技有限公司 A kind of icon arrangement method and apparatus

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114239900A (en) * 2021-10-13 2022-03-25 三明学院 Optimal path selection method, device, equipment and readable storage medium
CN117764161A (en) * 2023-12-21 2024-03-26 高等教育电子音像出版社有限公司 Construction method and device of visual knowledge graph and electronic equipment

Similar Documents

Publication Publication Date Title
CN107193918B (en) Distributed GIS state monitoring system based on open source map
CN103377559B (en) The methods of exhibiting of road condition information of electronic map and system
CN110502672A (en) A kind of implementation method and device of the annular associated diagram constructing business connection
CN102201128A (en) Method and device for transforming pipe models
WO2016141685A1 (en) Telecommunications engineering drawing generation method and drawing design client
CN110446205A (en) Localization method, device, equipment and readable storage medium storing program for executing based on base station networking
CN106528578A (en) An information display method and device
CN108280099A (en) Data dictionary management method, apparatus and server
CN109657017B (en) Display method and device for aggregation point set in map
CN108961406A (en) Geographical information visualization method, apparatus and user terminal
CN102867030A (en) Quasi-three-dimensional presentation method for environment and layout of machine room
CN109359141A (en) A kind of Visual Report Forms method for exhibiting data and device
US20230147594A1 (en) Method for integratedly updating map data, device and storage medium
CN101706818A (en) Report dynamic filtering method and device
CN107153495B (en) Method and device for establishing service link between network elements
US20200218236A1 (en) Equipment monitoring management method and system
CN109635263A (en) The fixed methods of exhibiting of col width based on WEB ultra-wide table, device and electronic equipment
CN113645630A (en) Base station layout method and device, electronic equipment and storage medium
CN105787568A (en) IDC machine room equipment presentation method
CN105678584A (en) Method and system for automatically matching advertisement templates
CN112130846A (en) Three-micro one-screen publishing engine system and publishing method
JP2820557B2 (en) Centralized transmission network monitoring system
WO2023231459A1 (en) Method for generating intersection surface and related apparatus
CN108470363A (en) A kind of hand-drawing map location method based on geographic reference point and triangulation
CN109739859B (en) Relation map drawing method, system and related device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20191126

RJ01 Rejection of invention patent application after publication