WO2021012486A1 - 数据结构图的展示方法、装置、计算机设备及存储介质 - Google Patents

数据结构图的展示方法、装置、计算机设备及存储介质 Download PDF

Info

Publication number
WO2021012486A1
WO2021012486A1 PCT/CN2019/116709 CN2019116709W WO2021012486A1 WO 2021012486 A1 WO2021012486 A1 WO 2021012486A1 CN 2019116709 W CN2019116709 W CN 2019116709W WO 2021012486 A1 WO2021012486 A1 WO 2021012486A1
Authority
WO
WIPO (PCT)
Prior art keywords
node
data
structure diagram
data structure
information
Prior art date
Application number
PCT/CN2019/116709
Other languages
English (en)
French (fr)
Inventor
陈恺
刘嘉
Original Assignee
平安科技(深圳)有限公司
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 平安科技(深圳)有限公司 filed Critical 平安科技(深圳)有限公司
Publication of WO2021012486A1 publication Critical patent/WO2021012486A1/zh

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/22Indexing; Data structures therefor; Storage structures
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Definitions

  • This application relates to the computer field, in particular to the display method, device, computer equipment and storage medium of the data structure diagram.
  • the existing target data structure is constructed according to the configuration information, and the association relationship between the node position and the display data is realized.
  • the node position contained in the data structure and the association relationship between the nodes can be automatically drawn to the data structure, which is simple and fast.
  • the construction of data structure diagram when constructing the data structure diagram, only the associated information between the nodes is associated to form a node topology, and the entire data structure diagram can only be displayed as a whole regardless of the display state corresponding to the configuration information.
  • the graph contains a large amount of data and the node structure is more complex, the display effect is not friendly enough, and it is impossible to perform targeted partial display according to the selected node.
  • the main purpose of this application is to provide a method for displaying data structure diagrams, which aims to solve the technical problem that the existing data structure diagrams cannot be displayed in a targeted manner.
  • This application proposes a method for displaying a data structure diagram, including:
  • Keyword information corresponding to the first location area where the keyword information includes a node code corresponding to a data node;
  • the local area structure diagram is displayed according to a preset display mode.
  • This application also provides a data structure diagram display device, including:
  • the first identification module is used to identify the first location area determined by the user on the target data structure map by using the cursor, wherein the target data structure map is composed of data nodes, and the first location area is the data node Distribution location range;
  • the first obtaining module is configured to obtain keyword information corresponding to the first location area, where the keyword information includes the node code corresponding to the data node;
  • a locking module configured to lock the local area structure diagram corresponding to the target data structure diagram according to a preset rule according to the node code corresponding to the data node;
  • the display module is used to display the local area structure diagram according to a preset display mode.
  • the present application also provides a computer device, including a memory and a processor, the memory stores a computer program, and the processor implements the steps of the above method when the computer program is executed.
  • the present application also provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the steps of the above method are realized.
  • This application adds the node number of the data node when constructing the target data structure diagram, and stores it in association with the node position information of the data node as the keyword information of the data node. According to the keyword information input by the user, it is displayed in a targeted manner.
  • the partial data structure diagram of the data node corresponding to the keyword information by adding the node number of the data node when constructing the target data structure diagram, realizes the overall or partial display of the data structure diagram, which is more convenient for users to view.
  • the above keyword information includes the node number of a data node or the node numbers of two data nodes.
  • the local data structure diagram corresponding to the target data structure diagram is locked according to the node number of a data node, including the root node and child nodes of the data node, And the association relationship between the nodes; lock all data nodes and the association relationship between the two data nodes in the target data structure graph according to the node numbers of the two data nodes.
  • FIG. 1 is a schematic flowchart of a method for displaying a data structure diagram according to an embodiment of the present application
  • FIG. 2 is a schematic structural diagram of a display device of a data structure diagram of an embodiment of the present application
  • Fig. 3 is a schematic diagram of the internal structure of a computer device according to an embodiment of the present application.
  • the method for displaying a data structure diagram of this embodiment includes:
  • S1 Identify the first location area determined by the user on the target data structure graph by using the cursor, where the target data structure graph is composed of data nodes, and the first location area is a distribution location range of multiple data nodes.
  • This embodiment captures the state where the user controls the cursor movement, and locates the data node through the cursor positioning. For example, when the user moves the cursor to the data node M on the data structure diagram, the keyword information corresponding to the data node M will flash on The corresponding position of the data node M on the data structure diagram; when the cursor leaves the data node M, the keyword information corresponding to the data node M will stop flashing.
  • a selection positioning signal is formed by the continuous pause of the cursor, and it is determined whether the duration of the cursor paused on the data node M exceeds a preset time period, and if it exceeds, it is determined that the data node M is selected.
  • the user forms the first location area by selecting at least two data nodes on the positioning target data structure graph.
  • S2 Acquire keyword information corresponding to the first location area, where the keyword information includes a node code corresponding to a data node.
  • each data node in the target data structure graph is coded by a preset coding rule to form a corresponding node code, so as to realize the distinction of each data node.
  • the node code corresponding to each data node in this embodiment can reflect the association relationship between each data node and other data nodes, and can search in the target data structure diagram according to the node code, quickly locate each data node, and facilitate searching in the target data structure diagram
  • the corresponding information of the data node is convenient for managing each data node.
  • this embodiment realizes the rapid locking of the local area structure diagram required by the user, and the input node code facilitates the user to filter the local area structure diagram.
  • the foregoing preset rule includes the first rule corresponding to when the local area structure map corresponding to the first location area is locked according to one data node, and also includes when the local area structure map corresponding to the first location area is locked according to two data nodes.
  • the corresponding second rule specifically calls the corresponding preset rule by identifying the number of node codes input by the user.
  • the keyword information in this embodiment includes the node code of one data node or the node codes corresponding to two data nodes respectively.
  • S4 Display the partial area structure diagram according to a preset display mode.
  • the preset display method of this embodiment includes intercepting the local area structure diagram to a designated display area for display, or hiding the part of the local area structure diagram at the original display position of the target data structure diagram to make the local area structure diagram highlight.
  • the method includes:
  • S11 Acquire configuration information of the target data structure graph, where the configuration information includes node location information corresponding to the data node and a node code corresponding to the node location information one-to-one.
  • the configuration information of this embodiment includes the node location information of the data node.
  • the node location information is expressed by the level of the data node in the target data structure graph relative to the total root node of the target data structure graph, for example, the total root node is a data node A.
  • the child node of data node A is data node B
  • the child node of data node B is data node C.
  • the number of levels of data node C relative to data node A is 2, and the node location information of data node C is expressed as A2.
  • the node code in this embodiment includes not only the location of the data node but also the link relationship with other data nodes. By establishing a node code corresponding to the node location information, the data node can be quickly located, and the node code is a corresponding number combination to facilitate the user’s convenience. Call operation.
  • S12 Construct the target data structure diagram according to the configuration information, wherein the target data structure diagram carries a node code corresponding to the node location information one-to-one.
  • the node codes corresponding to the node location information are associated with the target data structure graph, so as to quickly locate the designated location area in the target data structure graph through the node codes.
  • step S11 of obtaining the configuration information of the target data structure diagram the method includes:
  • S11a Identify node location information of each data node, where the node location information includes node level information and node link information of the data node in the target data structure graph.
  • the node level information in this embodiment is the number of levels of the data node relative to the total root node in the target data structure graph.
  • the number of levels can be represented by Arabic numerals, 0 represents the highest level, the larger the number, the lower the level of the node; the number of levels can also be represented by the letters a to z, a represents the total root node is the highest level, sorted by 26 letters, alphabetical order The lower the level, the lower the level.
  • S11b According to the node level information and the node link information, respectively generate a node code corresponding to each data node, wherein the node code is composed of a first array corresponding to the node level information and a second array corresponding to the node link information.
  • the node location information in this embodiment includes node level information and node link information at the same time.
  • the information is comprehensive and convenient for positioning, and the node level information and node link information are respectively represented by numbers, which is concise and easy to operate.
  • the number corresponding to the node level information of data node B is 2, the node link information of data node B is the child node of the total root node, and the subordinate node of data node B is data node C, then the node link information of data node B is expressed as 0A3C, 0A indicates that data node B is a child node of the total root node A, 3C indicates that the subordinate node of data node B is data node C, and the level of data node C relative to the total root node A is 3, so the node code of data node B For 20A3C.
  • S11c Store each of the node codes in association with the node location information of each of the data nodes.
  • the node code is stored in association with the node location information of each data node, so that when the target data structure graph is constructed, the node code is associated with the target data structure graph.
  • step S3 of locking the local area structure diagram corresponding to the target data structure diagram according to a preset rule according to the node code corresponding to the data node includes:
  • S31 Obtain the node location information corresponding to the designated data node according to the first node code, where the designated data node is any one of all data nodes, and the first node code is the node code corresponding to the designated data node .
  • S32 According to the node position information of the designated data node, determine a first node group that has a link relationship with the designated data node, wherein the first node group includes the root node of the designated data node and the designated data The child nodes of the node.
  • This embodiment takes the node code of a data node included in the keyword information as an example to explain the first rule.
  • the first rule is the corresponding locking rule when a data node locks the local area structure map corresponding to the first location area, so that According to the designated data node corresponding to a node code input by the user as the center, the first local area structure is locked.
  • the first local area structure includes the root node of the designated data node and the child nodes of the designated data node.
  • step S3 of locking the local area structure diagram corresponding to the target data structure diagram according to a preset rule according to the node code corresponding to the data node includes:
  • S34 Determine whether the first data node and the second data node have a link path in the target data structure diagram, wherein the first data node and the second data node are any two of all data nodes,
  • the link path includes a direct path formed by a direct link and an indirect path formed by an indirect link.
  • This embodiment takes the node codes of two data nodes included in the keyword information as an example to explain the second rule.
  • the second rule is the corresponding lock when the local area structure map corresponding to the first location area is locked according to the two data nodes.
  • the above-mentioned link path is the connection relationship between the data nodes, which is determined according to the data nodes that have the connection relationship in the target data structure diagram. If there is a continuous connection relationship between the data node J and the data node H, there is a link path.
  • the target data structure graph which is data node A
  • data node A includes three sub-nodes, namely data node B, data node H, and data node L; there are data nodes in the target data structure graph A->data node B->data node C->data node D; data node A->data node H->data node I->data node J->data node K; data node A->data node L- >data node M->data node N; then there is no link link between data node H and data node N.
  • all child nodes with the same root node have link links.
  • the above-mentioned data node H and data node N have the same root node, and data node A, then data node H to data node There is a link link between nodes N.
  • the default is to call the first node group corresponding to the two node codes at the same time.
  • a partial area structure diagram when the data nodes corresponding to two node codes respectively do not have a link path in the target data structure diagram, the default is to call the first node group corresponding to the two node codes at the same time.
  • step S4 of displaying the partial area structure diagram according to a preset display manner includes:
  • This embodiment preferably hides the data nodes and link segments in the target data structure diagram except the local area structure diagram by blurring the display traces, so that the local area structure diagram is displayed in the original display of the target data structure diagram. The location is highlighted.
  • the method includes:
  • S5 Determine a third data node selected by the user in the local area structure diagram, where the third data node is any data node in the local area structure diagram.
  • S7 Shift the local area structure diagram, data nodes other than the first data node, and link line segments between the data nodes according to the movement track.
  • This embodiment also supports dynamic display.
  • the overall dynamic change of the local area structure diagram can be maintained by means of panning or equal scaling.
  • the local area structure diagram For example, the partial area structure diagram at the edge of the display screen is moved as a whole to the center area of the display screen for the user to view.
  • the node number of the data node when constructing the target data structure diagram by adding the node number of the data node when constructing the target data structure diagram, and storing it in association with the node position information of the data node, it is used as the key information of the data node, and the key information entered by the user is displayed in a targeted manner.
  • the partial data structure diagram of the data node corresponding to the keyword information by adding the node number of the data node when constructing the target data structure diagram, realizes the overall or partial display of the data structure diagram, which is more convenient for users to view.
  • the above keyword information includes the node number of a data node or the node numbers of two data nodes.
  • the local data structure diagram corresponding to the target data structure diagram is locked according to the node number of a data node, including the root node and child nodes of the data node, And the association relationship between the nodes; lock all data nodes and the association relationship between the two data nodes in the target data structure graph according to the node numbers of the two data nodes.
  • a data structure diagram display device includes:
  • the first identification module 1 is used to identify a first location area determined by a user on a target data structure graph by using a cursor, wherein the target data structure graph is composed of data nodes, and the first location area is a plurality of the data nodes The range of distribution locations.
  • This embodiment captures the state where the user controls the cursor movement, and locates the data node through the cursor positioning. For example, when the user moves the cursor to the data node M on the data structure diagram, the keyword information corresponding to the data node M will flash on The corresponding position of the data node M on the data structure diagram; when the cursor leaves the data node M, the keyword information corresponding to the data node M will stop flashing.
  • a selection positioning signal is formed by the continuous pause of the cursor, and it is determined whether the duration of the cursor paused on the data node M exceeds a preset time period, and if it exceeds, it is determined that the data node M is selected.
  • the user forms the first location area by selecting at least two data nodes on the positioning target data structure graph.
  • the first obtaining module 2 is configured to obtain keyword information corresponding to the first location area, where the keyword information includes the node code corresponding to the data node.
  • each data node in the target data structure graph is coded by a preset coding rule to form a corresponding node code, so as to realize the distinction of each data node.
  • the node code corresponding to each data node in this embodiment can reflect the association relationship between each data node and other data nodes, and can search in the target data structure diagram according to the node code, quickly locate each data node, and facilitate searching in the target data structure diagram
  • the corresponding information of the data node is convenient for managing each data node.
  • the locking module 3 is configured to lock the local area structure diagram corresponding to the target data structure diagram according to a preset rule according to the node code corresponding to the data node.
  • this embodiment realizes the rapid locking of the local area structure diagram required by the user, and the input node code facilitates the user to filter the local area structure diagram.
  • the foregoing preset rule includes the first rule corresponding to when the local area structure map corresponding to the first location area is locked according to one data node, and also includes when the local area structure map corresponding to the first location area is locked according to two data nodes.
  • the corresponding second rule specifically calls the corresponding preset rule by identifying the number of node codes input by the user.
  • the keyword information in this embodiment includes the node code of one data node or the node codes corresponding to two data nodes respectively.
  • the display module 4 is used to display the partial area structure diagram according to a preset display mode.
  • the preset display method of this embodiment includes intercepting the local area structure diagram to a designated display area for display, or hiding the part of the local area structure diagram at the original display position of the target data structure diagram to make the local area structure diagram highlight.
  • the display device of the data structure diagram includes:
  • the second acquiring module is configured to acquire configuration information of the target data structure graph, where the configuration information includes node location information corresponding to the data node and a node code corresponding to the node location information one-to-one.
  • the configuration information of this embodiment includes the node location information of the data node.
  • the node location information is expressed by the level of the data node in the target data structure graph relative to the total root node of the target data structure graph, for example, the total root node is a data node A.
  • the child node of data node A is data node B
  • the child node of data node B is data node C.
  • the number of levels of data node C relative to data node A is 2, and the node location information of data node C is expressed as A2.
  • the node code in this embodiment includes not only the location of the data node but also the link relationship with other data nodes. By establishing a node code corresponding to the node location information, the data node can be quickly located, and the node code is a corresponding number combination to facilitate the user’s convenience. Call operation.
  • the construction module is configured to construct the target data structure diagram according to the configuration information, wherein the target data structure diagram carries a node code corresponding to the node location information one to one.
  • the node codes corresponding to the node location information are associated with the target data structure graph, so as to quickly locate the designated location area in the target data structure graph through the node codes.
  • the display device of the data structure diagram includes:
  • the second identification module is used to identify node location information of each of the data nodes, where the node location information includes node level information and node link information of the data node in the target data structure graph.
  • the node level information in this embodiment is the number of levels of the data node relative to the total root node in the target data structure graph.
  • the number of levels can be represented by Arabic numerals, 0 represents the highest level, the larger the number, the lower the level of the node; the number of levels can also be represented by the letters a to z, a represents the total root node is the highest level, sorted by 26 letters, alphabetical order The lower the level, the lower the level.
  • the generating module is configured to generate respectively corresponding node codes for each data node according to the node level information and node link information, wherein the node codes are composed of a first array corresponding to the node level information and a second array corresponding to the node link information composition.
  • the node location information in this embodiment includes node level information and node link information at the same time.
  • the information is comprehensive and convenient for positioning, and the node level information and node link information are respectively represented by numbers, which is concise and easy to operate.
  • the number corresponding to the node level information of data node B is 2, the node link information of data node B is the child node of the total root node, and the subordinate node of data node B is data node C, then the node link information of data node B is expressed as 0A3C, 0A indicates that data node B is a child node of the total root node A, 3C indicates that the subordinate node of data node B is data node C, and the level of data node C relative to the total root node A is 3, so the node code of data node B For 20A3C.
  • the storage module is used to store each of the node codes in association with the node location information of each of the data nodes.
  • the node code is stored in association with the node location information of each data node, so that when the target data structure graph is constructed, the node code is associated with the target data structure graph.
  • the locking module 3 includes:
  • the acquiring unit is configured to acquire the node position information corresponding to the designated data node according to the first node code, wherein the designated data node is any one of all data nodes, and the first node code corresponds to the designated data node The node code.
  • the first determining unit is configured to determine a first node group that has a link relationship with the designated data node according to the node location information of the designated data node, wherein the first node group includes the root node of the designated data node And the child nodes of the specified data node.
  • the first locking unit is configured to lock the first partial area structure diagram in the target data structure diagram corresponding to the first node group.
  • This embodiment takes the node code of a data node included in the keyword information as an example to explain the first rule.
  • the first rule is the corresponding locking rule when a data node locks the local area structure map corresponding to the first location area, so that According to the designated data node corresponding to a node code input by the user as the center, the first local area structure is locked.
  • the first local area structure includes the root node of the designated data node and the child nodes of the designated data node.
  • the locking module 3 includes:
  • the judging unit is used to judge whether the first data node and the second data node have a link path in the target data structure diagram, wherein the first data node and the second data node are any of all data nodes Two, the link path includes a direct path formed by a direct link and an indirect path formed by an indirect link.
  • the second determining unit is configured to determine a second node group according to the link path if the first data node and the second data node have a link path in the target data structure graph, wherein the second node group includes all All data nodes on the link path.
  • the second locking unit is configured to lock the second partial area structure diagram in the target data structure diagram corresponding to the second node group.
  • This embodiment takes the node codes of two data nodes included in the keyword information as an example to explain the second rule.
  • the second rule is the corresponding lock when the local area structure map corresponding to the first location area is locked according to the two data nodes.
  • the above-mentioned link path is the connection relationship between the data nodes, which is determined according to the data nodes that have the connection relationship in the target data structure diagram. If there is a continuous connection relationship between the data node J and the data node H, there is a link path.
  • the target data structure graph which is data node A
  • data node A includes three sub-nodes, namely data node B, data node H, and data node L; there are data nodes in the target data structure graph A->data node B->data node C->data node D; data node A->data node H->data node I->data node J->data node K; data node A->data node L- >data node M->data node N; then there is no link link between data node H and data node N.
  • all child nodes with the same root node have link links.
  • the above-mentioned data node H and data node N have the same root node, and data node A, then data node H to data node There is a link link between nodes N.
  • the default is to call the first node group corresponding to the two node codes at the same time.
  • a partial area structure diagram when the data nodes corresponding to two node codes respectively do not have a link path in the target data structure diagram, the default is to call the first node group corresponding to the two node codes at the same time.
  • the display module 4 includes:
  • the hiding unit is used to hide the data nodes and link segments in the target data structure diagram except the local area structure diagram.
  • This embodiment preferably hides the data nodes and link segments in the target data structure diagram except the local area structure diagram by blurring the display traces, so that the local area structure diagram is displayed in the original display of the target data structure diagram. The location is highlighted.
  • the display device of the data structure diagram includes:
  • the determining module is used to determine the third data node selected by the user in the local area structure diagram, where the third data node is any data node in the local area structure diagram.
  • the monitoring module is used to monitor the movement track of the user dragging the first data node through the cursor.
  • the translation module is configured to translate data nodes other than the first data node and the link line segment between the data nodes in the local area structure diagram according to the movement track.
  • This embodiment also supports dynamic display.
  • the overall dynamic change of the local area structure diagram can be maintained by means of panning or equal scaling.
  • the local area structure diagram For example, the partial area structure diagram at the edge of the display screen is moved as a whole to the center area of the display screen for the user to view.
  • an embodiment of the present application also provides a computer device.
  • the computer device may be a server, and its internal structure may be as shown in FIG. 3.
  • the computer equipment includes a processor, a memory, a network interface and a database connected through a system bus. Among them, the computer designed processor is used to provide calculation and control capabilities.
  • the memory of the computer device includes a readable storage medium and an internal memory.
  • the readable storage medium stores an operating system, computer readable instructions, and a database.
  • the above-mentioned readable storage medium includes a non-volatile readable storage medium and a volatile readable storage medium.
  • the memory provides an environment for the operation of the operating system and computer readable instructions in the non-volatile storage medium.
  • the database of the computer equipment is used to store data such as data structure diagrams.
  • the network interface of the computer device is used to communicate with an external terminal through a network connection.
  • the computer-readable instruction executes the process of the above-mentioned method embodiment.
  • An embodiment of the present application further provides a computer-readable storage medium on which computer-readable instructions are stored.
  • the processes of the foregoing method embodiments are executed.
  • the above-mentioned readable storage medium includes non-volatile readable storage medium and volatile readable storage medium.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

