Method, system and terminal for drawing topological graph of organizational structure

Through a method of drawing organizational structure topology diagrams, the problems of inflexible organizational structure diagram design and high management cost in the prior art are solved, and efficient visualization of organizational structure and improvement of management efficiency are achieved.

CN120014098APending Publication Date: 2025-05-16XIAN ZHENYOU XINTONG TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411893577.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-20
Publication Date
2025-05-16

AI Technical Summary

Technical Problem

In the prior art, the design process of the organizational structure chart is not flexible enough, the management costs are high, and it is difficult to timely reflect the dynamic changes of the organization.

Method used

By providing a method of drawing an organizational structure topology diagram, the processing functions in the chart library define the framework information of the target organization, obtain organization information, build an initial topology diagram, and randomly define the connection lines until the difference is greater than the preset value, and finally update the node color and connection lines status.

Benefits of technology

It significantly improves the visualization of the organizational structure, improves the efficiency of managing the organization, and can promptly reflect the dynamic changes of the organization.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120014098A_ABST
    Figure CN120014098A_ABST
Patent Text Reader

Abstract

The invention discloses a drawing method, system and terminal for an organization structure topological graph, and the method comprises the steps: defining the frame information of a target organization, obtaining the organization information, and defining an initial array; traversing and updating the initial array to obtain an organization array, and constructing an initial topological graph of the target organization according to the organization array; randomly defining connecting lines between adjacent sub-target organizations in the initial topological graph and the target organization until the difference between the connecting lines of any adjacent sub-target organizations is greater than a preset value, and obtaining a target topological graph; and updating the target topological graph according to the organization information to obtain a final topological graph. According to the method, the topological graph of the target organization is constructed according to the organization information, the related information of each sub-target organization can be reflected according to the node colors in the topological graph, and the relationship between the sub-target organizations and the target organization can be reflected according to the states of the connecting lines in the topological graph, so that the visualization degree of the organization structure is remarkably improved; and the efficiency of managing the organization can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of framework design, and in particular to a method, system, terminal and computer-readable storage medium for drawing an organizational structure topology diagram. Background Art

[0002] The organizational chart can intuitively describe the relationship between the organization and its sub-target organizations. However, as the organization develops and changes, the organizational chart needs to be constantly updated and maintained, which will increase management costs and workload. Figure 1 Once determined, it is very difficult to adjust the architecture diagram using the existing architecture design system. The flexibility of the organizational structure diagram is limited and cannot reflect the dynamic changes of the organization in a timely manner.

[0003] Therefore, the prior art still needs to be improved and developed. Summary of the invention

[0004] The main purpose of the present invention is to provide a method, system, terminal and computer-readable storage medium for drawing an organizational structure topology diagram, aiming to solve the problems in the prior art that the process of designing an organizational structure diagram is not flexible enough, and the cost and workload of managing the organizational structure diagram are high.

[0005] To achieve the above object, the present invention provides a method for drawing an organizational structure topology map, and the method for drawing an organizational structure topology map comprises the following steps:

[0006] Installing a chart library according to an installation instruction input by a user, defining framework information of a target organization using a processing function in the chart library, acquiring organization information of the target organization, and defining an initial array according to the framework information and the organization information;

[0007] Traversing and updating the initial array according to the organization information to obtain an organization array, and constructing an initial topological map of the target organization according to the organization array;

[0008] Randomly define connection lines between adjacent sub-target organizations in the initial topology map and the target organization, until the difference between the connection lines of any adjacent sub-target organizations is greater than a preset value, thereby obtaining a target topology map, wherein the sub-target organization represents a subordinate organization of the target organization;

[0009] The color of each sub-target organization and the state of each connection line in the target topological map are updated according to the organization information to obtain a final topological map.

[0010] Optionally, in the method for drawing an organizational structure topology diagram, the organizational information includes: node information, edge information and organizational interaction information;

[0011] The step of installing a chart library according to an installation instruction input by a user, defining the framework information of the target organization using a processing function in the chart library, acquiring the organization information of the target organization, and defining an initial array according to the framework information and the organization information specifically includes:

[0012] Obtaining the installation instruction input by the user, installing the chart library according to the installation instruction, and defining the framework information of the target organization by using the processing function in the chart library;

[0013] Acquire the organization information of the target organization, decompose the organization information according to the framework information, and obtain a plurality of the node information, a plurality of the edge information and the organization interaction information;

[0014] An initial array is defined according to the plurality of node information and the plurality of edge information, wherein each element in the initial array includes a node information, an edge information and a null information.

