Display method and device of node difference view, storage medium and electronic equipment

By determining node metadata and difference categories, drawing and displaying node difference views, the problem of being unable to directly display node graph difference views in the existing technology is solved, and the viewing efficiency of difference comparison results is improved.

CN118519628APending Publication Date: 2024-08-20NETEASE (HANGZHOU) NETWORK CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410660122.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-24
Publication Date
2024-08-20

AI Technical Summary

Technical Problem

The existing technology cannot directly display the difference view of the node graph, resulting in low efficiency and poor accuracy in viewing the difference comparison results.

Method used

By determining the node metadata of the current data version of the target module and the data version to be compared, the difference category is determined, and the drawing method of the node difference view is determined based on the difference category, and finally the node difference view is drawn and displayed.

Benefits of technology

It realizes the intuitive display of the node difference view, improves the efficiency of viewing difference comparison results, and solves the problem of being unable to display the node graph difference view.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118519628A_ABST
    Figure CN118519628A_ABST
Patent Text Reader

Abstract

The invention relates to a node difference view display method and device, a storage medium and electronic equipment, and relates to the technical field of game data processing.The method comprises the steps that a current data version and a to-be-compared data version of a target module are determined, and node metadata corresponding to the current data version and the to-be-compared data version are determined; determining a difference category between the current data version and a to-be-compared data version based on the node metadata, and determining a drawing mode of a node difference view based on the difference category; and drawing the node difference view based on the drawing mode, and displaying the node difference view. The problem that the difference view of the node graph cannot be directly displayed is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Background Art

[0002] In the daily development and maintenance of program products, the comparison of different versions of a node graph is achieved by using the comparison tool provided by the version management software to compare the text files of the node graph. Specifically, by performing a difference comparison on the text files, different versions of the same text file can be compared, and finally a textual difference content can be output; then, based on the textual difference content, new content, deleted content or changed content can be found.

[0003] However, the above method has the following defects: it is not possible to directly display the difference view of the node graph.

[0004] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present disclosure, and therefore may include information that does not constitute the prior art known to ordinary technicians in the field. Summary of the invention

[0005] The purpose of the present disclosure is to provide a method for displaying a node difference view, a display device for a node difference view, a computer-readable storage medium, and an electronic device, thereby at least to a certain extent overcoming the problem of being unable to directly display a difference view of a node graph due to limitations and defects of related technologies.

[0006] According to one aspect of the present disclosure, a method for displaying a node difference view is provided, comprising:

[0007] Determine the current data version and the data version to be compared of the target module, and determine the node metadata corresponding to the current data version and the data version to be compared;

[0008] Determine, based on the node metadata, a difference category between the current data version and the data version to be compared, and determine, based on the difference category, a drawing method of the node difference view;

[0009] The node difference view is drawn based on the drawing method, and the node difference view is displayed.

[0010] According to one aspect of the present disclosure, a device for displaying a node difference view is provided, comprising:

[0011] A node metadata determination module, used to determine the current data version and the data version to be compared of the target module, and determine the node metadata corresponding to the current data version and the data version to be compared;

[0012] A drawing mode determination module, configured to determine, based on the node metadata, a difference category between the current data version and the data version to be compared, and determine a drawing mode of a node difference view based on the difference category;

[0013] The node difference view display module is used to draw the node difference view based on the drawing method and display the node difference view.

[0014] According to one aspect of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the method for displaying a node difference view described in any one of the above is implemented.

[0015] According to one aspect of the present disclosure, there is provided an electronic device, including:

[0016] Processor; and

[0017] A memory, configured to store executable instructions of the processor;

[0018] The processor is configured to execute any one of the above-mentioned methods for displaying a node difference view by executing the executable instructions.

[0019] A method for displaying a node difference view provided by an embodiment of the present disclosure, on the one hand, determines the current data version and the data version to be compared of a target module, and determines the node metadata corresponding to the current data version and the data version to be compared; then, based on the node metadata, determines the difference category between the current data version and the data version to be compared, and determines the drawing method of the node difference view based on the difference category; finally, draws the node difference view based on the drawing method, and displays the node difference view, thereby realizing the display of the node difference view and solving the problem that the difference view of the node graph cannot be displayed in the prior art; on the other hand, since the node difference view can be displayed, the difference between the current data version and the data version to be compared can be intuitively displayed based on the node difference view, thereby improving the viewing efficiency of the difference comparison results.

[0020] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] The accompanying drawings herein are incorporated into the specification and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the specification are used to explain the principles of the present disclosure. Obviously, the accompanying drawings described below are only some embodiments of the present disclosure, and for ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without creative work.

[0022] Figure 1 A flowchart of a method for displaying a node difference view according to an exemplary embodiment of the present disclosure is schematically shown.

[0023] Figure 2 A node graph according to an exemplary embodiment of the present disclosure is schematically shown.

[0024] Figure 3 A node example display diagram according to an example embodiment of the present disclosure is schematically shown.

[0025] Figure 4 A diagram schematically illustrates a reference relationship between nodes according to an exemplary embodiment of the present disclosure.

[0026] Figure 5 A canvas display diagram according to an exemplary embodiment of the present disclosure is schematically shown.

[0027] Figure 6 A scene example diagram of a node difference view according to an example embodiment of the present disclosure is schematically shown.