一种数据结构图的展示方法、装置、计算机设备及存储介质,其中,数据结构图的展示方法,包括:识别用户通过光标在目标数据结构图上确定的第一位置区域(S1);获取所述第一位置区域对应的关键字信息,其中所述关键字信息包括数据节点对应的节点编码(S2);根据所述数据节点对应的节点编码,按照预设规则锁定所述目标数据结构图对应的局部区域结构图(S3);按照预设展示方式展示所述局部区域结构图(S4)。通过在构建目标数据结构图时增加数据节点的节点编号,并与数据节点的节点位置信息关联存储,以作为数据节点的关键字信息,根据用户输入的关键字信息,针对性的展示对应的数据节点的局部数据结构图,实现数据结构图的整体或局部显示,更方便用户查看。

Description

数据结构图的展示方法、装置、计算机设备及存储介质
本申请要求于2019年07月19日提交中国专利局、申请号为201910655481.2,发明名称为“数据结构图的展示方法、装置、计算机设备及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及到计算机领域,特别是涉及到数据结构图的展示方法、装置、计算机设备及存储介质。
背景技术
现有根据配置信息构建目标数据结构,实现了节点位置和显示数据之间的关联关系,可将数据结构中包含的节点位置以及各节点之间的关联关系自动绘制数据结构,简单、快速地实现了数据结构图的构建。但在构建数据结构图时仅关联了节点之间的关联信息,使形成节点拓扑,且整个数据结构图无论根据那种配置信息对应的显示状态进行显示时,均只能整体显示,当数据结构图包含的数据量较大且节点结构较复杂时,展示效果不够友好,不能根据选定的节点进行针对性的局部显示。
技术问题
本申请的主要目的为提供数据结构图的展示方法,旨在解决现有数据结构图不能进行针对性的局部显示的技术问题。
技术解决方案
本申请提出一种数据结构图的展示方法,包括:
识别用户通过光标在目标数据结构图上确定的第一位置区域,其中所述目标数据结构图由数据节点构成,所述第一位置区域为多个所述数据节点的分布位置范围;
获取所述第一位置区域对应的关键字信息,其中所述关键字信息包括数据节点对应的节点编码;
根据所述数据节点对应的节点编码,按照预设规则锁定所述目标数据结构图对应的局部区域结构图;
按照预设展示方式展示所述局部区域结构图。
本申请还提供了一种数据结构图的展示装置,包括:
第一识别模块,用于识别用户通过光标在目标数据结构图上确定的第一位置区域,其中所述目标数据结构图由数据节点构成,所述第一位置区域为多个所述数据节点的分布位置范围;
第一获取模块,用于获取所述第一位置区域对应的关键字信息,其中所述关键字信息包括数据节点对应的节点编码;
锁定模块,用于根据所述数据节点对应的节点编码,按照预设规则锁定所述目标数据结构图对应的局部区域结构图;
展示模块,用于按照预设展示方式展示所述局部区域结构图。
本申请还提供了一种计算机设备,包括存储器和处理器,所述存储器存储有计算机程序,所述处理器执行所述计算机程序时实现上述方法的步骤。
本申请还提供了一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现上述的方法的步骤。
有益效果
本申请通过在构建目标数据结构图时增加数据节点的节点编号,并与数据节点的节点位置信息关联存储,以作为数据节点的关键字信息,根据用户输入的关键字信息,针对性的展示该关键字信息对应的数据节点的局部数据结构图,通过在构建目标数据结构图时增加数据节点的节点编号,实现数据结构图的整体或局部显示,更方便用户查看。上述关键字信息包括一个数据节点的节点编号,或两个数据节点的节点编号,根据一个数据节点的节点编号锁定目标数据结构图对应的局部数据结构图,包括该数据节点的根节点和子节点,以及节点间的关联关系;根据两个数据节点的节点编号锁定目标数据结构图中两个数据节点之间的所有数据节点以及关联关系。
附图说明
图1 本申请一实施例的数据结构图的展示方法流程示意图;
图2本申请一实施例的数据结构图的展示装置结构示意图;
图3 本申请一实施例的计算机设备内部结构示意图。
本发明的最佳实施方式
参照图1,本实施例的数据结构图的展示方法,包括:
S1:识别用户通过光标在目标数据结构图上确定的第一位置区域,其中所述目标数据结构图由数据节点构成,所述第一位置区域为多个所述数据节点的分布位置范围。
本实施例通过捕捉用户控制光标移动的状态,并通过光标的定位作用进行数据节点定位,比如用户将光标移动到数据结构图上的数据节点M时,数据节点M对应的关键字信息会闪现于数据结构图上的数据节点M对应位置处;当光标离开数据节点M后,数据节点M对应的关键字信息会终止闪现。本实施例通过光标的持续暂停形成选择定位信号,判断光标暂停于数据节点M的持续时长是否超过预设时长,若超过,则判定为选定了数据节点M。用户通过选择定位目标数据结构图上的至少两个数据节点,形成第一位置区域。
S2:获取所述第一位置区域对应的关键字信息,其中所述关键字信息包括数据节点对应的节点编码。
本实施例通过预设的编码规则对目标数据结构图中的各数据节点进行编码,形成对应的节点编码,以实现对各数据节点的区分。本实施例各数据节点对应的节点编码可体现各数据节点与其他数据节点的关联关系,且可根据节点编码在目标数据结构图中搜索,快速定位各数据节点,便于在目标数据结构图中查找数据节点的对应信息,同时便于管理各数据节点。
S3:根据所述数据节点对应的节点编码,按照预设规则锁定所述目标数据结构图对应的局部区域结构图。
本实施例根据关键字信息中包含的节点编码,实现快速锁定用户需要的局部区域结构图,且通过输入节点编码方便用户筛选局部区域结构图。上述预设规则包括根据一个数据节点锁定所述第一位置区域对应的局部区域结构图时对应的第一规则,还包括根据两个数据节点锁定所述第一位置区域对应的局部区域结构图时对应的第二规则,通过识别用户输入的节点编码的数量针对性地调用对应的预设规则。本实施例的关键字信息中包括一个数据节点的节点编码或两个数据节点分别对应的节点编码。
S4:按照预设展示方式展示所述局部区域结构图。
本实施例的预设展示方式包括截取所述局部区域结构图到指定展示区域进行展示,或在目标数据结构图的原展示位置处通过隐藏局部区域结构图之外的部分,使局部区域结构图突出显示。
进一步地,所述识别用户通过光标在目标数据结构图上确定的第一位置区域的步骤S1之前,包括:
S11:获取所述目标数据结构图的配置信息,其中所述配置信息包括所述数据节点对应的节点位置信息以及与所述节点位置信息一一对应的节点编码。
本实施例的配置信息包括数据节点的节点位置信息,上述节点位置信息通过数据节点在目标数据结构图中,相对于目标数据结构图的总根节点的层级数表示,比如总根节点为数据节点A,数据节点A的子节点为数据节点B,数据节点B的子节点为数据节点C,则数据节点C相对于数据节点A的层级数为2,数据节点C的节点位置信息表示为A2。本实施例的节点编码不仅包括数据节点位置还包括了与其他数据节点的链接关系,通过建立与节点位置信息对应的节点编码,实现快速定位数据节点,且节点编码为对应的数字组合方便用户的调用操作。
S12:根据所述配置信息构建所述目标数据结构图,其中所述目标数据结构图携带与所述节点位置信息一一对应的节点编码。
本实施例在构建目标数据结构图时,将节点位置信息一一对应的节点编码关联到目标数据结构图中,以便通过节点编码快速定位目标数据结构图中的指定位置区域。
进一步地,所述获取所述目标数据结构图的配置信息的步骤S11之前,包括:
S11a:识别各所述数据节点的节点位置信息,其中所述节点位置信息包括数据节点在所述目标数据结构图的节点等级信息以及节点链接信息。
本实施例的节点等级信息为数据节点在目标数据结构图中相对于总根节点的层级数。层级数可通过阿拉伯数字表示,0表示最高层级,数字越大表明节点的等级越低;层级数也可通过字母a至z表示,a表示总根节点为最高层级,按照26字母排序,字母排序越靠后,则等级越低。
S11b:根据所述节点等级信息以及节点链接信息,分别生成各数据节点分别对应的节点编码,其中所述节点编码由节点等级信息对应的第一数组和节点链接信息对应的第二数组组成。
本实施例的节点位置信息同时包括节点等级信息以及节点链接信息,信息全面方便定位,且节点等级信息以及节点链接信息分别由数字表示,简洁方便操作。比如数据节点B的节点等级信息对应的数字为2,数据节点B的节点链接信息为总根节点的子节点,数据节点B的下级节点为数据节点C,则数据节点B的节点链接信息表示为0A3C,0A表示数据节点B为总根节点A的子节点,3C表示数据节点B的下级节点为数据节点C,数据节点C相对于总根节点A的等级为3,所以数据节点B的节点编码为20A3C。
S11c:将各所述节点编码与各所述数据节点的节点位置信息关联存储。
本实施例通过将节点编码与各所述数据节点的节点位置信息关联存储,以便在构建目标数据结构图的时候,将节点编码与目标数据结构图进行关联。
进一步地,所述根据所述数据节点对应的节点编码,按照预设规则锁定所述目标数据结构图对应的局部区域结构图的步骤S3,包括:
S31:根据第一节点编码获取所述指定数据节点对应的节点位置信息,其中所述指定数据节点为所有数据节点中的任意一个,所述第一节点编码为所述指定数据节点对应的节点编码。
S32:根据所述指定数据节点的节点位置信息,确定与所述指定数据节点存在链接关系的第一节点群,其中所述第一节点群包括所述指定数据节点的根节点以及所述指定数据节点的子节点。
S33:锁定所述第一节点群对应的所述目标数据结构图中的第一局部区域结构图。
本实施例以关键字信息中包括一个数据节点的节点编码为例解释第一规则,第一规则为根据一个数据节点锁定所述第一位置区域对应的局部区域结构图时对应的锁定规则,以便根据用户输入的一个节点编码对应的指定数据节点为中心,锁定第一局部区域结构。比如第一局部区域结构包括指定数据节点的根节点以及所述指定数据节点的子节点。
进一步地,所述根据所述数据节点对应的节点编码,按照预设规则锁定所述目标数据结构图对应的局部区域结构图的步骤S3,包括:
S34:判断第一数据节点和第二数据节点,在所述目标数据结构图中是否存在链接路径,其中所述第一数据节点和所述第二数据节点为所有数据节点中的任意两个,所述链接路径包括直接相链接形成的直接路径和间接相链接形成的间接路径。
S35:若存在,则根据所述链接路径确定第二节点群,其中所述第二节点群包括所述链接路径上所有的数据节点。
S36:锁定所述第二节点群对应的所述目标数据结构图中的第二局部区域结构图。
本实施例以关键字信息中包括两个数据节点的节点编码为例,解释第二规则,第二规则为根据两个数据节点锁定所述第一位置区域对应的局部区域结构图时对应的锁定规则,以便根据用户输入的两个节点编码对应的链接路径为依据确定第二局部区域结构,比如第二局部区域结构包括链接路径上所有的数据节点。上述链路路径为数据节点之间的连接关系,根据目标数据结构图中存在连接关系的数据节点之间确定,若数据节点J到数据节点H之间存在连续的连接关系,则存在链接路径。举例地,目标数据结构图中存在总根节点,为数据节点A,数据节点A包括三个下级子节点,分别为数据节点B、数据节点H和数据节点L;目标数据结构图中存在数据节点A->数据节点B->数据节点C->数据节点D;数据节点A->数据节点H->数据节点I->数据节点J->数据节点K;数据节点A->数据节点L->数据节点M->数据节点N;则数据节点H到数据节点N之间不存在链接链路。本申请另一实施例中,具有相同根节点的所有子节点之间均存在链接链路,比如,上述数据节点H和数据节点N具有相同的根节点,数据节点A,则数据节点H到数据节点N之间存在链接链路。
本申请另一实施例中当两个节点编码分别对应的数据节点在所述目标数据结构图中不存在链接路径时,则默认为同时调用上述两个节点编码分别对应的第一节点群的第一局部区域结构图。
进一步地,所述按照预设展示方式展示所述局部区域结构图的步骤S4,包括:
S41:隐藏所述目标数据结构图中除所述局部区域结构图之外的数据节点以及链接线段。
本实施例优选通过虚化显示痕迹的方式,隐藏所述目标数据结构图中除所述局部区域结构图之外的数据节点以及链接线段,以便使局部区域结构图在目标数据结构图的原展示位置处突出显示。
进一步地,所述按照预设展示方式展示所述局部区域结构图的步骤S4之后,包括:
S5:确定用户在所述局部区域结构图中选中的第三数据节点,其中所述第三数据节点为所述局部区域结构图内的任意一个数据节点。
S6:监测用户通过光标拖拽所述第一数据节点的移动轨迹。
S7:根据所述移动轨迹平移所述局部区域结构图中,除所述第一数据节点之外的数据节点以及数据节点之间的链接线段。
本实施例还支持动态展示,通过获取局部区域结构图中各数据节点以及各数据节点之间的链接线段的相对位置关系,通过平移或等比例缩放的方式,保持局部区域结构图整体动态变化,满足用户移动局部区域结构图的需要。比如将位于显示屏边缘的局部区域结构图,整体移动至显示屏的中心区域,以便用户进行查看。
本实施例通过在构建目标数据结构图时增加数据节点的节点编号,并与数据节点的节点位置信息关联存储,以作为数据节点的关键字信息,根据用户输入的关键字信息,针对性的展示该关键字信息对应的数据节点的局部数据结构图,通过在构建目标数据结构图时增加数据节点的节点编号,实现数据结构图的整体或局部显示,更方便用户查看。上述关键字信息包括一个数据节点的节点编号,或两个数据节点的节点编号,根据一个数据节点的节点编号锁定目标数据结构图对应的局部数据结构图,包括该数据节点的根节点和子节点,以及节点间的关联关系;根据两个数据节点的节点编号锁定目标数据结构图中两个数据节点之间的所有数据节点以及关联关系。
参照图2,本申请一实施例的数据结构图的展示装置,包括:
第一识别模块1,用于识别用户通过光标在目标数据结构图上确定的第一位置区域,其中所述目标数据结构图由数据节点构成,所述第一位置区域为多个所述数据节点的分布位置范围。
本实施例通过捕捉用户控制光标移动的状态,并通过光标的定位作用进行数据节点定位,比如用户将光标移动到数据结构图上的数据节点M时,数据节点M对应的关键字信息会闪现于数据结构图上的数据节点M对应位置处;当光标离开数据节点M后,数据节点M对应的关键字信息会终止闪现。本实施例通过光标的持续暂停形成选择定位信号,判断光标暂停于数据节点M的持续时长是否超过预设时长,若超过,则判定为选定了数据节点M。用户通过选择定位目标数据结构图上的至少两个数据节点,形成第一位置区域。
第一获取模块2,用于获取所述第一位置区域对应的关键字信息,其中所述关键字信息包括数据节点对应的节点编码。
本实施例通过预设的编码规则对目标数据结构图中的各数据节点进行编码,形成对应的节点编码,以实现对各数据节点的区分。本实施例各数据节点对应的节点编码可体现各数据节点与其他数据节点的关联关系,且可根据节点编码在目标数据结构图中搜索,快速定位各数据节点,便于在目标数据结构图中查找数据节点的对应信息,同时便于管理各数据节点。
锁定模块3,用于根据所述数据节点对应的节点编码,按照预设规则锁定所述目标数据结构图对应的局部区域结构图。
本实施例根据关键字信息中包含的节点编码,实现快速锁定用户需要的局部区域结构图,且通过输入节点编码方便用户筛选局部区域结构图。上述预设规则包括根据一个数据节点锁定所述第一位置区域对应的局部区域结构图时对应的第一规则,还包括根据两个数据节点锁定所述第一位置区域对应的局部区域结构图时对应的第二规则,通过识别用户输入的节点编码的数量针对性地调用对应的预设规则。本实施例的关键字信息中包括一个数据节点的节点编码或两个数据节点分别对应的节点编码。
展示模块4,用于按照预设展示方式展示所述局部区域结构图。
本实施例的预设展示方式包括截取所述局部区域结构图到指定展示区域进行展示,或在目标数据结构图的原展示位置处通过隐藏局部区域结构图之外的部分,使局部区域结构图突出显示。
进一步地,所述数据结构图的展示装置,包括:
第二获取模块,用于获取所述目标数据结构图的配置信息,其中所述配置信息包括所述数据节点对应的节点位置信息以及与所述节点位置信息一一对应的节点编码。
本实施例的配置信息包括数据节点的节点位置信息,上述节点位置信息通过数据节点在目标数据结构图中,相对于目标数据结构图的总根节点的层级数表示,比如总根节点为数据节点A,数据节点A的子节点为数据节点B,数据节点B的子节点为数据节点C,则数据节点C相对于数据节点A的层级数为2,数据节点C的节点位置信息表示为A2。本实施例的节点编码不仅包括数据节点位置还包括了与其他数据节点的链接关系,通过建立与节点位置信息对应的节点编码,实现快速定位数据节点,且节点编码为对应的数字组合方便用户的调用操作。
构建模块,用于根据所述配置信息构建所述目标数据结构图,其中所述目标数据结构图携带与所述节点位置信息一一对应的节点编码。
本实施例在构建目标数据结构图时,将节点位置信息一一对应的节点编码关联到目标数据结构图中,以便通过节点编码快速定位目标数据结构图中的指定位置区域。
进一步地,所述数据结构图的展示装置,包括:
第二识别模块,用于识别各所述数据节点的节点位置信息,其中所述节点位置信息包括数据节点在所述目标数据结构图的节点等级信息以及节点链接信息。
本实施例的节点等级信息为数据节点在目标数据结构图中相对于总根节点的层级数。层级数可通过阿拉伯数字表示,0表示最高层级,数字越大表明节点的等级越低;层级数也可通过字母a至z表示,a表示总根节点为最高层级,按照26字母排序,字母排序越靠后,则等级越低。
生成模块,用于根据所述节点等级信息以及节点链接信息,分别生成各数据节点分别对应的节点编码,其中所述节点编码由节点等级信息对应的第一数组和节点链接信息对应的第二数组组成。
本实施例的节点位置信息同时包括节点等级信息以及节点链接信息,信息全面方便定位,且节点等级信息以及节点链接信息分别由数字表示,简洁方便操作。比如数据节点B的节点等级信息对应的数字为2,数据节点B的节点链接信息为总根节点的子节点,数据节点B的下级节点为数据节点C,则数据节点B的节点链接信息表示为0A3C,0A表示数据节点B为总根节点A的子节点,3C表示数据节点B的下级节点为数据节点C,数据节点C相对于总根节点A的等级为3,所以数据节点B的节点编码为20A3C。
存储模块,用于将各所述节点编码与各所述数据节点的节点位置信息关联存储。
本实施例通过将节点编码与各所述数据节点的节点位置信息关联存储,以便在构建目标数据结构图的时候,将节点编码与目标数据结构图进行关联。
进一步地,所述锁定模块3,包括:
获取单元,用于根据第一节点编码获取所述指定数据节点对应的节点位置信息,其中所述指定数据节点为所有数据节点中的任意一个,所述第一节点编码为所述指定数据节点对应的节点编码。
第一确定单元,用于根据所述指定数据节点的节点位置信息,确定与所述指定数据节点存在链接关系的第一节点群,其中所述第一节点群包括所述指定数据节点的根节点以及所述指定数据节点的子节点。
第一锁定单元,用于锁定所述第一节点群对应的所述目标数据结构图中的第一局部区域结构图。
本实施例以关键字信息中包括一个数据节点的节点编码为例解释第一规则,第一规则为根据一个数据节点锁定所述第一位置区域对应的局部区域结构图时对应的锁定规则,以便根据用户输入的一个节点编码对应的指定数据节点为中心,锁定第一局部区域结构。比如第一局部区域结构包括指定数据节点的根节点以及所述指定数据节点的子节点。
进一步地,所述锁定模块3,包括:
判断单元,用于判断第一数据节点和第二数据节点,在所述目标数据结构图中是否存在链接路径,其中所述第一数据节点和所述第二数据节点为所有数据节点中的任意两个,所述链接路径包括直接相链接形成的直接路径和间接相链接形成的间接路径。
第二确定单元,用于若第一数据节点和第二数据节点在所述目标数据结构图中存在链接路径,则根据所述链接路径确定第二节点群,其中所述第二节点群包括所述链接路径上所有的数据节点。
第二锁定单元,用于锁定所述第二节点群对应的所述目标数据结构图中的第二局部区域结构图。
本实施例以关键字信息中包括两个数据节点的节点编码为例,解释第二规则,第二规则为根据两个数据节点锁定所述第一位置区域对应的局部区域结构图时对应的锁定规则,以便根据用户输入的两个节点编码对应的链接路径为依据确定第二局部区域结构,比如第二局部区域结构包括链接路径上所有的数据节点。上述链路路径为数据节点之间的连接关系,根据目标数据结构图中存在连接关系的数据节点之间确定,若数据节点J到数据节点H之间存在连续的连接关系,则存在链接路径。举例地,目标数据结构图中存在总根节点,为数据节点A,数据节点A包括三个下级子节点,分别为数据节点B、数据节点H和数据节点L;目标数据结构图中存在数据节点A->数据节点B->数据节点C->数据节点D;数据节点A->数据节点H->数据节点I->数据节点J->数据节点K;数据节点A->数据节点L->数据节点M->数据节点N;则数据节点H到数据节点N之间不存在链接链路。本申请另一实施例中,具有相同根节点的所有子节点之间均存在链接链路,比如,上述数据节点H和数据节点N具有相同的根节点,数据节点A,则数据节点H到数据节点N之间存在链接链路。
本申请另一实施例中当两个节点编码分别对应的数据节点在所述目标数据结构图中不存在链接路径时,则默认为同时调用上述两个节点编码分别对应的第一节点群的第一局部区域结构图。
进一步地,所述展示模块4,包括:
隐藏单元,用于隐藏所述目标数据结构图中除所述局部区域结构图之外的数据节点以及链接线段。
本实施例优选通过虚化显示痕迹的方式,隐藏所述目标数据结构图中除所述局部区域结构图之外的数据节点以及链接线段,以便使局部区域结构图在目标数据结构图的原展示位置处突出显示。
进一步地,所述数据结构图的展示装置,包括:
确定模块,用于确定用户在所述局部区域结构图中选中的第三数据节点,其中所述第三数据节点为所述局部区域结构图内的任意一个数据节点。
监测模块,用于监测用户通过光标拖拽所述第一数据节点的移动轨迹。
平移模块,用于根据所述移动轨迹平移所述局部区域结构图中,除所述第一数据节点之外的数据节点以及数据节点之间的链接线段。
本实施例还支持动态展示,通过获取局部区域结构图中各数据节点以及各数据节点之间的链接线段的相对位置关系,通过平移或等比例缩放的方式,保持局部区域结构图整体动态变化,满足用户移动局部区域结构图的需要。比如将位于显示屏边缘的局部区域结构图,整体移动至显示屏的中心区域,以便用户进行查看。
参照图3,本申请实施例中还提供一种计算机设备,该计算机设备可以是服务器,其内部结构可以如图3所示。该计算机设备包括通过系统总线连接的处理器、存储器、网络接口和数据库。其中,该计算机设计的处理器用于提供计算和控制能力。该计算机设备的存储器包括可读存储介质、内存储器。该可读存储介质存储有操作系统、计算机可读指令和数据库,上述可读存储介质包括非易失性可读存储介质和易失性可读存储介质。该内存器为非易失性存储介质中的操作系统和计算机可读指令的运行提供环境。该计算机设备的数据库用于存储数据结构图等数据。该计算机设备的网络接口用于与外部的终端通过网络连接通信。该计算机可读指令在执行时,执行如上述各方法的实施例的流程。本领域技术人员可以理解,图3中示出的结构,仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请方案所应用于其上的计算机设备的限定。
本申请一实施例还提供一种计算机可读存储介质,其上存储有计算机可读指令,该计算机可读指令在执行时,执行如上述各方法的实施例的流程。上述可读存储介质包括非易失性可读存储介质和易失性可读存储介质。以上所述仅为本申请的优选实施例,并非因此限制本申请的专利范围,凡是利用本申请说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本申请的专利保护范围内。