[0015] Optionally, the method for drawing the organizational structure topology map, wherein the traversing and updating the initial array according to the organizational information to obtain the organizational array, and constructing the initial topology map of the target organization according to the organizational array, specifically includes:

[0016] Analyze the organization interaction information to obtain the connection relationship between each sub-target organization and the target organization, and update the empty information of each element in the initial array according to each connection relationship to obtain the organization array;

[0017] Constructing an initial topological graph of the target organization according to all the node information, all the edge information and all the connection relationships in the organization array;

[0018] The initial topology diagram is formed by all the sub-target organizations individually connected to the target organization.

[0019] Optionally, the method for drawing the organizational structure topology map, wherein the randomly defining connection lines between adjacent sub-target organizations in the initial topology map and the target organization, until the difference in connection lines between any adjacent sub-target organizations is greater than a preset value, to obtain the target topology map, specifically includes:

[0020] Define a connection line array and a subscript array, wherein the connection line array includes a preset number of connection line lengths, the connection line lengths are incremented one by one, and the subscript array includes the preset number of subscript elements, the subscript elements respectively correspondingly represent each connection line length;

[0021] According to the connection line array and the subscript array, connection lines between adjacent sub-target organizations in the initial topology map and the target organization are randomly defined until the difference in connection lines between any adjacent sub-target organizations is greater than a preset value, thereby obtaining a target topology map.

[0022] Optionally, the method for drawing the organizational structure topology map, wherein the connecting lines between adjacent sub-target organizations in the initial topology map and the target organization are randomly defined according to the connecting line array and the subscript array, until the connecting line difference between any adjacent sub-target organizations is greater than a preset value, to obtain the target topology map, specifically includes:

[0023] Randomly selecting two elements in the connection line array as initial connection lines between two adjacent sub-target organizations in the initial topology graph and the target organization respectively;

[0024] According to two elements in the connection line array, determining two subscripts in the subscript array corresponding to the two initial connection lines;

[0025] Calculating the difference between the two subscripts, and if the difference is greater than a preset difference, using the two initial connection lines as connection lines between two adjacent sub-target organizations in the initial topology diagram and the target organization respectively;

[0026] Randomly selecting an element in the connection line array as a current initial connection line between a current sub-target organization and the target organization in the initial topological map, wherein the current target organization is adjacent to the sub-target organization with a defined connection line;

[0027] According to the elements in the connection line array, determine the current subscript in the subscript array corresponding to the current initial connection line, and calculate the current difference between the current subscript and the subscript of the subtarget organization of the defined connection line;

[0028] If the current difference is greater than the preset difference, the current initial connection line is used as the connection line between the current sub-target organization and the target organization, until all the connection lines between the sub-target organizations and the target organization are defined to obtain a target topology map.

[0029] Optionally, the method for drawing the organizational structure topology map, wherein, according to the connection line array and the subscript array, randomly defining connection lines between adjacent sub-target organizations in the initial topology map and the target organization, until the difference in connection lines between any adjacent sub-target organizations is greater than a preset value, to obtain a target topology map, further comprises:

[0030] Extracting sub-target organization information of each of the sub-target organizations from the organization information according to the organization interaction information;

[0031] The organization information is saved in a first node in the target topology map, and each sub-target organization information is saved in a second node in the target topology map, wherein the first node represents the target organization and the second node represents the sub-target organization.

[0032] Optionally, the method for drawing the organizational structure topology map, wherein the color of each sub-target organization and the state of each connecting line in the target topology map are updated according to the organizational information to obtain the final topology map, specifically includes:

[0033] According to each of the sub-target organization information, updating the color of each of the second nodes in the target topology graph;

[0034] According to the organizational interaction information, the color and thickness of each connection line are updated to obtain a final topological map.

[0035] In addition, to achieve the above-mentioned purpose, the present invention also provides a system for drawing an organizational structure topology map, wherein the system for drawing an organizational structure topology map comprises:

[0036] A framework definition module, used to install a chart library according to an installation instruction input by a user, define the framework information of a target organization using a processing function in the chart library, obtain the organization information of the target organization, and define an initial array according to the framework information and the organization information;

[0037] A topology map construction module, used to traverse and update the initial array according to the organization information, obtain an organization array, and construct an initial topology map of the target organization according to the organization array;

[0038] A first topology map updating module is used to randomly define connection lines between adjacent sub-target organizations in the initial topology map and the target organization, until the difference in connection lines between any adjacent sub-target organizations is greater than a preset value, thereby obtaining a target topology map, wherein the sub-target organization represents a subordinate organization of the target organization;