[0028] Figure 7 A block diagram schematically illustrates a device for displaying a node difference view according to an exemplary embodiment of the present disclosure.

[0029] Figure 8 An electronic device for implementing a method for displaying a node difference view according to an exemplary embodiment of the present disclosure is schematically shown. DETAILED DESCRIPTION

[0030] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as being limited to the examples set forth herein; on the contrary, these embodiments are provided so that the present disclosure will be more comprehensive and complete, and the concepts of the example embodiments are fully conveyed to those skilled in the art. The described features, structures, or characteristics may be combined in one or more embodiments in any suitable manner. In the following description, many specific details are provided to provide a full understanding of the embodiments of the present disclosure. However, those skilled in the art will appreciate that the technical solutions of the present disclosure may be practiced while omitting one or more of the specific details, or other methods, components, devices, steps, etc. may be adopted. In other cases, known technical solutions are not shown or described in detail to avoid obscuring various aspects of the present disclosure.

[0031] In addition, the accompanying drawings are only schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the figures represent the same or similar parts, and their repeated description will be omitted. Some of the block diagrams shown in the accompanying drawings are functional entities and do not necessarily correspond to physically or logically independent entities. These functional entities can be implemented in software form, or implemented in one or more hardware modules or integrated circuits, or implemented in different networks and / or processor devices and / or microcontroller devices.

[0032] Taking game products as an example, in the gameplay framework of many games, nodes are used to organize game logic. Based on this approach, the flexibility and reusability of game logic during the development process can be improved. Furthermore, since game development is a continuous process, it is also inevitable that there are scenarios where multiple parties collaborate. For example, the same game function module, after multiple iterations, is completely different from the initial version for a certain version handled by a collaborator. In this scenario, some Diff tools (such as SVN Diff or Git Diff) are generally used to compare text differences and then analyze related changes. However, this method is reasonable and sufficient for comparing configuration changes for general codes. However, for node graphs with graph structures, it will seem powerless and the changes in the graph cannot be intuitively obtained. The changes in the graph structure need to be reconstructed from the text diff, which is a heavy mental load.

[0033] Furthermore, in some scenarios, the data of some node graphs are scattered in different files, that is, the same node graph may correspond to multiple files; at the same time, other node graphs may be stored in multiple files; that is, the multiple files corresponding to multiple node graphs may have complex cross-relationships, not the ideal simple one-to-one correspondence. At this time, if you try to use text Diff to analyze the change information, it will greatly reduce the comparison efficiency and the accuracy of the comparison results will also be relatively low.

[0034] Based on this, this exemplary embodiment first provides a method for displaying a node difference view, which can be run on a terminal device, a server, a server cluster or a cloud server, etc. Of course, those skilled in the art can also run the method disclosed in this disclosure on other platforms as required, and this exemplary embodiment does not specifically limit this. Figure 1 As shown, the method for displaying the node difference view may include the following steps:

[0035] Step S110. Determine the current data version and the data version to be compared of the target module, and determine the node metadata corresponding to the current data version and the data version to be compared;

[0036] Step S120. Based on the node metadata, determine the difference category between the current data version and the data version to be compared, and determine the drawing method of the node difference view based on the difference category;

[0037] Step S130: Draw the node difference view based on the drawing method, and display the node difference view.

[0038] The above-mentioned method for displaying the node difference view, on the one hand, determines the current data version and the data version to be compared of the target module, and determines the node metadata corresponding to the current data version and the data version to be compared; then, based on the node metadata, determines the difference category between the current data version and the data version to be compared, and determines the drawing method of the node difference view based on the difference category; finally, draws the node difference view based on the drawing method, and displays the node difference view, thereby realizing the display of the node difference view and solving the problem that the difference view of the node graph cannot be displayed in the prior art; on the other hand, since the node difference view can be displayed, the difference between the current data version and the data version to be compared can be intuitively displayed based on the node difference view, thereby improving the viewing efficiency of the difference comparison results.

[0039] Hereinafter, the method for displaying a node difference view according to an exemplary embodiment of the present disclosure will be explained and illustrated in detail with reference to the accompanying drawings.

[0040] First, the terms involved in the exemplary embodiments of the present disclosure are explained.

[0041] Node graph: A number of nodes and a number of reference relationships between these nodes together form an entity with a graph structure, which can be called a node graph.

[0042] Diff: The act of comparing the differences between two files. The two files may be two different files or different versions of the same file. Some version management software (such as SVN and Git) have Diff tools.

[0043] Node: A node is a unit that has a globally unique identifier, a specified function, and other data.

[0044] Link: The reference relationship between nodes.

[0045] Next, the node graph involved in the exemplary embodiment of the present disclosure is explained and illustrated. Specifically, the node graph involved here can be referred to Figure 2 As shown; at the same time, Figure 2The node graph shown may include multiple nodes, such as player Player, strength Strength, firepower Fire and monster Monster; the node graph may also include reference relationships between nodes, such as the reference relationship between player Player and firepower Fire is Magic, the reference relationship between firepower Fire and strength is Property, the reference relationship between firepower Fire and monster Monster is Attack, and so on.

[0046] Furthermore, the node recorded here may be referred to as NodeProperty, and the specific presentation form of the node may be as shown in Table 1 below:

[0047] Table 1

[0048] NodeProperty GUID Type Name ...

[0049] In the above Table 1, GUID (Globally Unique Identifier) ​​can be used to represent the globally unique identifier of the node; Type can be used to represent the node type and identify the specific function of the node; Name can be used to represent the node name; of course, some other custom node attributes can also be included. In the actual application process, they can be designed according to actual needs. This example does not make special restrictions on this; at the same time, Figure 2 For a node example diagram corresponding to the nodes included in Figure 3 shown.

[0050] Furthermore, the reference relationship recorded above can also be referred to as LinkProperty, and the specific presentation form of the reference relationship can be shown in the following Table 2:

[0051] Table 2

[0052] LinkProperty Source Relation Target

[0053] In the above Table 2, Source can be used to represent the GUID of the starting node in the node reference relationship; Relation can be used to represent the relationship name of the node reference relationship; Target can be used to represent the GUID of the referenced node in the node reference relationship; Figure 2 For the reference relationship example diagram corresponding to the reference relationship included in Figure 4As shown. It should be noted here that the reference relationship between nodes is not affected by various parent-child, inheritance and combination structures. It only describes a reference relationship. If A references B, no matter what structure A and B are organized together, you don’t need to care too much. You only need to abstract a reference relationship, that is, A references B, or B references A.

[0054] The following will be combined Figure 2-Figure 4 right Figure 1 The display method of the node difference view shown in is further explained and illustrated. Specifically:

[0055] In step S110 , the current data version and the data version to be compared of the target module are determined, and node metadata corresponding to the current data version and the data version to be compared are determined.

[0056] In the example embodiment of the present disclosure, first, the current data version of the target module and the data version to be compared are determined; specifically, taking a game product as an example, the target module may be a game level or a specific functional module in the game, and this example does not impose any special restrictions on this; at the same time, the determination of the current data version and the data version to be compared may be manually selected based on the displayed display interface; for example, the corresponding current data version and the data version to be compared may be determined based on the selection operation of the developer in the display interface.

[0057] Secondly, determine the node metadata corresponding to the current data version and the data version to be compared; specifically, it can be implemented in the following way: generate a metadata query request according to the target module, the current data version and the data version to be compared; query the node metadata in response to the metadata query request, obtain the data query result, and judge whether the node metadata exists based on the data query result; when it is determined that the node metadata exists, extract the node metadata, and when it is determined that the node metadata does not exist, generate the node metadata according to the current data version and the data version to be compared. Specifically, the node metadata recorded here has been generated and stored in the corresponding database; therefore, when determining the node metadata, firstly, it is necessary to query the node metadata from the database, and when querying the node metadata, a metadata query request can be generated based on the module name of the target module, the first version number of the current data version and the second version number of the data version to be compared, and then the metadata query request is sent to the database; when the database receives the metadata query request, it can query and feedback the data query result; based on the data query result, it can be known whether the node metadata exists in the database; if it exists, the node metadata can be directly obtained from the database; if it does not exist, the node metadata needs to be generated. In a possible example embodiment, the node metadata may include basic information of the node, reference relationships between nodes, difference data between the current node graph and the node graph to be compared, coordinate positions of the node in the canvas, and the like.

[0058] In an example embodiment, the node metadata is generated according to the current data version and the data version to be compared, which can be achieved in the following manner: according to the target module and the current data version, the current node graph corresponding to the current data version is extracted, and according to the target module and the data version to be compared, the node graph to be compared corresponding to the data version to be compared is extracted; the current node graph and the node graph to be compared are compared for difference to obtain the node metadata; wherein the node metadata includes the basic information of the node, the reference relationship between the nodes, the difference data between the current node graph and the node graph to be compared, the coordinate position of the node in the canvas, etc. Specifically, in the actual application process, when generating the node metadata, it is necessary to extract the current node graph and the node graph to be compared, and then the current node graph and the node graph to be compared are compared for difference to obtain the node metadata; wherein, the data structure of the node metadata recorded here can be specifically shown in Table 3 below:

[0059] Table 3

[0060] Node / reference relationship basic data Difference data Canvas coordinate data ...

[0061] In Table 3, the basic data of the node / reference relationship can refer to the aforementioned Table 1 and Table 2; the difference data can be the difference information between the current node graph and the node graph to be compared, and the canvas coordinate data can be used to represent the coordinate position of the node in the canvas, etc. Further, the difference data involved in Table 3 can be used to save the difference of the Node or Link in the two data; the difference data can include the difference type (DiffType); wherein the difference type is defined as follows: None, no change; Added, added; Removed, deleted; Modified, modified.

[0062] Furthermore, for Node, the difference type (or difference category) has four cases: None, Added, Removed, and Modified; for Link, the difference type (or difference category) has three cases: None, Added, and Removed. Based on this, it can be known that the structure of the difference data involved in Table 3 can be shown in Table 4 below:

[0063] Table 4

[0064] DiffType Detail

[0065] Among them, in Table 4, DiffType can be used to refer to the difference type; Detail can be used to refer to some additional detailed information, which is only used when the node is changed. The detailed difference data of the two versions of the node using some text diff algorithms can be saved here for use; at the same time, other data in the metadata can be added according to the needs of additional functions, such as adding the canvas coordinate data of the node in order to synchronize the same node in different canvases.