Claims (20)

  1. 一种数据结构图的展示方法,其特征在于,包括:
    识别用户通过光标在目标数据结构图上确定的第一位置区域,其中所述目标数据结构图由数据节点构成,所述第一位置区域为多个所述数据节点的分布位置范围;
    获取所述第一位置区域对应的关键字信息,其中所述关键字信息包括数据节点对应的节点编码;
    根据所述数据节点对应的节点编码,按照预设规则锁定所述目标数据结构图对应的局部区域结构图;
    按照预设展示方式展示所述局部区域结构图。
  2. 根据权利要求1所述的数据结构图的展示方法,其特征在于,所述识别用户通过光标在目标数据结构图上确定的第一位置区域的步骤之前,包括:
    获取所述目标数据结构图的配置信息,其中所述配置信息包括所述数据节点对应的节点位置信息以及与所述节点位置信息一一对应的节点编码;
    根据所述配置信息构建所述目标数据结构图,其中所述目标数据结构图携带与所述节点位置信息一一对应的节点编码。
  3. 根据权利要求2所述的数据结构图的展示方法,其特征在于,所述获取所述目标数据结构图的配置信息的步骤,包括:
    识别各所述数据节点的节点位置信息,其中所述节点位置信息包括数据节点在所述目标数据结构图的节点等级信息以及节点链接信息;
    根据所述节点等级信息以及节点链接信息,分别生成各所述数据节点分别对应的节点编码,其中所述节点编码由所述节点等级信息对应的第一数组和所述节点链接信息对应的第二数组组成;
    将各所述节点编码与各所述数据节点的节点位置信息关联存储。
  4. 根据权利要求1所述的数据结构图的展示方法,其特征在于,所述根据所述数据节点对应的节点编码,按照预设规则锁定所述目标数据结构图对应的局部区域结构图的步骤,包括:
    根据第一节点编码获取指定数据节点对应的节点位置信息,其中所述指定数据节点为所有数据节点中的任意一个,所述第一节点编码为所述指定数据节点对应的节点编码;
    根据所述指定数据节点的节点位置信息,确定与所述指定数据节点存在链接关系的第一节点群,其中所述第一节点群包括所述指定数据节点的根节点以及所述指定数据节点的子节点;
    锁定所述第一节点群对应的所述目标数据结构图中的第一局部区域结构图。
  5. 根据权利要求1所述的数据结构图的展示方法,其特征在于,所述根据所述数据节点对应的节点编码,按照预设规则锁定所述目标数据结构图对应的局部区域结构图的步骤,包括:
    判断第一数据节点和第二数据节点,在所述目标数据结构图中是否存在链接路径,其中所述第一数据节点和所述第二数据节点为所有数据节点中的任意两个,所述链接路径包括直接相链接形成的直接路径和间接相链接形成的间接路径;
    若存在,则根据所述链接路径确定第二节点群,其中所述第二节点群包括所述链接路径上所有的数据节点;
    锁定所述第二节点群对应的所述目标数据结构图中的第二局部区域结构图。
  6. 根据权利要求1所述的数据结构图的展示方法,其特征在于,所述按照预设展示方式展示所述局部区域结构图的步骤,包括:
    隐藏所述目标数据结构图中除所述局部区域结构图之外的数据节点以及链接线段。
  7. 根据权利要求1所述的数据结构图的展示方法,其特征在于,所述按照预设展示方式展示所述局部区域结构图的步骤之后,包括:
    确定用户在所述局部区域结构图中选中的第三数据节点,其中所述第三数据节点为所述局部区域结构图内的任意一个数据节点;
    监测用户通过光标拖拽所述第一数据节点的移动轨迹;
    根据所述移动轨迹平移所述局部区域结构图中,除所述第一数据节点之外的数据节点以及数据节点之间的链接线段。
  8. 一种数据结构图的展示装置,其特征在于,包括:
    第一识别模块,用于识别用户通过光标在目标数据结构图上确定的第一位置区域,其中所述目标数据结构图由数据节点构成,所述第一位置区域为多个所述数据节点的分布位置范围;
    第一获取模块,用于获取所述第一位置区域对应的关键字信息,其中所述关键字信息包括数据节点对应的节点编码;
    锁定模块,用于根据所述数据节点对应的节点编码,按照预设规则锁定所述目标数据结构图对应的局部区域结构图;
    展示模块,用于按照预设展示方式展示所述局部区域结构图。
  9. 根据权利要求8所述的迁徙数据的装置,其特征在于,包括:
    第二获取模块,用于获取所述目标数据结构图的配置信息,其中所述配置信息包括所述数据节点对应的节点位置信息以及与所述节点位置信息一一对应的节点编码;
    构建模块,用于根据所述配置信息构建所述目标数据结构图,其中所述目标数据结构图携带与所述节点位置信息一一对应的节点编码。
  10. 根据权利要求9所述的迁徙数据的装置,其特征在于,包括:
    第二识别模块,用于识别各所述数据节点的节点位置信息,其中所述节点位置信息包括数据节点在所述目标数据结构图的节点等级信息以及节点链接信息;
    生成模块,用于根据所述节点等级信息以及节点链接信息,分别生成各所述数据节点分别对应的节点编码,其中所述节点编码由所述节点等级信息对应的第一数组和所述节点链接信息对应的第二数组组成;
    存储模块,用于将各所述节点编码与各所述数据节点的节点位置信息关联存储。
  11. 根据权利要求8所述的迁徙数据的装置,其特征在于,所述锁定模块,包括:
    获取单元,用于根据第一节点编码获取指定数据节点对应的节点位置信息,其中所述指定数据节点为所有数据节点中的任意一个,所述第一节点编码为所述指定数据节点对应的节点编码;
    第一确定单元,用于根据所述指定数据节点的节点位置信息,确定与所述指定数据节点存在链接关系的第一节点群,其中所述第一节点群包括所述指定数据节点的根节点以及所述指定数据节点的子节点;
    第一锁定单元,用于锁定所述第一节点群对应的所述目标数据结构图中的第一局部区域结构图。
  12. 根据权利要求8所述的迁徙数据的装置,其特征在于,所述锁定模块,包括:
    判断单元,用于判断第一数据节点和第二数据节点,在所述目标数据结构图中是否存在链接路径,其中所述第一数据节点和所述第二数据节点为所有数据节点中的任意两个,所述链接路径包括直接相链接形成的直接路径和间接相链接形成的间接路径;
    第二确定单元,用于若第一数据节点和第二数据节点在所述目标数据结构图中存在链接路径,则根据所述链接路径确定第二节点群,其中所述第二节点群包括所述链接路径上所有的数据节点;
    第二锁定单元,用于锁定所述第二节点群对应的所述目标数据结构图中的第二局部区域结构图。
  13. 根据权利要求8所述的迁徙数据的装置,其特征在于,所述展示模块,包括:
    隐藏单元,用于隐藏所述目标数据结构图中除所述局部区域结构图之外的数据节点以及链接线段。
  14. 根据权利要求8所述的迁徙数据的装置,其特征在于,包括:
    确定模块,用于确定用户在所述局部区域结构图中选中的第三数据节点,其中所述第三数据节点为所述局部区域结构图内的任意一个数据节点;
    监测模块,用于监测用户通过光标拖拽所述第一数据节点的移动轨迹;
    平移模块,用于根据所述移动轨迹平移所述局部区域结构图中,除所述第一数据节点之外的数据节点以及数据节点之间的链接线段。
  15. 一种计算机设备,包括存储器和处理器,所述存储器存储有计算机程序,其特征在于,所述处理器执行所述计算机程序时实现数据结构图的展示方法,数据结构图的展示方法,包括:
    识别用户通过光标在目标数据结构图上确定的第一位置区域,其中所述目标数据结构图由数据节点构成,所述第一位置区域为多个所述数据节点的分布位置范围;
    获取所述第一位置区域对应的关键字信息,其中所述关键字信息包括数据节点对应的节点编码;
    根据所述数据节点对应的节点编码,按照预设规则锁定所述目标数据结构图对应的局部区域结构图;
    按照预设展示方式展示所述局部区域结构图。
  16. 根据权利要求15所述的计算机设备,其特征在于,所述识别用户通过光标在目标数据结构图上确定的第一位置区域的步骤之前,包括:
    获取所述目标数据结构图的配置信息,其中所述配置信息包括所述数据节点对应的节点位置信息以及与所述节点位置信息一一对应的节点编码;
    根据所述配置信息构建所述目标数据结构图,其中所述目标数据结构图携带与所述节点位置信息一一对应的节点编码。
  17. 根据权利要求16所述的计算机设备,其特征在于,所述获取所述目标数据结构图的配置信息的步骤,包括:
    识别各所述数据节点的节点位置信息,其中所述节点位置信息包括数据节点在所述目标数据结构图的节点等级信息以及节点链接信息;
    根据所述节点等级信息以及节点链接信息,分别生成各所述数据节点分别对应的节点编码,其中所述节点编码由所述节点等级信息对应的第一数组和所述节点链接信息对应的第二数组组成;
    将各所述节点编码与各所述数据节点的节点位置信息关联存储。
  18. 一种计算机可读存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现数据结构图的展示方法,数据结构图的展示方法包括:
    识别用户通过光标在目标数据结构图上确定的第一位置区域,其中所述目标数据结构图由数据节点构成,所述第一位置区域为多个所述数据节点的分布位置范围;
    获取所述第一位置区域对应的关键字信息,其中所述关键字信息包括数据节点对应的节点编码;
    根据所述数据节点对应的节点编码,按照预设规则锁定所述目标数据结构图对应的局部区域结构图;
    按照预设展示方式展示所述局部区域结构图。
  19. 根据权利要求18所述的计算机可读存储介质,其特征在于,所述识别用户通过光标在目标数据结构图上确定的第一位置区域的步骤之前,包括:
    获取所述目标数据结构图的配置信息,其中所述配置信息包括所述数据节点对应的节点位置信息以及与所述节点位置信息一一对应的节点编码;
    根据所述配置信息构建所述目标数据结构图,其中所述目标数据结构图携带与所述节点位置信息一一对应的节点编码。
  20. 根据权利要求19所述的计算机可读存储介质,其特征在于,所述获取所述目标数据结构图的配置信息的步骤,包括:
    识别各所述数据节点的节点位置信息,其中所述节点位置信息包括数据节点在所述目标数据结构图的节点等级信息以及节点链接信息;
    根据所述节点等级信息以及节点链接信息,分别生成各所述数据节点分别对应的节点编码,其中所述节点编码由所述节点等级信息对应的第一数组和所述节点链接信息对应的第二数组组成;
    将各所述节点编码与各所述数据节点的节点位置信息关联存储。