[0039] The second topology map updating module is used to update the color of each sub-target organization and the state of each connection line in the target topology map according to the organization information to obtain a final topology map.

[0040] In addition, to achieve the above-mentioned purpose, the present invention also provides a terminal, wherein the terminal includes: a memory, a processor, and a program for drawing an organizational structure topology map stored in the memory and runnable on the processor, and when the program for drawing an organizational structure topology map is executed by the processor, the steps of the method for drawing an organizational structure topology map as described above are implemented.

[0041] In addition, to achieve the above-mentioned purpose, the present invention also provides a computer-readable storage medium, wherein the computer-readable storage medium stores a program for drawing an organizational structure topology map, and when the program for drawing an organizational structure topology map is executed by a processor, the steps of the method for drawing an organizational structure topology map as described above are implemented.

[0042] In the present invention, a chart library is installed according to the installation instruction input by the user, the framework information of the target organization is defined by the processing function in the chart library, the organizational information of the target organization is obtained, and the initial array is defined according to the framework information and the organizational information; the initial array is traversed and updated according to the organizational information to obtain the organizational array, and the initial topology map of the target organization is constructed according to the organizational array; the connecting lines between the adjacent sub-target organizations in the initial topology map and the target organization are randomly defined until the connecting line difference between any adjacent sub-target organizations is greater than a preset value, and the target topology map is obtained, wherein the sub-target organization represents the subordinate organization of the target organization; the color of each sub-target organization and the state of each connecting line in the target topology map are updated according to the organizational information to obtain the final topology map. The present invention constructs a topology map of the target organization according to the organizational information, and can reflect the relevant information of each sub-target organization according to the node color in the topology map, and reflect the relationship between the sub-target organization and the target organization according to the state of the connecting line in the topology map, which significantly improves the visualization of the organizational structure and helps to improve the efficiency of managing the organization. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] Figure 1 It is a flow chart of a preferred embodiment of the method for drawing an organizational structure topology diagram of the present invention;

[0044] Figure 2 It is an initial topology map of a preferred embodiment of the method for drawing an organizational structure topology map of the present invention;

[0045] Figure 3 It is a code diagram of the target topology construction process of a preferred embodiment of the method for drawing an organizational architecture topology diagram of the present invention;

[0046] Figure 4 It is a target topology map of a preferred embodiment of the method for drawing an organizational structure topology map of the present invention;

[0047] Figure 5 It is a code diagram of the final topology construction process of a preferred embodiment of the method for drawing an organizational architecture topology diagram of the present invention;

[0048] Figure 6 It is the final topology diagram of the preferred embodiment of the method for drawing the organizational structure topology diagram of the present invention;

[0049] Figure 7It is a structural diagram of a preferred embodiment of the system for drawing an organizational topology diagram of the present invention;

[0050] Figure 8 Schematic diagram of the operating environment of a preferred embodiment of the terminal of the present invention. DETAILED DESCRIPTION

[0051] In order to make the purpose, technical solution and advantages of the present invention clearer and more specific, the present invention is further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.

[0052] The method for drawing the organizational structure topology diagram according to the preferred embodiment of the present invention is as follows: Figure 1 As shown, the method for drawing the organizational structure topology diagram includes the following steps:

[0053] Step S10, installing the chart library according to the installation instruction input by the user, using the processing function in the chart library to define the framework information of the target organization, obtaining the organization information of the target organization, and defining an initial array according to the framework information and the organization information.

[0054] The organization information includes: node information, edge information and organization interaction information. First, you need to choose a suitable development tool. For example, you can use VS code (Visual Studio Code, a free, open source code editor) for development under Windows, and use the various image processing functions in the antv-g6 library (a set of chart visualization libraries, i.e. the above-mentioned icon library) to customize the nodes, edges and node interactions of the organization structure.

[0055] Specifically, the installation instructions input by the user are obtained, the chart library is installed according to the installation instructions, and the framework information of the target organization is defined by using the processing function in the chart library; the organization information of the target organization is obtained, and the organization information is decomposed according to the framework information to obtain a plurality of the node information, a plurality of the edge information and the organization interaction information; an initial array is defined according to the plurality of the node information and the plurality of the edge information, wherein each element in the initial array includes a node information, an edge information and a null information.