[0066] In an exemplary embodiment, according to the target module and the current data version, extracting the current node graph corresponding to the current data version can be achieved in the following manner: according to the target module and the current data version, querying the data storage block storing the current node graph corresponding to the current data version; when it is determined that the data storage block storing the current node graph exists, extracting the current node graph from the data storage module; when it is determined that the data storage block storing the current node graph does not exist, extracting the first node included in the target module and the first reference relationship between the first nodes from the target module corresponding to the current data version; based on the first node and the first reference relationship between the first nodes, generating the current node graph corresponding to the current data version; wherein the first node includes at least one of the globally unique identifier, node type and node name of the first node; the first reference relationship between the first nodes includes at least one of the globally unique identifier of the starting point node that references the first node, the globally unique identifier of the reference node referenced by the first node and the relationship name of the first reference relationship.

[0067] In a possible example embodiment, when extracting the current node graph, it is first necessary to determine the data storage block that stores the current node graph; wherein the data storage block can provide functions such as query, save, and load; at the same time, the data storage block can be a self-developed data storage block, or a third-party embedded process graph database can be used as a data storage block, and this example does not impose any special restrictions on this; of course, when extracting the node graph to be compared, it is also necessary to determine the data storage block that stores the node graph to be compared, and then extract the node graph to be compared from the data storage block.

[0068] In a possible example embodiment, if the corresponding data storage library block does not exist, it is necessary to generate the corresponding current node graph or the node graph to be compared; specifically, taking the current node graph as an example, the specific generation process is: first, extract all the first nodes and the first reference relationships between the first nodes included in the specified range (such as a specific game level or a specific functional module); then, the current node graph can be generated based on the first nodes and the first reference relationships; of course, the specific generation process of the node graph to be compared is similar to this, and no further elaboration is given here. Furthermore, after obtaining the current node graph, it is also necessary to store the current node graph in the data storage block, and then name the data storage block based on the module name of the target module and the current data version to facilitate subsequent query operations.

[0069] In an exemplary embodiment, performing a difference comparison on the current node graph and the node graph to be compared to obtain the node metadata can be achieved in the following manner: calling a preset node graph comparison tool, and inputting the first node in the current node graph and the second node in the node graph to be compared into the node graph comparison tool to obtain a node difference comparison result; inputting a first reference relationship between the first nodes and a second reference relationship between the second nodes into the node graph comparison tool to obtain a reference relationship difference comparison result; and obtaining the node metadata based on the node difference comparison result and the reference relationship difference comparison result. Specifically, in the actual application process, when performing difference comparison, you can use the relevant node frameworks in various platforms to implement a node graph comparison tool that can realize GUI visualization, and then realize the function of comparing node graphs; for example, xNode in UnityEditor, Blueprints in UnrealEngine, open source project ImGui, etc.; based on this node graph comparison tool, you can realize the visualization operation of node graph comparison. During the operation, two node graph data modules of different versions will be queried and compared synchronously to generate metadata; at the same time, the metadata contains the basic information of Node or Link, difference data, and even some other data that may need to be used, such as the coordinate data of the node in the canvas, which is used to describe the position of the node in the canvas. In the difference comparison view, the position of the same node in the left and right views is synchronized.

[0070] In step S120, based on the node metadata, the difference category between the current data version and the data version to be compared is determined, and based on the difference category, a drawing method of the node difference view is determined.

[0071] In this example embodiment, first, the difference category between the current data version and the data version to be compared is determined based on the node metadata; specifically, this can be achieved in the following manner: based on the node metadata, determine the first node corresponding to the current data version, the first reference relationship between the first nodes, and the second node corresponding to the data version to be compared, the reference relationship between the second nodes; based on the node metadata, determine the first difference category between the first node and the second node, and the second difference category between the first reference relationship and the second reference relationship; wherein the first difference category includes maintaining consistency, adding categories, deleting categories, and modifying categories, etc., and the second difference category includes maintaining consistency, adding categories, deleting categories, etc. Specifically, the difference categories recorded here include both the first difference category between nodes and the second difference category between reference relationships; therefore, when determining the difference category, it is necessary not only to determine the first difference category between nodes, but also to determine the second difference category between reference relationships.

[0072] In an exemplary embodiment, when determining the first difference category, it can be implemented based on the following method: first, extract the first node and the second node; second, input the first node and the second node into the difference category determination component, and then determine the first difference category based on the difference category determination component; wherein, if the second node is consistent with the first node, it is determined that the node is consistent, so the difference category DiffType=None (that is, it remains consistent); if the second node does not exist in the first node, it is determined that the node is a newly added node, so the difference category DiffType=Added; if the first node does not exist in the second node, it is determined that the node is a deleted node, so the difference category DiffType=Removed; if the second node exists in the first node, but the node type or other information has changed, it is determined that the node has changed, so the difference category DiffType=Modified.