PCT/CN2019/116709 2019-07-19 2019-11-08 数据结构图的展示方法、装置、计算机设备及存储介质 WO2021012486A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910655481.2A CN110516205B (zh) 2019-07-19 2019-07-19 数据结构图的展示方法、装置、计算机设备及存储介质
CN201910655481.2 2019-07-19

Publications (1)

Publication Number Publication Date
WO2021012486A1 true WO2021012486A1 (zh) 2021-01-28

Family

ID=68622861

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/116709 WO2021012486A1 (zh) 2019-07-19 2019-11-08 数据结构图的展示方法、装置、计算机设备及存储介质

Country Status (2)

Country Link
CN (1) CN110516205B (zh)
WO (1) WO2021012486A1 (zh)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040122789A1 (en) * 2002-12-18 2004-06-24 Microsoft Corporation User interface element representation with simplified view
CN105207793A (zh) * 2014-05-30 2015-12-30 亿阳信通股份有限公司 一种树状拓扑结构中节点信息的获取方法和系统
CN106919688A (zh) * 2017-03-03 2017-07-04 济南浪潮高新科技投资发展有限公司 一种组织关系展示方法及装置
CN106980745A (zh) * 2016-06-30 2017-07-25 平安科技(深圳)有限公司 数据展示方法和装置
CN107562702A (zh) * 2016-06-30 2018-01-09 阿里巴巴集团控股有限公司 数据结构图构建方法、装置及数据结构图的展示方法
CN109656921A (zh) * 2018-11-26 2019-04-19 平安科技(深圳)有限公司 组织架构数据处理方法、装置、计算机设备及存储介质

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6509898B2 (en) * 1998-04-17 2003-01-21 Xerox Corporation Usage based methods of traversing and displaying generalized graph structures
CN106484393B (zh) * 2016-09-13 2019-12-27 厦门兆慧网络科技有限公司 一种可视化视图设计方法
CN109408685B (zh) * 2018-09-29 2020-03-06 北京字节跳动网络技术有限公司 思维导图展示方法和装置
CN109739937B (zh) * 2018-12-27 2021-11-05 北京三快在线科技有限公司 一种知识图谱中的路径展示方法、装置、设备及存储介质

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040122789A1 (en) * 2002-12-18 2004-06-24 Microsoft Corporation User interface element representation with simplified view
CN105207793A (zh) * 2014-05-30 2015-12-30 亿阳信通股份有限公司 一种树状拓扑结构中节点信息的获取方法和系统
CN106980745A (zh) * 2016-06-30 2017-07-25 平安科技(深圳)有限公司 数据展示方法和装置
CN107562702A (zh) * 2016-06-30 2018-01-09 阿里巴巴集团控股有限公司 数据结构图构建方法、装置及数据结构图的展示方法
CN106919688A (zh) * 2017-03-03 2017-07-04 济南浪潮高新科技投资发展有限公司 一种组织关系展示方法及装置
CN109656921A (zh) * 2018-11-26 2019-04-19 平安科技(深圳)有限公司 组织架构数据处理方法、装置、计算机设备及存储介质