[0056] Among them, the processing function is used to preliminarily define the framework structure of the target organization, and then the organizational information of the target organization is decomposed according to the framework structure to obtain the corresponding array, wherein the elements in each array include node information, edge information and empty information, and the node information includes the relevant information of the corresponding organization, for example: "[{"id":"11111","name":XX Company","connectionState":0,"}]", and the edge information defines how to connect each organization. In the initial definition, only the initialized edge information needs to be obtained, for example: initialize a circle with a radius of 120mm to represent the target organization, and define a circle with a radius of 12mm to represent the sub-target organization of the target organization, and define the radian of each sub-target organization (the value is (angle*Math.PI) / 180). By defining the initial array, the relevant information of each sub-target organization is added to ensure the integrity of the organizational information. For the sub-target organization whose organizational information has changed, it can be modified through the initial array, thereby improving the flexibility of the subsequent topological map.

[0057] Step S20: traverse and update the initial array according to the organization information to obtain an organization array, and construct an initial topology map of the target organization according to the organization array.

[0058] Specifically, the organization interaction information is analyzed to obtain the connection relationship between each sub-target organization and the target organization, and the empty information of each element in the initial array is updated according to each connection relationship to obtain the organization array; based on all the node information, all the edge information and all the connection relationships in the organization array, an initial topology graph of the target organization is constructed; wherein the initial topology graph is composed of all the sub-target organizations individually connected to the target organization.

[0059] After obtaining the relevant information of each sub-target organization, an initial topology map can be constructed. Each time a data in the initial array is traversed, the element in the initial array is updated. Each time a data is traversed, the arc of the next sub-target organization is updated to "original arc + 360 / number of sub-target organizations", thereby ensuring that the nodes of each sub-target organization will not overlap with each other in the initial topology map, and finally obtaining the following Figure 2 The initial topology diagram is shown.

[0060] Step S30, randomly define connection lines between adjacent sub-target organizations in the initial topology map and the target organization, until the difference in connection lines between any adjacent sub-target organizations is greater than a preset value, to obtain a target topology map, wherein the sub-target organization represents a subordinate organization of the target organization.

[0061] In order to ensure that each node in the initial topology map can be spread out without obstruction, the initial topology map needs to be updated, thereby improving the visualization of the organizational structure and improving the management efficiency of the organization.

[0062] Specifically, a connection line array and a subscript array are defined, wherein the connection line array includes a preset number of connection line lengths, the connection line lengths increase one by one, and the subscript array includes the preset number of subscript elements, and the subscript elements respectively correspond to each connection line length; according to the connection line array and the subscript array, connection lines between adjacent sub-target organizations in the initial topology map and the target organization are randomly defined until the connection line difference of any adjacent sub-target organizations is greater than a preset value, thereby obtaining a target topology map.

[0063] Among them, the connection line array is set to: [120, 160, 200, 240, 280], and the corresponding subscript array is [1, 2, 3, 4, 5]. These two arrays can also set more elements as needed to further expand the distance between each sub-target organization node in the target topology diagram, thereby avoiding overlap between sub-target organization nodes.

[0064] Further, two elements in the connection line array are randomly selected as initial connection lines between two adjacent sub-target organizations in the initial topology map and the target organization respectively; according to the two elements in the connection line array, two subscripts in the subscript array corresponding to the two initial connection lines are determined; the difference between the two subscripts is calculated, and if the difference is greater than a preset difference, the two initial connection lines are used as connection lines between two adjacent sub-target organizations in the initial topology map and the target organization respectively; an element in the connection line array is randomly selected as the current initial connection line between the current sub-target organization in the initial topology map and the target organization, wherein the current target organization is adjacent to the sub-target organization with defined connection lines; according to the elements in the connection line array, the current subscript in the subscript array corresponding to the current initial connection line is determined, and the current difference between the current subscript and the subscript of the sub-target organization with defined connection lines is calculated; if the current difference is greater than the preset difference, the current initial connection line is used as the connection line between the current sub-target organization and the target organization, until all the connection lines between the sub-target organizations and the target organization are defined, and the target topology map is obtained.

[0065] Among them, Figure 3As shown, an element is randomly selected from the connection line array as the length of the connection line between the first sub-target organization and the target organization, and the corresponding subscript is obtained. For example, if "200" is selected as the length of the first connection line, "3" will be generated as the subscript, and "120" is selected as the length of the connection line between the second sub-target organization and the target organization (where the first sub-target organization and the second sub-target organization are adjacent sub-target organizations), and "1" is correspondingly generated as the subscript. If the subscripts of the two exceed "1", the two sub-target organizations will not overlap in the target topology map. If the second sub-target organization also selects "200" as the connection line, then the corresponding subscript "3" is the same as the subscript of the first sub-target organization, and the two will have overlapping parts in the target topology map, affecting the visualization of the organizational structure, so it is necessary to reselect; in this way, a suitable connection line is selected for each sub-target organization, and finally the following is obtained. Figure 4 The target topology map.