[0073] In an example embodiment, when determining the second difference category, it can be implemented based on the following method: first, extract the first reference relationship and the second reference relationship; secondly, input the first reference relationship and the second reference relationship into the difference category determination component, and then determine the second difference category based on the difference category determination component; wherein, if the second reference relationship is consistent with the first reference relationship, it is determined that the reference relationship is consistent, so the difference category DiffType=None (that is, it remains consistent); if the second reference relationship does not exist in the first reference relationship, it is determined that the reference relationship is a newly added reference relationship, so the difference category DiffType=Added; if the first reference relationship does not exist in the second reference relationship, it is determined that the reference relationship is a deleted reference relationship, so the difference category DiffType=Removed.

[0074] Secondly, the drawing method of the node difference view is determined based on the difference category; specifically, it can be implemented in the following ways: based on the first difference category, a first drawing method between the first node and the second node in the node difference view is determined; wherein the first drawing method includes a first adding category drawing method, a first deleting category drawing method, and a first modifying category drawing method, etc.; based on the second difference category, a second drawing method between the first reference relationship and the second reference relationship in the node difference view is determined; wherein the second drawing method includes a second adding category drawing method and a second deleting category drawing method; based on the first drawing method and the second drawing method, the drawing method of the node difference view is obtained. That is, in order to facilitate developers to distinguish and view the difference categories, different drawing methods are needed to display the corresponding differences; at the same time, the first adding category drawing method and the second adding category drawing method recorded here can be the same or different; the first deleting category drawing method and the second deleting category drawing method recorded here can be the same or different, and this example does not impose any special restrictions on this. Among them, the difference categories and the corresponding drawing methods can be specifically referred to as shown in Table 5 below:

[0075] Table 5

[0076]

[0077]

[0078] In step S130, the node difference view is drawn based on the drawing method, and the node difference view is displayed.

[0079] In this example embodiment, first, the node difference view is drawn based on the drawing method; specifically, it can be implemented in the following manner: determine the first view display area of ​​the current data version and the second view display area of ​​the data version to be compared in the canvas; extract the first node and the first reference relationship in the current data version from the node metadata, and draw the reference node view corresponding to the current data version in the first view display area based on the first node and the first reference relationship; extract the second node and the second reference relationship in the data version to be compared from the node metadata, and draw the node difference view in the second view display area based on the first drawing method, the second drawing method, the second node and the second reference relationship. Among them, the first view display area can refer to Figure 5 As shown in 501, the second view display area can refer to Figure 5 As shown in 502.

[0080] Further, after obtaining the reference node view and the node difference view, the reference node view can be displayed in the first view area. For details, please refer to Figure 6 As shown in 601 in the figure; the node difference view is displayed in the second view area, for details, please refer to Figure 6 As shown in 602 in FIG. Further, based on Figure 6 It can be seen that the right side has similarities and differences with the left side, whether it is nodes or connections; at the same time, for objects presented in different forms, it means that the object is different from the node graph on the left, which represents a certain DiffType. Different DiffTypes will have different colors on the UI. Finally, when closing the node graph difference comparison tool, if you directly save the elements in the interface or the corresponding node entity data, it will be very troublesome and bulky; therefore, you can directly save the metadata, which can not only reduce the size, but also reuse the saved metadata when restarting the tool.

[0081] Furthermore, the display method of the node difference view also includes: in response to the selection operation of the second node in the node difference view, determining the target node, obtaining the node detail information of the target node, and displaying the node detail information of the target node. That is to say, in the actual application process, if the detail information of a certain node needs to be displayed, the corresponding node in the node difference view can be directly clicked, and then the detail information of the node is displayed at the corresponding position, so that the software developer can view the detail information of the node in a timely manner.

[0082] So far, the display method of the node difference view recorded in the exemplary embodiment of the present disclosure has been fully realized. Based on the above-mentioned recorded content, it can be known that the display method of the node difference view recorded in the exemplary embodiment of the present disclosure, on the one hand, in the process of comparing the node graph difference, the tool made based on the technical solution can very intuitively show the user the graph structure of the node graph, as well as the specific changes of the graph structure, which nodes or reference relationships between nodes are added, removed, and modified, which are clear at a glance; on the other hand, the display method of the node difference view recorded in the exemplary embodiment of the present disclosure only needs to analyze the changes of the functions designed based on the node graph and the specific changes in a very short time; it will not take a process similar to text Diff, through text Diff, the human brain reconstructs the node graph and its changes, or generates different versions of the node graph, and compares the differences between the two versions of the node graph with the naked eye; on the other hand, the display method of the node difference view recorded in the exemplary embodiment of the present disclosure can be based on the metadata generated in the metadata-driven node graph difference comparison process, which can be reused; at any time, based on the saved metadata, a certain difference comparison result can be quickly restored without re-analysis.

[0083] The following are embodiments of the device disclosed herein, which can be used to execute the method embodiments disclosed herein. For details not disclosed in the device embodiments disclosed herein, please refer to the method embodiments disclosed herein.

[0084] The exemplary embodiment of the present disclosure also provides a display device for a node difference view. Specifically, refer to Figure 7 As shown, the node difference view display device may include a node metadata determination module 710, a drawing mode determination module 720, and a node difference view display module 730. Among them:

[0085] The node metadata determination module 710 may be used to determine the current data version and the data version to be compared of the target module, and determine the node metadata corresponding to the current data version and the data version to be compared;