Also Published As

Publication number Publication date
CN110516205B (zh) 2023-04-07
CN110516205A (zh) 2019-11-29

Similar Documents

Publication Publication Date Title
US20160026709A1 (en) Word Cloud Candidate Management System
US8106903B2 (en) System and method for visually representing a project using graphic elements
US20160253048A1 (en) Systems and methods for graphically indicating and allocating conference resources
US10565560B2 (en) Alternative people charting for organizational charts
CN110661665B (zh) 基于物联网云平台的告警方法、计算机存储介质及设备
JP2018165924A (ja) 情報処理装置、情報処理方法、及びプログラム
JP2015207320A (ja) サーバ装置、アノテーション方法及びコンピュータプログラム
KR101646298B1 (ko) 발달 모니터링 시스템
US9787662B1 (en) Dynamic presentation of user account information for a social network
US20150379112A1 (en) Creating an on-line job function ontology
CN109614371A (zh) 存储信息的方法、装置、计算机设备及存储介质
CN113129155B (zh) 多类型人员信息处理方法、设备及存储介质
WO2021012486A1 (zh) 数据结构图的展示方法、装置、计算机设备及存储介质
US10324606B1 (en) Dynamic presentation of user account information for a social network
JP2020123371A (ja) 質問応答システム、質問受付回答システム、第1次回答システム、及びそれらを用いた質問応答方法
JP2018092344A (ja) データ処理装置、データ処理方法及びデータ処理プログラム
US20090089702A1 (en) Interactive analysis of network adjustment results
JP6839360B2 (ja) 表示プログラム、表示方法および表示装置
JP2009110241A (ja) 電子ファイル管理装置
JP5884925B2 (ja) 管理支援装置、管理支援方法及び管理支援プログラム
JP2007108886A (ja) 出願情報管理システム、出願情報管理方法および出願情報管理プログラム
CN111428182A (zh) 评估指标处理方法、装置、计算机设备和存储介质
JP2009026160A (ja) 階層データ表示プログラム,階層データ表示方法,階層データ表示装置
US20190065029A1 (en) System and Method of Graphical Metadata Assignation and Filtering by Deriving Hierarchical Icon-Based Signifiers from a Multi-Channel Database Assemblage
KR100721879B1 (ko) 키맨 트리 제공 장치, 방법 및 그 방법이 기록된 컴퓨터가판독가능한 기록매체

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19938718

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19938718

Country of ref document: EP

Kind code of ref document: A1