[0066] Among them, in the target topology diagram (such as Figure 4 As shown), if there is still overlap between the sub-target organizations, the value of the elements in the connecting line array can be increased, that is, the radius value interval between the sub-target organization and the target organization can be expanded, so that the structure of the target organization is clearer and helps managers improve their management efficiency of the target organization.

[0067] Further, based on the organization interaction information, the sub-target organization information of each of the sub-target organizations is extracted from the organization information; the organization information is saved to the first node in the target topology map, and each of the sub-target organization information is saved to the second node in the target topology map, wherein the first node represents the target organization and the second node represents the sub-target organization.

[0068] Among them, after completing the construction of the target topology map, the organizational information of each organization can be saved to the corresponding node, and then the target topology map can be saved to the local storage space to ensure that when the target topology map is reopened, the distance between the nodes and the position of each node remain unchanged, thereby improving the integrity and observability of the organizational information.

[0069] Step S40: updating the color of each sub-target organization and the state of each connection line in the target topology map according to the organization information to obtain a final topology map.

[0070] Among them, the state of the connection line between the corresponding sub-target organization and the target organization can be determined according to the relationship between each sub-target organization and the target organization (organization information), and the color of the corresponding node can be determined according to the organizational information of the sub-target organization itself. In this way, the state of each node in the topological diagram can be determined intuitively, thereby improving the visualization of organizational information.

[0071] Specifically, according to each of the sub-target organization information, the color of each of the second nodes in the target topology map is updated; according to the organization interaction information, the color and thickness of each of the connection lines are updated to obtain a final topology map.

[0072] Among them, Figure 5 As shown, according to the organizational information of the sub-target organization and the relationship between the sub-target organization and the target organization, the color of the corresponding node, the color of the connecting line, and the thickness of the connecting line are determined to update the target topology map, and the following is obtained: Figure 6 The final topology is shown.

[0073] The present invention constructs a topological map of the target organization based on the organizational information, and can reflect the relevant information of each sub-target organization according to the color of the nodes in the topological map, and reflect the relationship between the sub-target organization and the target organization according to the state of the connecting lines in the topological map, which significantly improves the visualization of the organizational structure and helps to improve the efficiency of managing the organization.

[0074] Furthermore, if Figure 7 As shown, based on the above-mentioned method for drawing an organizational structure topology map, the present invention also provides a system for drawing an organizational structure topology map, wherein the system for drawing an organizational structure topology map includes:

[0075] The framework definition module 51 is used to install the chart library according to the installation instruction input by the user, define the framework information of the target organization by using the processing function in the chart library, obtain the organization information of the target organization, and define the initial array according to the framework information and the organization information;

[0076] A topology map construction module 52 is used to traverse and update the initial array according to the organization information to obtain an organization array, and to construct an initial topology map of the target organization according to the organization array;

[0077] A first topology map updating module 53 is used to randomly define connection lines between adjacent sub-target organizations in the initial topology map and the target organization, until the difference in connection lines between any adjacent sub-target organizations is greater than a preset value, thereby obtaining a target topology map, wherein the sub-target organization represents a subordinate organization of the target organization;

[0078] The second topology map updating module 54 is used to update the color of each sub-target organization and the state of each connection line in the target topology map according to the organization information to obtain a final topology map.

[0079] Furthermore, if Figure 8 As shown, based on the above-mentioned method and system for drawing an organizational structure topology diagram, the present invention also provides a terminal accordingly, and the terminal includes a processor 10, a memory 20 and a display 30. Figure 8Only some components of the terminal are shown, but it should be understood that it is not required to implement all of the components shown, and more or fewer components may be implemented instead.

[0080] In some embodiments, the memory 20 may be an internal storage unit of the terminal, such as a hard disk or memory of the terminal. In other embodiments, the memory 20 may also be an external storage device of the terminal, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the terminal. Further, the memory 20 may also include both an internal storage unit of the terminal and an external storage device. The memory 20 is used to store application software and various types of data installed in the terminal, such as the program code of the installation terminal, etc. The memory 20 may also be used to temporarily store data that has been output or is to be output. In one embodiment, the memory 20 stores a drawing program 40 of an organizational topology diagram, and the drawing program 40 of the organizational topology diagram can be executed by the processor 10, thereby realizing the drawing method of the organizational topology diagram in the present application.

[0081] In some embodiments, the processor 10 may be a central processing unit (CPU), a microprocessor or other data processing chip, used to run the program code or process data stored in the memory 20, such as executing the method for drawing the organizational structure topology diagram.