[0086] The drawing mode determination module 720 may be used to determine the difference category between the current data version and the data version to be compared based on the node metadata, and determine the drawing mode of the node difference view based on the difference category;

[0087] The node difference view display module 730 may be used to draw the node difference view based on the drawing method and display the node difference view.

[0088] In an exemplary embodiment of the present disclosure, determining the node metadata corresponding to the current data version and the data version to be compared includes: generating a metadata query request according to the target module, the current data version, and the data version to be compared; querying the node metadata in response to the metadata query request to obtain a data query result, and judging whether the node metadata exists based on the data query result; extracting the node metadata when it is determined that the node metadata exists, and generating the node metadata according to the current data version and the data version to be compared when it is determined that the node metadata does not exist.

[0089] In an exemplary embodiment of the present disclosure, the node metadata is generated according to the current data version and the data version to be compared, including: extracting the current node graph corresponding to the current data version according to the target module and the current data version, and extracting the node graph to be compared corresponding to the data version to be compared according to the target module and the data version to be compared; performing a difference comparison between the current node graph and the node graph to be compared to obtain the node metadata; wherein the node metadata includes at least one of the basic information of the node, the reference relationship between the nodes, the difference data between the current node graph and the node graph to be compared, and the coordinate position of the node in the canvas.

[0090] In an exemplary embodiment of the present disclosure, according to the target module and the current data version, extracting the current node graph corresponding to the current data version includes: according to the target module and the current data version, querying the data storage block storing the current node graph corresponding to the current data version; when it is determined that the data storage block storing the current node graph exists, extracting the current node graph from the data storage module; when it is determined that the data storage block storing the current node graph does not exist, extracting the first node included in the target module corresponding to the current data version and the first reference relationship between the first nodes; based on the first node and the first reference relationship between the first nodes, generating the current node graph corresponding to the current data version.

[0091] In an exemplary embodiment of the present disclosure, the first node includes at least one of a globally unique identifier of the first node, a node type, and a node name; the first reference relationship between the first nodes includes at least one of a globally unique identifier of a starting point node that references the first node, a globally unique identifier of a reference node referenced by the first node, and a relationship name of the first reference relationship.

[0092] In an exemplary embodiment of the present disclosure, a difference comparison is performed on the current node graph and the node graph to be compared to obtain the node metadata, including: calling a preset node graph comparison tool, and inputting the first node in the current node graph and the second node in the node graph to be compared into the node graph comparison tool to obtain a node difference comparison result; inputting a first reference relationship between the first nodes and a second reference relationship between the second nodes into the node graph comparison tool to obtain a reference relationship difference comparison result; and obtaining the node metadata based on the node difference comparison result and the reference relationship difference comparison result.

[0093] In an exemplary embodiment of the present disclosure, based on the node metadata, determining the difference category between the current data version and the data version to be compared includes: determining the first node corresponding to the current data version, the first reference relationship between the first nodes, and the second node corresponding to the data version to be compared, the reference relationship between the second nodes based on the node metadata; determining the first difference category between the first node and the second node, and the second difference category between the first reference relationship and the second reference relationship based on the node metadata; wherein the first difference category includes at least one of maintaining consistency, adding a category, deleting a category, and modifying a category, and the second difference category includes at least one of maintaining consistency, adding a category, and deleting a category.

[0094] In an exemplary embodiment of the present disclosure, determining a drawing mode of a node difference view based on the difference category includes: determining a first drawing mode between a first node and a second node in the node difference view based on a first difference category; wherein the first drawing mode includes at least one of a first adding category drawing mode, a first deleting category drawing mode, and a first modifying category drawing mode; determining a second drawing mode between a first reference relationship and a second reference relationship in the node difference view based on a second difference category; wherein the second drawing mode includes a second adding category drawing mode and / or a second deleting category drawing mode; and obtaining a drawing mode of the node difference view based on the first drawing mode and the second drawing mode.

[0095] In an exemplary embodiment of the present disclosure, drawing the node difference view based on the drawing method includes: determining a first view display area of ​​the current data version and a second view display area of ​​the data version to be compared in the canvas; extracting the first node and the first reference relationship in the current data version from the node metadata, and drawing a baseline node view corresponding to the current data version in the first view display area based on the first node and the first reference relationship; extracting the second node and the second reference relationship in the data version to be compared from the node metadata, and drawing the node difference view in the second view display area based on the first drawing method, the second drawing method, the second node and the second reference relationship.

[0096] In an exemplary embodiment of the present disclosure, the display device of the node difference view may further include:

[0097] The node detail information display module can be used to determine the target node in response to the selection operation on the second node in the node difference view, obtain the node detail information of the target node, and display the node detail information of the target node.

[0098] The specific details of each module in the above-mentioned node difference view display device have been described in detail in the corresponding node difference view display method, so they are not repeated here.

[0099] It should be noted that, although several modules or units of the device for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present disclosure, the features and functions of two or more modules or units described above can be embodied in one module or unit. On the contrary, the features and functions of one module or unit described above can be further divided into multiple modules or units to be embodied.

[0100] In addition, although the steps of the method in the present disclosure are described in a specific order in the drawings, this does not require or imply that the steps must be performed in this specific order, or that all the steps shown must be performed to achieve the desired results. Additionally or alternatively, some steps may be omitted, multiple steps may be combined into one step, and / or one step may be decomposed into multiple steps, etc.

