A graph data multi-mode interactive visualization method supporting topology-time two-dimensional coordination
By using entity type mapping and dynamic style adjustment, the problems of view switching and layout recalculation in topology exploration and time filtering in biomedical knowledge graphs are solved, realizing collaborative visualization of topology path search and time filtering, and improving the continuity of operation and visual effects.
Patent Information
- Application Number
- CN202611329844.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-31
- Publication Date
- 2026-11-27
AI Technical Summary
In existing biomedical knowledge graph visualization solutions, topology exploration and time filtering require switching views. Time filtering leads to layout recalculation, and the lack of dynamic mapping in the allocation of heterogeneous node type styles results in cumbersome operations, loss of visual context, and node drift.
The system uses an entity type mapping table to assign color, shape, and size style attributes, force-directed layout to render the initial view, topology path search to highlight path elements, time filtering to dynamically adjust node transparency and visibility, avoids layout recalculation, and score-driven node size mapping.
This enables parallel and collaborative topology path search and time filtering within the same view, preserving spatial location memory, dynamically highlighting high-value nodes, preventing node drift, and improving operational continuity and visual hierarchy differentiation.
Smart Images

Figure CN123177699A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of graph data visualization and user interaction technology, specifically to a multi-modal interactive visualization method, system, terminal device, and computer-readable storage medium for graph data that supports topology-time dual-dimensional collaboration. Background Technology
[0002] In the visualization application of biomedical knowledge graphs, users need to explore two dimensions simultaneously: one is the topological connectivity dimension—for example, "through which intermediate proteins do gene A and gene B achieve physical interaction"; the other is the temporal evolution dimension—for example, "from which year did drug development for this cancer begin, and from which year did it reach its peak?" The exploration needs of these two dimensions are conflicting in traditional graph visualization solutions. The existing technical solutions have the following shortcomings: First, topology exploration and time filtering require switching views. In existing solutions, path search operations (such as using a shortest path algorithm to find the shortest path between two genes) and time filtering operations (such as using a slider to display only papers published before a certain year) are handled by two separate view components or two separate operation modes in the browser. After obtaining topology results through path search, if users want to understand the distribution of these results over time, they need to manually switch to the time filtering view. Frequent view switching is not only cumbersome but also results in the loss of the visual context of the previous path search. Second, there is a lack of coordination between time filtering and the layout recalculation of the graphics rendering engine. When a user drags the time slider to make a drug node after a certain year invisible, the existing solution will immediately trigger a global layout recalculation—because the reduction in the number of nodes causes a change in the repulsive force distribution of the force-directed layout, the positions of the remaining nodes will drift as a whole. This drift disrupts the "spatial position memory" established by the user before performing time filtering, reducing the continuity of the operation experience. Third, the style assignment of heterogeneous node types lacks a dynamic mapping mechanism. In addition to color differentiation, the size of node types in a knowledge graph should also reflect their importance—for example, genes with high importance scores should display larger nodes. In existing solutions, the size of nodes is fixed during rendering initialization and does not change with different data layer scores. This results in high-value targets appearing visually identical to low-value targets in a dense network, losing the ability to distinguish between visual levels. Summary of the Invention
[0003] To address the two shortcomings of existing technologies—that topology exploration and time filtering require view switching, and that time filtering causes global layout recalculation once triggered—a multi-modal interactive visualization method for graph data that supports topology-time dual-dimensional collaboration is presented below. The technical solution works as follows: Nodes and edges of graph data are obtained from the backend, and color, shape, and size triplet style attributes are assigned according to the entity type mapping table; the initial view is rendered using force-directed layout; the shortest path algorithm is executed and path elements are highlighted after receiving two entity identifiers; the time parameter is received, and the nodes with time attributes are traversed node by node to compare the relationship between the year and the time parameter, and the transparency and visibility of the nodes are dynamically switched. In practice, this mechanism has shown significant effects in the following three aspects: The parallel collaboration of topological path search and temporal evolution filtering within the same visualization eliminates the need for view switching. Each operation acts on two independent dimensions of the graph data: path search modifies only the border styles and layer order of specific nodes and edges, without altering the visibility of any node; temporal filtering modifies only the transparency and visibility of specific nodes, without changing the spatial coordinates of any node. The results of both operations can be stacked within the same visualization—for example, a user first searches for the shortest path from gene node A to gene node B and highlights it with a thick golden border, then drags the time slider to filter and display only drugs published before 2015. The final view simultaneously shows "drug publications up to 2015" and "signal transduction paths between the two gene nodes." By disabling layout recalculation for invisible nodes, the system preserves the user's spatial location memory. When a time-based filtering operation makes a node invisible, the system not only sets its opacity to a preset weakening value below 0.2 but also sets its display attribute to an invisible flag. When the graphics rendering engine detects a node with an invisible display attribute, it automatically excludes that node in the next layout recalculation, thus eliminating the repulsive influence that node has on other nodes. However, the excluded node itself is not deleted from the node set—its original coordinates, style, and data structure remain in memory. When the user drags the time slider in reverse to make the node visible again, it is restored to its original coordinates without needing a re-layout. This "no deletion but exclusion" strategy avoids the drift of remaining nodes caused by changes in the number of visible nodes. Score-driven dynamic size mapping enables automatic differentiation of visual hierarchy. A scaling formula is preset for gene entity type nodes: Node display size = Base size + Score attribute value × Scaling factor. When the score attribute value is higher, the node size increases accordingly, making it more prominent in the network. This mapping occurs during the style assignment phase (before rendering begins), automatically generating differentiated size styles for gene nodes with different score values. Compared to homogenized networks rendered with fixed sizes, dynamic size mapping automatically highlights high-scoring targets visually. Attached Figure Description Figure 1This is a flowchart of a multi-modal interactive visualization method for graph data that supports topology-time dual-dimensional collaboration, as described in this embodiment of the invention.
[0004] Figure 2 This is a schematic diagram of the topology path search sub-process in an embodiment of the present invention.
[0005] Figure 3 This is a schematic diagram of the time evolution filtering subprocess in an embodiment of the present invention. The meanings of the markings in the diagram are as follows: 101- Obtain the graph data node set and edge set; 102- Assign node styles according to the style mapping table; 103- Render the initial view using force-directed layout; 104- Receive operation type judgment; 105- Execute the topology path search sub-process; 106- Execute the time evolution filtering sub-process; 107- Overlay and display the path and filtering results. 201 - Receive start and end entity identifiers; 202 - Call the shortest path algorithm; 203 - Extract path nodes and edges; 204 - Set highlight borders for path elements; 205 - Increase layer order value. 301 - Receive time parameter value; 302 - Traverse nodes with year attribute; 303 - Compare year and time parameters; 304 - Make nodes that have not exceeded the limit visible; 305 - Make nodes that have exceeded the limit invisible; 306 - Exclude invisible nodes and re-layout. Detailed Implementation To make the objectives, technical solutions, and advantages of the present invention clearer, the embodiments of the present invention will be described in further detail below with reference to the accompanying drawings. This embodiment provides a multi-modal interactive visualization method for graph data that supports topology-time dual-dimensional collaboration, implemented in the front-end page using a component-based framework in conjunction with a graphics rendering engine. like Figure 1 As shown in Figures 101 and 102, the system obtains the node set and edge set of the graph data from the backend interface. The node set contains five entity types: gene entity type, drug entity type, paper entity type, disease entity type, and pathway entity type. The type attribute value of each entity type corresponds to the five values mentioned above. Among them, drug entity type nodes and paper entity type nodes each have a year attribute field, storing the year value of drug approval or paper publication. Each node is assigned a triplet style attribute of color, shape, and size based on a pre-defined entity type style mapping table. The mapping table is defined as follows: disease entity types correspond to red rounded rectangles, gene entity types to purple ellipses, drug entity types to green rhombuses, paper entity types to orange hexagons, and pathway entity types to blue rounded rectangles. For gene entity type nodes, the size attribute value is calculated using the following formula: Size = 18 + score attribute value × 20, where the score attribute value is a floating-point number between 0 and 1, extracted from the node data and representing a druggability score. For example, a gene node with a high score has a druggability score of 0.92, and its size = 18 + 18.4 = 36.4; while a gene node with a low score has a druggability score of 0.2, and its size = 18 + 4 = 22. like Figure 1 As shown in Figure 103, the initial spatial coordinates of all nodes are calculated using a force-directed layout algorithm in the graphics rendering engine. The layout algorithm employs an embedded variant with a composite spring, configured with the following parameters: a repulsion coefficient between nodes of 8000, an ideal side length of 120, a gravity coefficient of 0.3, and 2000 iterations. These parameters are optimized for a domain network topology with fewer than 100 nodes—the larger repulsion coefficient (8000) combined with a moderate ideal side length (120) results in a network exhibiting clear modular clustering, reflecting the actual small-world characteristics of protein-protein interaction networks. like Figure 1 Marked in the middle 104 to 107 and Figure 2 As shown, when the user operation is a topology path search, the system enters the path search sub-process. The system receives the starting entity identifier (e.g., gene node A) and the target entity identifier (e.g., gene node B), as well as an optional maximum path depth parameter (default value is 5). Figure 2 As shown in marks 201 and 202, the shortest path calculation method built into the graphics rendering engine is invoked. Using the node corresponding to the starting entity identifier as the source point and the node corresponding to the target entity identifier as the target point, the weighted shortest path in the node set is calculated. The weight of each path edge is taken as the confidence attribute value associated with that edge. For example... Figure 2 As shown in marks 203 to 205, the identifier lists of all nodes and edges traversed along the path are extracted. The border style attributes of these nodes and edges are uniformly set to a highlight width (4 pixels) and highlight color (gold), and their layer order attribute is increased to 10 to ensure that the path elements visually float on top of other graph elements. Path searching does not change the color attribute values of any nodes—nodes retain the color of their original entity type; path information is conveyed only through borders and layer order. like Figure 1 Mark 106 and Figure 3As shown, when the user's action is time-evolution filtering, the time filtering sub-process is entered. The system receives a year value (range 1995 to 2024) input by the user through the year slider control on the interface. Figure 3 As shown in markers 301 to 303, all nodes in the node set whose type attribute value is "Drug Entity" and "Paper Entity" (each of these entity types has a year attribute field) are traversed. For each traversed node, its year attribute value is read and compared with the input time parameter value. For example... Figure 3 As shown in marks 304 and 305, if the year attribute value is less than or equal to the time parameter value, the node's opacity is set to 1.0 (fully visible), and its display attribute is set to visible. If the year attribute value is greater than the time parameter value, the node's opacity is set to 0.15 (extremely transparent but not completely invisible), and its display attribute is set to invisible. Nodes marked as invisible are automatically excluded in subsequent layout recalculations by the rendering engine, thus preventing the positions of other visible nodes from shifting due to filtering operations. Taking the interaction of the non-small cell lung cancer knowledge graph as an example, the initial view presents disease nodes, multiple core gene nodes, 18 drug nodes (distributed between 1998 and 2020), pathway nodes, and paper nodes. The user first enters two gene identifiers in the path search input box and executes the search—the system calculates and highlights the shortest path between the three genes, with gene nodes and edges on the path changing to a thick gold border. The user then drags the time slider to 2010—the system iterates through the drug nodes, reducing the transparency of drug nodes with years greater than 2010 (such as drugs approved in 2015, 2021, and 2020) to 0.15 and making them invisible, while keeping drug nodes with years less than or equal to 2010 (such as drugs approved in 2003 and 2004) fully visible. The final view simultaneously presents: the gene signal transduction pathways highlighted in gold and a simplified drug network filtered to exclude new drugs after 2010. Now combined Figure 2 and Figure 3 The sub-flowcharts further illustrate the correspondences not separately expanded in the main flowchart. For example... Figure 1 As indicated by marker 102 and the implementation method, the entity type style mapping table is a statically predefined key-value pair structure, which is loaded before any visualization operation is performed. The overlay mechanism of markers 105 and 107 is the key difference between this invention and traditional single-mode visualization schemes: when the user sequentially performs the topology path search and time evolution filtering operations, the second operation does not clear the rendering effect of the first operation on the view, but rather adds modifications to the existing layer. Specifically, as... Figure 2As shown in marks 204 and 205, the topology path search subprocess only modifies the border style attribute and layer order attribute of the path element nodes; while... Figure 3 As shown in markers 304 to 306, the time-evolution filtering sub-process only modifies the node's transparency and visibility attributes, as well as the layout participation flag. The two sets of sub-processes operate on non-overlapping sets of style attributes, so their rendering effects can coexist and overlap on the same view without overlapping or conflicting. For example... Figure 3 The comparison of time parameters, marked 302 and 303, is performed by traversing all nodes in the node set that have year time attributes. Nodes that do not have year time attributes (such as edge or path nodes) are not affected by time filtering and maintain their original display status.
[0006] The above description is merely an exemplary embodiment of the present invention and does not limit the scope of patent protection of the present invention. Any equivalent structural or procedural modifications made based on the description and drawings of the present invention, or direct or indirect applications in other related technical fields, are similarly included within the scope of patent protection of the present invention.
Claims
1. A method for multi-modal interactive visualization of graph data supporting topology-time dual-dimensional collaboration, characterized in that, Includes at least the following steps: The node set and edge set of the graph data are obtained from the backend. The node set includes gene entity type nodes, drug entity type nodes and paper entity type nodes, wherein drug entity type nodes and paper entity type nodes each have year and time attributes. According to the preset entity type style mapping table, each node is assigned color attribute value, shape attribute value and size attribute value. Different entity types correspond to different color and shape combinations. Gene entity type nodes also calculate size attribute value according to the associated rating attribute value according to the preset scaling formula. In the graphics rendering engine, the force-directed layout algorithm is used to calculate the initial spatial coordinates of all nodes and draw the nodes and edges to form the initial view; It receives the year value input by the user as the time parameter value; Iterate through all nodes with year time attributes, and compare the year time attribute value of each node with the time parameter value: if it is less than or equal to the time parameter value, set the transparency of the node to the first value and set the display attribute to visible; if it is greater than the time parameter value, set the transparency of the node to the second value which is less than the first value and set the display attribute to invisible. At the same time, the nodes that are set to invisible are excluded from the subsequent layout recalculation of the graphics rendering engine, so that the spatial coordinates of visible nodes remain unchanged before and after the time filtering operation.
2. The method according to claim 1, characterized in that, Also includes: Receive the starting entity identifier and the target entity identifier as path search parameters, call the shortest path algorithm built into the graphics rendering engine to calculate a path from the node with the starting entity identifier to the node with the target entity identifier; set the border style attributes of all nodes and edges traversed on the path to highlight width and highlight color, and increase the layer order attribute values of the nodes and edges to be greater than the layer order values of unhighlighted elements.
3. The method according to claim 2, characterized in that, Before performing the path search, a maximum path depth parameter is also received, and the shortest path algorithm limits the number of nodes traversed in the path to no more than the maximum path depth parameter plus one during execution.
4. The method according to claim 1, characterized in that, The first value is 1.0 and the second value is a preset value that is greater than zero and less than 0.
2. When the display attribute of a node is set to invisible, the node retains its original spatial coordinates and style data in memory. When the user adjusts the time parameter in reverse to restore the node to a visible state, the display is directly restored with the original spatial coordinates.
5. The method according to claim 1, characterized in that, The graph data also includes disease entity type nodes and pathway entity type nodes. The preset entity type style mapping table assigns purple ellipses to gene entity types, green rhombuses to drug entity types, orange hexagons to paper entity types, red rounded rectangles to disease entity types, and blue rounded rectangles to pathway entity types.
6. A multi-modal interactive visualization system for graph data supporting topology-time dual-dimensional collaboration, characterized in that, include: The data acquisition and style assignment module is used to acquire the node set and edge set of graph data from the backend data interface, and assign color attribute value, shape attribute value and size attribute value to each node according to the preset entity type style mapping table; The initial view rendering module is used in the graphics rendering engine to calculate the initial spatial coordinates of all nodes using the force-directed layout algorithm and draw the initial view. The topology exploration module is used to receive the starting entity identifier and the target entity identifier, call the shortest path algorithm to calculate the path and highlight the path elements; The time evolution filtering module receives the user-input time parameter value, traverses all nodes with year time attributes, compares the size relationship between the year attribute value and the time parameter value for each node, dynamically switches the transparency and visibility attributes of the nodes, and excludes nodes that are set to invisible from subsequent layout recalculation, so that the spatial coordinates of visible nodes remain unchanged before and after the filtering operation.
7. The system according to claim 6, characterized in that, When switching visibility, the time evolution filtering module sets the transparency style attribute of nodes whose year time attribute value is greater than the time parameter value to a preset value of less than 0.2 and sets the display attribute to invisible; the nodes set to invisible retain their original spatial coordinates and style data in memory.
8. A terminal device, characterized in that, It includes a processor and a memory, the memory storing a computer program, and the processor executing the computer program to implement the steps of the method as described in any one of claims 1 to 5.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method as described in any one of claims 1 to 5.