[0082] In some embodiments, the display 30 may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch device, etc. The display 30 is used to display information on the terminal and to display a visual user interface. The components 10-30 of the terminal communicate with each other via a system bus.

[0083] In one embodiment, when the processor 10 executes the organization architecture topology drawing program 40 in the memory 20, the following steps are implemented:

[0084] Installing a chart library according to an installation instruction input by a user, defining framework information of a target organization using a processing function in the chart library, acquiring organization information of the target organization, and defining an initial array according to the framework information and the organization information;

[0085] Traversing and updating the initial array according to the organization information to obtain an organization array, and constructing an initial topological map of the target organization according to the organization array;

[0086] Randomly define connection lines between adjacent sub-target organizations in the initial topology map and the target organization, until the difference between the connection lines of any adjacent sub-target organizations is greater than a preset value, thereby obtaining a target topology map, wherein the sub-target organization represents a subordinate organization of the target organization;

[0087] The color of each sub-target organization and the state of each connection line in the target topological map are updated according to the organization information to obtain a final topological map.

[0088] The organization information includes: node information, edge information and organization interaction information;

[0089] The step of installing a chart library according to an installation instruction input by a user, defining the framework information of the target organization using a processing function in the chart library, acquiring the organization information of the target organization, and defining an initial array according to the framework information and the organization information specifically includes:

[0090] Obtaining the installation instruction input by the user, installing the chart library according to the installation instruction, and defining the framework information of the target organization by using the processing function in the chart library;

[0091] Acquire the organization information of the target organization, decompose the organization information according to the framework information, and obtain a plurality of the node information, a plurality of the edge information and the organization interaction information;

[0092] An initial array is defined according to the plurality of node information and the plurality of edge information, wherein each element in the initial array includes a node information, an edge information and a null information.

[0093] The traversing and updating the initial array according to the organization information to obtain the organization array, and constructing the initial topology map of the target organization according to the organization array, specifically includes:

[0094] Analyze the organization interaction information to obtain the connection relationship between each sub-target organization and the target organization, and update the empty information of each element in the initial array according to each connection relationship to obtain the organization array;

[0095] Constructing an initial topological graph of the target organization according to all the node information, all the edge information and all the connection relationships in the organization array;

[0096] The initial topology diagram is formed by all the sub-target organizations individually connected to the target organization.

[0097] The step of randomly defining connection lines between adjacent sub-target organizations in the initial topology map and the target organization until the difference in connection lines between any adjacent sub-target organizations is greater than a preset value, thereby obtaining a target topology map, specifically includes:

[0098] Define a connection line array and a subscript array, wherein the connection line array includes a preset number of connection line lengths, the connection line lengths are incremented one by one, and the subscript array includes the preset number of subscript elements, the subscript elements respectively correspondingly represent each connection line length;

[0099] According to the connection line array and the subscript array, connection lines between adjacent sub-target organizations in the initial topology map and the target organization are randomly defined until the difference in connection lines between any adjacent sub-target organizations is greater than a preset value, thereby obtaining a target topology map.

[0100] The step of randomly defining connection lines between adjacent sub-target organizations and the target organization in the initial topology map according to the connection line array and the subscript array, until the connection line difference between any adjacent sub-target organizations is greater than a preset value, and obtaining the target topology map, specifically includes:

[0101] Randomly selecting two elements in the connection line array as initial connection lines between two adjacent sub-target organizations in the initial topology graph and the target organization respectively;

[0102] According to two elements in the connection line array, determining two subscripts in the subscript array corresponding to the two initial connection lines;

[0103] Calculating the difference between the two subscripts, and if the difference is greater than a preset difference, using the two initial connection lines as connection lines between two adjacent sub-target organizations in the initial topology diagram and the target organization respectively;

[0104] Randomly selecting an element in the connection line array as a current initial connection line between a current sub-target organization and the target organization in the initial topological map, wherein the current target organization is adjacent to the sub-target organization with a defined connection line;

[0105] According to the elements in the connection line array, determine the current subscript in the subscript array corresponding to the current initial connection line, and calculate the current difference between the current subscript and the subscript of the subtarget organization of the defined connection line;

[0106] If the current difference is greater than the preset difference, the current initial connection line is used as the connection line between the current sub-target organization and the target organization, until all the connection lines between the sub-target organizations and the target organization are defined to obtain a target topology map.

[0107] According to the connection line array and the subscript array, connection lines between adjacent sub-target organizations in the initial topology map and the target organization are randomly defined until the difference in connection lines of any adjacent sub-target organizations is greater than a preset value, thereby obtaining a target topology map, and then further comprising:

[0108] Extracting sub-target organization information of each of the sub-target organizations from the organization information according to the organization interaction information;

[0109] The organization information is saved in a first node in the target topology map, and each sub-target organization information is saved in a second node in the target topology map, wherein the first node represents the target organization and the second node represents the sub-target organization.

[0110] The updating of the color of each sub-target organization and the state of each connection line in the target topology map according to the organization information to obtain the final topology map specifically includes:

[0111] According to each of the sub-target organization information, updating the color of each of the second nodes in the target topology graph;

[0112] According to the organizational interaction information, the color and thickness of each connection line are updated to obtain a final topological map.

[0113] The present invention also provides a computer-readable storage medium, wherein the computer-readable storage medium stores a program for drawing an organizational structure topology map, and when the program for drawing an organizational structure topology map is executed by a processor, the steps of the method for drawing an organizational structure topology map as described above are implemented.

[0114] In summary, the present invention provides a method for drawing an organizational topology map and related equipment, the method comprising: installing a chart library according to an installation instruction input by a user, defining the framework information of a target organization using a processing function in the chart library, obtaining the organizational information of the target organization, and defining an initial array according to the framework information and the organizational information; traversing and updating the initial array according to the organizational information to obtain an organizational array, and constructing an initial topology map of the target organization according to the organizational array; randomly defining the connecting lines between adjacent sub-target organizations in the initial topology map and the target organization, until the connecting line difference between any adjacent sub-target organizations is greater than a preset value, and obtaining a target topology map, wherein the sub-target organization represents a subordinate organization of the target organization; updating the color of each sub-target organization and the state of each connecting line in the target topology map according to the organizational information, and obtaining a final topology map. The present invention constructs a topology map of the target organization according to the organizational information, and can reflect the relevant information of each sub-target organization according to the node color in the topology map, and reflect the relationship between the sub-target organization and the target organization according to the state of the connecting line in the topology map, which significantly improves the visualization of the organizational structure and helps to improve the efficiency of managing the organization.

[0115] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or terminal including the element.

[0116] Of course, those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing related hardware (such as a processor, a controller, etc.) through a computer program, and the program can be stored in a computer-readable storage medium that can be read by a computer, and the program can include the processes of the above-mentioned method embodiments when executed. The computer-readable storage medium can be a memory, a disk, an optical disk, etc.

[0117] It should be understood that the application of the present invention is not limited to the above examples. For ordinary technicians in this field, improvements or changes can be made based on the above description. All these improvements and changes should fall within the scope of protection of the claims attached to the present invention.

Claims

1. A method for drawing an organizational structure topology diagram, characterized in that: The method for drawing the organizational structure topology diagram includes: Installing a chart library according to an installation instruction input by a user, defining framework information of a target organization using a processing function in the chart library, acquiring organization information of the target organization, and defining an initial array according to the framework information and the organization information; Traversing and updating the initial array according to the organization information to obtain an organization array, and constructing an initial topological map of the target organization according to the organization array; Randomly define connection lines between adjacent sub-target organizations in the initial topology map and the target organization, until the difference between the connection lines of any adjacent sub-target organizations is greater than a preset value, thereby obtaining a target topology map, wherein the sub-target organization represents a subordinate organization of the target organization; The color of each sub-target organization and the state of each connection line in the target topological map are updated according to the organization information to obtain a final topological map.

2. The method for drawing an organizational structure topology diagram according to claim 1, characterized in that: The organization information includes: node information, edge information and organization interaction information; The step of installing a chart library according to an installation instruction input by a user, defining the framework information of the target organization using a processing function in the chart library, acquiring the organization information of the target organization, and defining an initial array according to the framework information and the organization information specifically includes: Obtaining the installation instruction input by the user, installing the chart library according to the installation instruction, and defining the framework information of the target organization by using the processing function in the chart library; Acquire the organization information of the target organization, decompose the organization information according to the framework information, and obtain a plurality of the node information, a plurality of the edge information and the organization interaction information; An initial array is defined according to the plurality of node information and the plurality of edge information, wherein each element in the initial array includes a node information, an edge information and a null information.

3. The method for drawing an organizational structure topology diagram according to claim 2, characterized in that: The traversing and updating the initial array according to the organization information to obtain an organization array, and constructing an initial topology map of the target organization according to the organization array, specifically includes: Analyze the organization interaction information to obtain the connection relationship between each sub-target organization and the target organization, and update the empty information of each element in the initial array according to each connection relationship to obtain the organization array; Constructing an initial topological graph of the target organization according to all the node information, all the edge information and all the connection relationships in the organization array; The initial topology diagram is formed by all the sub-target organizations individually connected to the target organization.