[0101] In an exemplary embodiment of the present disclosure, an electronic device capable of implementing the above method is also provided.

[0102] Those skilled in the art will appreciate that various aspects of the present disclosure may be implemented as systems, methods or program products. Therefore, various aspects of the present disclosure may be specifically implemented in the following forms, namely: complete hardware implementation, complete software implementation (including firmware, microcode, etc.), or a combination of hardware and software, which may be collectively referred to herein as "circuits", "modules" or "systems".

[0103] Refer to the following Figure 8 The electronic device 800 according to this embodiment of the present disclosure is described. Figure 8 The electronic device 800 shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0104] like Figure 8 As shown, the electronic device 800 is in the form of a general computing device. The components of the electronic device 800 may include, but are not limited to: the at least one processing unit 810, the at least one storage unit 820, a bus 830 connecting different system components (including the storage unit 820 and the processing unit 810), and a display unit 840.

[0105] The storage unit stores program codes, which can be executed by the processing unit 810, so that the processing unit 810 performs the steps according to various exemplary embodiments of the present disclosure described in the above “Exemplary Method” section of this specification. For example, the processing unit 810 can perform the following steps: Figure 1 Step S110 shown in: determine the current data version and the data version to be compared of the target module, and determine the node metadata corresponding to the current data version and the data version to be compared; step S120: based on the node metadata, determine the difference category between the current data version and the data version to be compared, and determine the drawing method of the node difference view based on the difference category; step S130: draw the node difference view based on the drawing method, and display the node difference view.

[0106] The storage unit 820 may include a readable medium in the form of a volatile storage unit, such as a random access memory unit (RAM) 8201 and / or a cache memory unit 8202 , and may further include a read-only memory unit (ROM) 8203 .

[0107] The storage unit 820 may also include a program / utility 8204 having a set (at least one) of program modules 8205, such program modules 8205 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment.

[0108] Bus 830 may represent one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.

[0109] The electronic device 800 may also communicate with one or more external devices 900 (e.g., keyboards, pointing devices, Bluetooth devices, etc.), may also communicate with one or more devices that enable a user to interact with the electronic device 800, and / or communicate with any device that enables the electronic device 800 to communicate with one or more other computing devices (e.g., routers, modems, etc.). Such communication may be performed via an input / output (I / O) interface 850. Furthermore, the electronic device 800 may also communicate with one or more networks (e.g., local area networks (LANs), wide area networks (WANs), and / or public networks, such as the Internet) via a network adapter 860. As shown, the network adapter 860 communicates with other modules of the electronic device 800 via a bus 830. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the electronic device 800, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, etc.

[0110] Through the description of the above implementation, it is easy for those skilled in the art to understand that the example implementation described here can be implemented by software, or by software combined with necessary hardware. Therefore, the technical solution according to the implementation of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, including several instructions to enable a computing device (which can be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to the implementation of the present disclosure.

[0111] In an exemplary embodiment of the present disclosure, a computer-readable storage medium is also provided, on which a program product capable of implementing the above method of the present specification is stored. In some possible implementations, various aspects of the present disclosure may also be implemented in the form of a program product, which includes a program code, and when the program product is run on a terminal device, the program code is used to enable the terminal device to execute the steps according to various exemplary implementations of the present disclosure described in the above "Exemplary Method" section of the present specification.

[0112] According to the program product for implementing the above method in the embodiment of the present disclosure, it can adopt a portable compact disk read-only memory (CD-ROM) and include program code, and can be run on a terminal device, such as a personal computer. However, the program product of the present disclosure is not limited thereto. In this document, a readable storage medium can be any tangible medium containing or storing a program, which can be used by or in combination with an instruction execution system, an apparatus or a device.

[0113] The program product may use any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples (non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.

[0114] Computer readable signal media may include data signals propagated in baseband or as part of a carrier wave, in which readable program code is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Readable signal media may also be any readable medium other than a readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.

[0115] The program code embodied on the readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination of the foregoing.

[0116] Program code for performing the operations of the present disclosure may be written in any combination of one or more programming languages, including object-oriented programming languages ​​such as Java, C++, etc., and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server. In cases involving a remote computing device, the remote computing device may be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., through the Internet using an Internet service provider).

[0117] In addition, the above-mentioned figures are only schematic illustrations of the processes included in the method according to the exemplary embodiments of the present disclosure, and are not intended to be limiting. It is easy to understand that the processes shown in the above-mentioned figures do not indicate or limit the time sequence of these processes. In addition, it is also easy to understand that these processes can be performed synchronously or asynchronously, for example, in multiple modules.

[0118] Other embodiments of the present disclosure will be readily apparent to those skilled in the art after considering the specification and practicing the inventions invented herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not invented by the present disclosure. The specification and examples are to be considered merely exemplary, and the true scope and spirit of the present disclosure are indicated by the claims.

Claims

1. A method for displaying a node difference view, characterized in that: include: Determine the current data version and the data version to be compared of the target module, and determine the node metadata corresponding to the current data version and the data version to be compared; Determine, based on the node metadata, a difference category between the current data version and the data version to be compared, and determine, based on the difference category, a drawing method of the node difference view; The node difference view is drawn based on the drawing method, and the node difference view is displayed.

2. The method for displaying a node difference view according to claim 1, characterized in that: Determining node metadata corresponding to the current data version and the data version to be compared includes: Generate a metadata query request according to the target module, the current data version, and the data version to be compared; In response to the metadata query request, query the node metadata to obtain a data query result, and determine whether the node metadata exists based on the data query result; When it is determined that the node metadata exists, the node metadata is extracted; and when it is determined that the node metadata does not exist, the node metadata is generated according to the current data version and the data version to be compared.

3. The method for displaying a node difference view according to claim 2, characterized in that: Generating the node metadata according to the current data version and the data version to be compared includes: According to the target module and the current data version, extract the current node graph corresponding to the current data version, and according to the target module and the data version to be compared, extract the node graph to be compared corresponding to the data version to be compared; The current node graph and the node graph to be compared are compared for differences to obtain the node metadata; wherein the node metadata includes at least one of basic information of the node, reference relationships between nodes, difference data between the current node graph and the node graph to be compared, and coordinate positions of the nodes in the canvas.

4. The method for displaying a node difference view according to claim 3, characterized in that: According to the target module and the current data version, extracting a current node graph corresponding to the current data version includes: According to the target module and the current data version, query the data storage block of the current node graph corresponding to the current data version; When it is determined that a data storage block storing the current node graph exists, extracting the current node graph from the data storage block; When it is determined that the data storage block storing the current node graph does not exist, extracting the first nodes included in the target module and the first reference relationship between the first nodes from the target module corresponding to the current data version; Based on the first node and the first reference relationship between the first nodes, a current node graph corresponding to the current data version is generated.

5. The method for displaying a node difference view according to claim 4, characterized in that: The first node includes at least one of a globally unique identifier, a node type, and a node name of the first node; The first reference relationship between the first nodes includes at least one of a global unique identifier of a starting point node that references the first node, a global unique identifier of a reference node referenced by the first node, and a relationship name of the first reference relationship.

6. The method for displaying a node difference view according to claim 3, characterized in that: Performing a difference comparison on the current node graph and the node graph to be compared to obtain the node metadata includes: Calling a preset node graph comparison tool, and inputting the first node in the current node graph and the second node in the node graph to be compared into the node graph comparison tool to obtain a node difference comparison result; Inputting a first reference relationship between first nodes and a second reference relationship between second nodes into the node graph comparison tool to obtain a reference relationship difference ratio comparison result; The node metadata is obtained based on the node difference comparison result and the reference relationship difference comparison result.

7. The method for displaying a node difference view according to claim 1, characterized in that: Determining, based on the node metadata, a difference category between the current data version and the data version to be compared, including: Based on the node metadata, determining a first reference relationship between first nodes corresponding to the current data version and a reference relationship between second nodes corresponding to the data version to be compared; Determining a first difference category between the first node and the second node, and a second difference category between the first reference relationship and the second reference relationship based on the node metadata; The first difference category includes at least one of maintaining consistency, adding a category, deleting a category, and modifying a category, and the second difference category includes at least one of maintaining consistency, adding a category, and deleting a category.

8. The method for displaying a node difference view according to claim 1, characterized in that: Determining a drawing method of the node difference view based on the difference category includes: Determine a first drawing method between a first node and a second node in a node difference view based on a first difference category; wherein the first drawing method includes at least one of a first adding category drawing method, a first deleting category drawing method, and a first modifying category drawing method; Determine a second drawing method between the first reference relationship and the second reference relationship in the node difference view based on the second difference category; wherein the second drawing method includes a second adding category drawing method and / or a second deleting category drawing method; Based on the first drawing method and the second drawing method, a drawing method of the node difference view is obtained.

9. The method for displaying a node difference view according to claim 1, characterized in that: Drawing the node difference view based on the drawing method includes: Determine in the canvas a first view display area for the current data version and a second view display area for the data version to be compared; Extracting a first node and a first reference relationship in the current data version from the node metadata, and drawing a reference node view corresponding to the current data version in the first view display area based on the first node and the first reference relationship; The second node and the second reference relationship in the data version to be compared are extracted from the node metadata, and the node difference view is drawn in the second view display area based on the first drawing method, the second drawing method, the second node and the second reference relationship.

10. The method for displaying a node difference view according to claim 9, characterized in that: The method for displaying the node difference view also includes: In response to a selection operation on a second node in the node difference view, a target node is determined, node detail information of the target node is acquired, and the node detail information of the target node is displayed.

11. A display device for node difference view, characterized in that: include: A node metadata determination module, used to determine the current data version and the data version to be compared of the target module, and determine the node metadata corresponding to the current data version and the data version to be compared; A drawing mode determination module, configured to determine, based on the node metadata, a difference category between the current data version and the data version to be compared, and determine a drawing mode of a node difference view based on the difference category; The node difference view display module is used to draw the node difference view based on the drawing method and display the node difference view.

12. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method for displaying a node difference view according to any one of claims 1 to 10 is implemented.

13. An electronic device, characterized in that: include: processor; as well as A memory, configured to store executable instructions of the processor; Wherein, the processor is configured to execute the method for displaying a node difference view according to any one of claims 1 to 10 by executing the executable instructions.