4. The method for drawing an organizational structure topology diagram according to claim 1, characterized in that: The randomly defining connection lines between adjacent sub-target organizations in the initial topology map and the target organization respectively, until the difference in connection lines between any adjacent sub-target organizations is greater than a preset value, to obtain a target topology map, specifically includes: Define a connection line array and a subscript array, wherein the connection line array includes a preset number of connection line lengths, the connection line lengths are incremented one by one, and the subscript array includes the preset number of subscript elements, the subscript elements respectively correspondingly represent each connection line length; According to the connection line array and the subscript array, connection lines between adjacent sub-target organizations in the initial topology map and the target organization are randomly defined until the difference in connection lines between any adjacent sub-target organizations is greater than a preset value, thereby obtaining a target topology map.

5. The method for drawing an organizational structure topology diagram according to claim 4, characterized in that: The step of randomly defining connection lines between adjacent sub-target organizations and the target organization in the initial topology map according to the connection line array and the subscript array, until the connection line difference between any adjacent sub-target organizations is greater than a preset value, thereby obtaining a target topology map, specifically includes: Randomly selecting two elements in the connection line array as initial connection lines between two adjacent sub-target organizations in the initial topology graph and the target organization respectively; According to two elements in the connection line array, determining two subscripts in the subscript array corresponding to the two initial connection lines; Calculating the difference between the two subscripts, and if the difference is greater than a preset difference, using the two initial connection lines as connection lines between two adjacent sub-target organizations in the initial topology diagram and the target organization respectively; Randomly selecting an element in the connection line array as a current initial connection line between a current sub-target organization and the target organization in the initial topological map, wherein the current target organization is adjacent to the sub-target organization with a defined connection line; According to the elements in the connection line array, determine the current subscript in the subscript array corresponding to the current initial connection line, and calculate the current difference between the current subscript and the subscript of the subtarget organization of the defined connection line; If the current difference is greater than the preset difference, the current initial connection line is used as the connection line between the current sub-target organization and the target organization, until all the connection lines between the sub-target organizations and the target organization are defined to obtain a target topology map.

6. The method for drawing an organizational structure topology diagram according to claim 5, characterized in that: According to the connection line array and the subscript array, connection lines between adjacent sub-target organizations in the initial topology map and the target organization are randomly defined until the difference in connection lines of any adjacent sub-target organizations is greater than a preset value, thereby obtaining a target topology map, and then further comprising: Extracting sub-target organization information of each of the sub-target organizations from the organization information according to the organization interaction information; The organization information is saved in a first node in the target topology map, and each sub-target organization information is saved in a second node in the target topology map, wherein the first node represents the target organization and the second node represents the sub-target organization.

7. The method for drawing an organizational structure topology diagram according to claim 6, characterized in that: The step of updating the color of each sub-target organization and the state of each connection line in the target topology map according to the organization information to obtain a final topology map specifically includes: According to each of the sub-target organization information, updating the color of each of the second nodes in the target topology graph; According to the organizational interaction information, the color and thickness of each connection line are updated to obtain a final topological map.

8. A system for drawing an organizational topology diagram, characterized in that: The system for drawing the organizational structure topology diagram includes: A framework definition module, used to install a chart library according to an installation instruction input by a user, define the framework information of a target organization using a processing function in the chart library, obtain the organization information of the target organization, and define an initial array according to the framework information and the organization information; A topology map construction module, used to traverse and update the initial array according to the organization information, obtain an organization array, and construct an initial topology map of the target organization according to the organization array; A first topology map updating module is used to randomly define connection lines between adjacent sub-target organizations in the initial topology map and the target organization, until the difference in connection lines between any adjacent sub-target organizations is greater than a preset value, thereby obtaining a target topology map, wherein the sub-target organization represents a subordinate organization of the target organization; The second topology map updating module is used to update the color of each sub-target organization and the state of each connection line in the target topology map according to the organization information to obtain a final topology map.

9. A terminal, characterized in that: The terminal includes: a memory, a processor, and a program for drawing an organizational structure topology map stored in the memory and executable on the processor. When the program for drawing an organizational structure topology map is executed by the processor, the steps of the method for drawing an organizational structure topology map as described in any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a program for drawing an organizational structure topology map, and when the program for drawing an organizational structure topology map is executed by a processor, the steps of the method for drawing an organizational structure topology map according to any one of claims 1 to 7 are implemented.