A node triggered view generation method and system of a multi-dimensional relationship graph
By using unified view commands for global entity identification and dimension indexing, the problem of inconsistent node interactions when switching dimensions in multidimensional relationship graphs in existing technologies has been solved. This has enabled identity consistency and continuous browsing of multidimensional relationship graphs, improving the stability and traceability of graph browsing.
Patent Information
- Application Number
- CN202611422987.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-14
- Publication Date
- 2026-11-27
AI Technical Summary
Existing relationship graph systems struggle to maintain the same entity identity when switching between dimensions, leading to inconsistent node interactions, duplicate responses, and loss of relationship sources, as well as a lack of cross-dimensional positioning and continuous browsing capabilities.
Using global entity identifiers and dimension indexes, target views are generated through unified view commands. Triggering results of single nodes, composite nodes, and dimension crossing points are handled uniformly. Relative roles and relationship sources are recalculated, adjacent relationship sets are merged, and layout overlaps are resolved.
It achieves identity consistency and continuous browsing of multidimensional relationship graphs when switching between dimensions, reduces duplicate responses and display errors, and improves the stability and traceability of graph browsing.
Smart Images

Figure CN123178694A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of data visualization and relationship graph interaction technology, and in particular to a method and system for generating node-triggered views of a multidimensional relationship graph. Background Technology
[0002] Relationship graphs can be used to organize and browse information such as family genealogies, mentor-apprentice relationships, classmate relationships, community relationships, novel character relationships, film and television character relationships, and knowledge graphs. As the semantic relationships associated with the same entity continue to increase, a graph project typically needs to simultaneously express family, career, classmate, mentor-apprentice, or other independent relationship dimensions. Existing relationship graph systems mostly organize nodes and relationship edges using a single relationship plane; when users switch from one relationship dimension to another, they usually need to re-search or reload the independent page, making it difficult to directly complete cross-dimensional positioning and continuous browsing while maintaining the corresponding relationships of the same entity.
[0003] Existing relationship graph systems also suffer from fragmented node interaction and view generation rules. Single nodes, couple or multi-member composite nodes, and cross-dimensional jump anchors often employ independent event handling logic, which can easily lead to the same triggering operation being responded to repeatedly or inconsistent results generated by different entry points. After switching the central entity, some systems only change the node position without recalculating the relative roles based on the new central entity; when generating composite views, there is also a lack of deterministic rules for merging adjacent relationships among members, deduplicating duplicate entities, retaining the source after deduplication, assigning branches to multi-spouse families, and resolving branch collisions, which can easily result in duplicate nodes, lost relationship sources, mismatched child branches, or overlapping layouts.
[0004] Therefore, there is a need to provide a method and system for generating node-triggered views of multidimensional relationship graphs. Summary of the Invention
[0005] To address the shortcomings of existing technologies, this invention provides a node-triggered view generation method and system for multidimensional relationship graphs, solving the problems mentioned in the background section.
[0006] To achieve the above objectives, the present invention adopts the following technical solution: A node-triggered view generation method for a multidimensional relationship graph includes: Obtain multidimensional relationship graph data containing multiple relationship dimensions, configure consistent global entity identifiers for entities in the multidimensional relationship graph data across all relationship dimensions, and establish entity-dimension indexes based on global entity identifiers and dimension identifiers; The current view is generated based on the graph data of the current relationship dimension. The interactive objects in the current view are configured as single nodes, composite nodes or dimension crossing points, and interactive description data is configured for the interactive objects to characterize the interactive object type, related entities and target relationship dimension. Receive node trigger operations for interactive objects, and generate unified view instructions based on the interaction description data of the triggered interactive objects. The unified view instructions include target dimension identifier, central entity set and view type. The view types include single view, composite view and dimension crossing view. The target view is generated according to the unified view command. In the single entity view, the entity associated with the single entity node is used as the central entity. In the composite view, the member entities associated with the composite node are used as the central entity set. In the dimension traversal view, the entity-dimension index is queried according to the global entity identifier of the carrying entity and the target dimension identifier. The projected entity of the carrying entity in the target relationship dimension is used as the central entity, and the target view corresponding to the target relationship dimension is generated.
[0007] Furthermore, the multidimensional relationship graph data includes entity master records, dimension projection records, relationship records, and composite relationship records, and the query relationship of the entity-dimension index is formed by global entity identifiers, dimension identifiers, and node identifiers within dimensions.
[0008] Furthermore, the hit priority of dimensional crossing points is higher than that of the carrier node, and the hit priority of member interaction areas in a composite node is higher than that of the overall interaction area of the composite node. After hitting a sub-interaction area, the trigger operation is prevented from continuing to be passed to the carrier object.
[0009] Furthermore, from the perspective of a single entity, a single entity target subgraph is generated with the central entity as the starting point for traversal. The relative roles of the target entities are determined based on the directed relationship path from the central entity to the target entities, and the relative roles of each target entity are recalculated after the central entity changes.
[0010] Furthermore, when adding a new relation dimension, a dimension projection record is created for existing entities that share the same global entity identifier, and the entity-dimension index is updated. The current view state is saved before performing dimension traversal, and the saved view state is restored upon return.
[0011] Furthermore, from the perspective of the complex, the set of member entities is determined based on the complex relationship, the set of adjacent relationships of the member entities is merged, adjacent entities are displayed without duplicates, and the source binding information is retained for the displayed nodes after deduplication.
[0012] Furthermore, when the same member entity participates in multiple composite relationships, a shared member node is generated, and a relationship branch corresponding to each composite relationship is established. The associated entity is bound according to the composite relationship identifier or the source member entity identifier, and the overlap between relationship branches is resolved through hierarchical layout and occupancy interval detection.
[0013] Furthermore, based on the node rendering identifier set and relation edge rendering identifier set of the current view and the target view, determine the common set, deletion set, and new set, retain and update the common rendering object, remove the deleted rendering object, and create the new rendering object.
[0014] A node-triggered view generation system for a multidimensional relational graph includes a data organization module, an interaction configuration module, a trigger parsing module, a subgraph generation module, and a layout rendering module that are interconnected. The data organization module is used to acquire multidimensional relationship graph data, configure global entity identifiers for entities, and establish entity-dimension indexes; The interaction configuration module is used to generate the current view, configure the interaction object as a single node, a composite node, or a dimension crossing point, and configure the interaction description data. The trigger parsing module is used to receive node trigger operations and generate unified view instructions, including target dimension identifiers, central entity sets, and view types, based on the interaction description data. The subgraph generation module is used to generate corresponding target subgraphs based on single entity perspective, composite entity perspective, or dimension crossing perspective, and to locate the projected entity of the same entity in the target relation dimension through entity-dimension index under the dimension crossing perspective; The layout rendering module is used to generate the corresponding target view based on the target subgraph.
[0015] Compared with existing technologies, the advantages of this invention are: 1: By converting the triggering results of single nodes, composite nodes, and dimensional crossing points into unified view instructions, different interaction entry points can share the subsequent subgraph generation and layout rendering process, which can reduce the coupling between event handling branches and avoid the same operation being repeatedly responded to by the carrying node and the subordinate crossing point.
[0016] 2: By separating entity base data from dimension representation through global entity identification, dimension projection records, and entity-dimension indexes, relational dimensions can be expanded without repeatedly creating entity master records, and the nodes of the same entity in the target dimension can be directly located, thereby maintaining identity consistency and continuity when browsing across dimensions.
[0017] 3: By extracting individual target subgraphs according to relation type, relation direction and traversal depth, and recalculating the relative roles based on the directed relation paths from the central entity to each target entity, the role labels and node levels are updated synchronously with the relation semantics after the central entity changes, reducing display errors caused by using static role labels.
[0018] 4: By merging and deduplicating the adjacent relationship sets of composite relationship members, and retaining multiple sets of source binding information for the deduplicated display nodes, duplicate display can be avoided without losing the underlying relationship source; through shared member nodes, independent family branches, and three-layer hierarchical constraints, the branch affiliation in multi-spouse scenarios can be clearly defined, and the mismatch of children can be reduced.
[0019] 5: By calculating the occupied range of family branches and performing deterministic translation of overlapping branches, as well as performing differentiated refresh according to the set of rendering identifiers, the view jump caused by the overlap of the complex layout and full reconstruction can be reduced, so that the same data input can produce stable and reproducible display results.
[0020] In summary, this invention connects three types of node triggering objects through a unified view command, achieves cross-dimensional positioning through entity-dimensional indexing, realizes relative role recalculation through directed relational paths, and generates composite or single target views through source binding, family branch constraints, collision resolution, and differentiated refresh. It can improve the consistency of multidimensional relationship graph switching results, the traceability of relationship sources, and the stability of layout results. It is suitable for visualization browsing scenarios such as family genealogy, master-disciple relationships, classmate relationships, community relationships, character relationships in works, and knowledge graphs. Attached Figure Description
[0021] Figure 1 This is a schematic diagram of the overall process of the node-triggered view generation method for the multidimensional relationship graph of the present invention; Figure 2 This is a schematic diagram illustrating the overall functionality of the node-triggered view generation system for the multidimensional relationship graph of the present invention. Figure 3 This is a schematic diagram of the upper-level structure of the three-layer layout and multiple family branches from the perspective of the composite of the present invention; Figure 4 This is a schematic diagram of the composite relationship view generated on demand after the overall triggering of the composite node in this invention; Figure 5 This is a schematic diagram illustrating the relative role changes when a member entity in a composite node is used as the central entity in this invention. Figure 6 This is a schematic diagram illustrating the relative role changes when the associated entity is the central entity in this invention; Figure 7 This is a schematic diagram illustrating how the dimensional crossing point of the present invention switches from a folded state to an unfolded state and enters the target relationship dimension. Detailed Implementation
[0022] The present invention will be fully described below with reference to the accompanying drawings, executable data structures, triggering processes, relational operations, layout calculations, and example data. The embodiments are used to illustrate the technical solutions and their implementation methods, and are not intended to limit the scope of protection; where there is no conflict, the technical features of the various embodiments can be combined.
[0023] like Figure 1 As shown, this invention first generates the current view based on multidimensional relationship graph data and entity-dimensional index, and identifies the node triggering object. Then, the triggering result is converted into a unified view instruction. Subsequently, based on the view type, dimension traversal, single-relationship traversal, or composite relationship merging is performed to generate the target subgraph and layout constraints. Finally, the target view is generated through differentiated refresh. Figure 2 As shown, the above process can be executed collaboratively by the data organization module, the interaction configuration module, the trigger parsing module, the subgraph generation module, and the layout rendering module.
[0024] This invention is applicable to scenarios such as family genealogies, master-disciple relationships, classmate relationships, community relationships, novel character relationships, film and television character relationships, and knowledge graphs. A knowledge graph project can contain multiple relationship dimensions, each using an independent set of relationship records, while maintaining the correspondence between the same entity across different relationship dimensions through a global entity identifier.
[0025] Relationship dimensions are graph spaces divided according to relational semantics, such as family, classmates, career, mentor-apprentice, and interest dimensions. Dimensions can have different relationship types, layout rules, and visibility ranges, but they share the same entity master record.
[0026] The entity master record stores basic entity information that does not change when switching views, including the global entity identifier, name, entity category, and status fields. A person entity can also store birth date, death date, avatar resource identifier, and display permissions. The global entity identifier is unique within a graph project, for example, P001.
[0027] Dimension projection records are used to represent the existence of an entity in a specified relation dimension, including a global entity identifier, a dimension identifier, node identifiers within the dimension, optional initial coordinates, and display style. The same person may have different node identifiers within the family dimension (D01), classmate dimension (D02), and career dimension (D03), but all three dimension projection records point to the same global entity identifier.
[0028] Relationship records are used to describe the semantic connection between two entities within the same relationship dimension. Each relationship record includes at least a relationship identifier, a dimension identifier, a relationship type, a relationship direction, a global identifier for the starting entity, and a global identifier for the ending entity. The relationship type can be parent-child, mother-child, spouse, classmate, mentor-apprentice, colleague, or a relationship based on mutual interest; the relationship direction can be recorded as forward, reverse, or bidirectional.
[0029] Composite relationship records are used to describe multi-member relationships that require overall triggering or overall layout. They include a composite relationship identifier, dimension identifier, a set of global identifiers for member entities, and optional establishment time, status, and order identifiers. Composite relationships are not limited to marital relationships; they can also represent multi-entity associations within research teams, course groups, project member combinations, work character factions, or knowledge graphs. Marital composite relationships are a specific implementation of composite relationships.
[0030] Entity-dimension indexes use a global entity identifier and a dimension identifier as the join key, with the index value being the node identifier within the corresponding dimension. This index can be implemented using a hash table, a join index in a relational database, or a composite index in a graph database. The index set can be represented as:
[0031] In the formula, Represents a set of entity-dimension indexes. Represents the global entity identifier. Represents the global entity identifier set. Indicates dimension identifier, Represents a set of dimensions. Indicates the node identifier within the dimension. Represents the set of node identifiers within a dimension.
[0032] In one feasible data storage method, entity master records, dimension projection records, relation records, and composite relation records are stored in four separate data tables. The start entity field and end entity field of the relation record reference the entity master record, the dimension projection record references the entity master record through a global entity identifier, and the composite relation record references one or more entity master records through a member association table, thereby avoiding the repeated storage of basic information for cross-dimensional entities.
[0033] The system generates the current view graph based on the dimensional projection records and relationship records of the current relationship dimension. The current view graph can be implemented using a 2D canvas, a vector canvas, or a graphics processor-based rendering canvas. A single node is an interactive object that corresponds to a global entity identifier and can independently trigger the single-entity view; a composite node is an interactive object that corresponds to a composite relationship identifier and at least two member entities and can trigger the composite view as a whole; a dimensional crossing point is a sub-interactive object attached to a single node or composite node and used to trigger the cross-relationship dimension positioning of the carrying entity.
[0034] Each interactive object is configured with interactive description data. Interactive description data is a set of data that transforms interface hit results into unified view instructions, and it must at least characterize the interactive object type, associated entities, and target relationship dimensions. The interactive description data for a single node includes a current dimension identifier and a global entity identifier; the interactive description data for a composite node includes a current dimension identifier, a composite relationship identifier, and a set of global identifiers for member entities; the interactive description data for a dimension crossing point includes a global identifier for the carrying entity, a current dimension identifier, and a candidate target dimension identifier.
[0035] In this paper, the central entity is the semantic benchmark entity used for relation traversal, relative role inference, and view generation from the perspective of a single entity. The central entity set is the set of member entities that serve as the semantic benchmark from the perspective of a composite entity. The central entity or the central entity set is not required to be located at the geometric center of the canvas. The target view can update only the selected state, relative role, and display range while maintaining the original relative positions of the nodes.
[0036] The unified view instruction in this paper is the view generation input data shared by three types of interactive objects, including at least the target dimension identifier, the central entity set, and the view type; the single entity perspective means generating the target view with one entity as the semantic basis, the composite perspective means generating the target view with multiple member entities in the same composite relationship as the semantic basis, and the dimension crossing perspective means generating the corresponding target view after locating the carrying entity to the target relationship dimension.
[0037] The source relation view in this article is a relation view of a member entity before forming a composite relation or existing independently of the composite relation, used to limit the scope of associated data of that member entity; the composite view can extract associated data from multiple source relation views as needed, without changing the independent storage scope and access boundaries of each source relation view.
[0038] Node-triggered operations are discrete trigger events generated by clicks, touches, stylus taps, or equivalent pointer confirmation operations. The implementation does not rely on the timing difference between single and double clicks; the event handler selects a branch only based on the type of the interacting object, thus the same logic can adapt to mouse, touchscreen, and stylus input.
[0039] Dimension crossing points are set within the sub-interaction regions of single nodes or composite nodes, and have a higher hit priority than the host node. When a composite node uses a total interaction region that includes member interaction regions, the hit priority of the member interaction regions is higher than that of the overall interaction region of the composite node. The event dispatcher first detects dimension crossing points, then member interaction regions, and finally the overall interaction region of the composite node. Upon hitting a dimension crossing point, propagation to the host node is terminated. Upon hitting a member interaction region, a single-person perspective of the corresponding member is generated, and the triggering of the composite perspective is prevented. When a composite node is hit in an area not covered by member interaction regions, a composite perspective is generated.
[0040] For example, with a canvas resolution of 1440px × 900px, individual nodes can use a rectangular hit area of 160px × 72px, and dimensional crossing points can use a circular hit area with a diameter of 20px. The above values are only examples for ease of implementation; the actual size can be adjusted according to the display density and scaling ratio. The unit of measurement is pixels (px).
[0041] The trigger parsing module converts different interactive objects into unified view instructions. A unified view instruction includes at least a target dimension identifier, a central entity set, and a view type, and may further include a composite relationship identifier, traversal depth, filtering conditions, and a trigger timestamp. For a single node, the target dimension is the current dimension, the central entity set contains one entity, and the view type is a single-node perspective; for a composite node, the target dimension is the current dimension, the central entity set contains members of the composite relationship, and the view type is a composite perspective; for a dimension crossing point, the target dimension is a candidate target dimension, the central entity set contains the carrying entity, and the view type is a dimension crossing perspective.
[0042] When the view type of the unified view instruction is a single-entity view, the subgraph generation module uses the central entity as the traversal starting point and performs a directed traversal within the set of relationship records corresponding to the target dimension. Traversal conditions include at least the allowed relationship types, allowed relationship directions, and maximum traversal depth. Family browsing can set the maximum traversal depth to 3 to display the upper three generations or the lower three generations; community browsing can set other positive integers according to business needs.
[0043] Traversal can be implemented using a breadth-first search approach. The module first adds the central entity to the queue and records it at depth 0. Then, it sequentially reads the relationship records connected to the entity at the head of the queue that meet the filtering conditions, adds unvisited adjacent entities to the queue, and increments their depth by 1. When the depth of an adjacent entity exceeds the maximum traversal depth, it stops expanding. To avoid repeated traversal due to circular relationships, the access set uses the global entity identifier as the key.
[0044] A directed relational path from the central entity to the target entity is represented as a sequence of relation types and relation directions arranged in traversal order:
[0045] In the formula, Indicates from the central entity To the target entity Directed path relation, Indicates the first The relationship type of the edge. Indicates the first The relational direction of a relational edge relative to the traversal direction. This indicates the number of relation edges contained in the path, expressed in units of edges.
[0046] Role mapping rules map relationship types and relationship direction sequences to roles relative to the central entity. In kinship scenarios, specific titles can be generated by combining the target entity's gender, date of birth, peer order, child order, and paternal or maternal lineage information. For example, a reverse father-son relationship path can be mapped to father; two consecutive relationship paths can be mapped to brothers or sisters based on the target entity's gender; child relationships can be mapped to eldest daughter, second son, or youngest daughter based on child order; and bidirectional spousal relationships can be mapped to spouse. Role mapping rules are stored in a configurable rule table, thus adapting to kinship titles, organizational roles, or character identities in works.
[0047] When multiple available paths exist between a central entity and the same target entity, the path with fewer relational edges is selected first; if the number of relational edges is the same, the path with higher relational priority is selected. The selection of the target path can be represented as:
[0048] In the formula, Representing the central entity To the target entity The set of candidate paths, Representing a path The number of relational edges, Representing a path The priority number of the relationship is used; the smaller the number, the higher the priority. This indicates the target path selected after comparing path length and relationship priority in sequence.
[0049] If the target path remains the same, stable sorting can be performed using the creation time of the relationship record or the relationship identifier to ensure that the same data input produces the same role calculation results. If no role mapping rule matches the target path, the system uses the relationship type name or "related entity" as the fallback role and retains the target path for subsequent rule supplementation.
[0050] When the central entity changes, the system clears the relative role cache corresponding to the previous central entity and re-executes path matching based on the new central entity. Basic information such as name and date of birth in the entity's master record remains unchanged, while the relative role, selection status, display level, and relationship edge direction in the target view are updated according to the new central entity. The central entity is a semantic viewpoint reference, not equivalent to the canvas's geometric center. When maintaining a stable node layout is more conducive to continuous browsing, the system can retain the original display position of the central entity, indicating the current viewpoint only through the selection border or other status markers.
[0051] When the view type of the unified view command is a dimension-crossing perspective, the system queries the entity-dimension index using the global entity identifier carrying the entity and the candidate target dimension identifier. If the query is successful, the system obtains the node identifier within the target dimension of the entity, sets the entity as the central entity of the target dimension, converts the view type to a single-entity perspective, and executes the aforementioned single-entity target subgraph generation process.
[0052] Before dimensional traversal, the view state manager saves the current dimension identifier, the set of center entities, the canvas zoom level, and the canvas offset. View states can be pushed onto a last-in-first-out (LIFO) state stack or saved to a key-value table according to the dimension identifier. When the user returns to the original dimension, the system reads the saved state and restores the original center, zoom level, and offset to avoid repositioning.
[0053] Dimension crossing points are not fixedly displayed for entities without target projections. The system queries all dimension projection records associated with the same global entity identifier and generates crossing points only for dimensions other than the current dimension that the user has read permissions for. When there is only one candidate target dimension, a crossing point can be generated directly; when there are two or more candidate target dimensions, an aggregated crossing point can be displayed on the carrying node, and the candidate dimension list will expand upon triggering.
[0054] When adding a new relationship dimension, the dimension management module receives the dimension name, the set of relationship types, the default traversal depth, and the layout configuration, and assigns a unique dimension identifier to the new relationship dimension. For existing entities that need to be included in the new dimension, only a new dimension projection record is created, referencing the original global entity identifier; the entity master record is not created again. Subsequently, the entity-dimension index is updated using the global entity identifier and the new dimension identifier as keys.
[0055] For example, person P001 already exists in the family dimension D01 and the classmates dimension D02. When the system adds the career dimension D03, it creates a dimension projection record (P001, D03, N301) for P001 and adds ((P001, D03), N301) to the index. Afterward, the P001 node in both D01 and D02 can generate a dimension crossing point pointing to D03 based on the index.
[0056] If the index query does not return the target dimension projection, the system will not perform a blank jump and will return a status indicating that the entity does not exist in the target dimension; if the dimension projection record exists but the index is missing, the system can rebuild the corresponding index item based on the dimension projection record and then retry; if the user does not have read permissions for the target dimension, the system will not generate the corresponding crossing point, nor will it expose the dimension name in the candidate dimension list.
[0057] When the view type of the unified view command is a composite view, the system locates the composite relationship record based on the composite relationship identifier, reads the member entity set, and queries the adjacent relationship set of each member entity in the target dimension. Each adjacent relationship set contains the relationship record connected to that member and the adjacent entity at the other end of the relationship.
[0058] The adjacency sets of each member entity are merged using a set union operation, and duplicate display nodes are deduplicated using the global entity identifiers of adjacent entities. Assume the composite relationship includes... The member, the The set of neighboring entities of each member is Then the set of adjacent entities after deduplication is:
[0059] In the formula, This represents the set of adjacent entities after merging and deduplication. Indicates the first The set of neighboring entities of each member entity. This indicates the number of members in a composite relationship, expressed in units of individual nodes. The set union operation only merges and displays nodes; it does not delete records from the underlying relationship.
[0060] To prevent loss of relationship sources after deduplication, each displayed node is configured with a source binding list. Each set of source binding information includes at least a composite relationship identifier, a member entity global identifier, and a relationship identifier, and may include relationship type, relationship direction, and branch identifier. Adjacent entities have one set of source bindings when associated with only one member; when associated with two or more members respectively, only one node is still displayed, but multiple sets of source bindings are retained.
[0061] For example, if spouse members P001 and P002 both have relationship records with person P010, after deduplication, the target subgraph will only create one display node for P010. The source binding lists for this display node are stored as (M001, P001, R101) and (M001, P002, R102), respectively. The layout module can then select either double-connected edges or common-connected anchor points, and the details panel can display the relationships between P010 and the two members separately.
[0062] The target subgraph of the complex relationship must contain at least the member nodes of the complex relationship, adjacent entity nodes that satisfy the filtering conditions, the complex connection relationships between members, and the relationship edges between members and adjacent entities. The system generates hierarchical layout constraints based on the type of complex relationship. For marital complex relationships, the hierarchical layout constraints include a parent layer, a member layer, and a child layer; for organizational team complex relationships, a parent layer, a team member layer, and a lower-level task layer can be generated accordingly.
[0063] like Figure 3 As shown, marital reconciliation records are independent of each marriage or spousal relationship. If the same person participates in two or more marital reconciliation records, the system does not copy the person's display node, but instead creates a shared member node. Each spouse entity node is arranged around the shared member node, and each marital reconciliation record forms a family branch.
[0064] Child entities are primarily bound to family branches based on the composite relationship identifier stored in their relationship records. If the old data does not store composite relationship identifiers, binding can be performed based on a combination of parent source entity identifiers; if this still cannot uniquely determine the child entity, it is marked as pending confirmation and not automatically assigned to a potentially incorrect family branch. This process ensures that the mother-child or father-child origin remains clear in multi-spouse scenarios.
[0065] In the three-tiered standardized layout, the elder layer is at the top, the member layer is in the middle, and the children layer is at the bottom. Both sets of elders are positioned near their respective members according to their source binding information; shared members and spouses are located in the member layer; children are located in the children layer of their respective family branches. Married children can have their marital relationship read and are displayed as a child composite node, while unmarried children are displayed as individual nodes.
[0066] like Figure 4 As shown, when a user triggers the overall interactive area of the composite node formed by member entity A and member entity B, the parsing module writes the global entity identifiers of member entities A and B into the central entity set and generates a unified view instruction corresponding to the composite perspective. The system uses this composite relationship as the member layer, displaying entities or composite nodes with preceding associations to each member entity above it, and subsequent associated entities bound by the composite relationship identifier below it, thus forming a composite relationship view based on this composite relationship.
[0067] In one optional implementation, member entity A and member entity B originate from relational view A and relational view B, respectively, with the data scopes of the two source relational views remaining independent. The composite node records the binding relationships between each member entity and its corresponding source relational view. Only when the overall interaction area of the composite node is triggered does the system extract data related to the current composite relationship from the two source relational views and temporarily generate a composite relational view, without requiring the pre-establishment or permanent storage of this composite relational view. In a family scenario, this composite relational view can be represented as a small family view with the spouses as the intermediate layer, both sets of grandparents as the preceding association layer, and children as the following association layer; the above hierarchical relationship can also be replaced with the corresponding association layers in a team, project, or knowledge graph.
[0068] like Figure 5 As shown, when a user triggers the member interaction area corresponding to member entity A within a composite node, the member interaction area responds before the overall interaction area of the composite node. The central entity set of the unified view command only contains member entity A and adopts a single-entity perspective. The system marks member entity A as the current entity and redetermines the roles of other visible entities relative to member entity A based on the directed relationship path. In a family scenario, a preceding entity with a parent-child or parent-child relationship can be displayed as the father or mother, another composite member as the spouse, and subsequent entities as children. In other relationship graphs, organizational roles, project roles, or knowledge-related roles are generated according to the corresponding role mapping rules.
[0069] like Figure 6 As shown, after a user triggers associated entity C, the system uses associated entity C as the new central entity and marks it as the current entity, recalculating the roles of other visible entities relative to associated entity C. In a family scenario, two members in a complex relationship can be displayed as father and mother relative to associated entity C, respectively; predecessor entities can be displayed as grandparents, and siblings can be displayed as siblings. When any other entity is triggered again, the system continues to recalculate the relative roles using the newly triggered entity as the central entity. This view switching does not require moving associated entity C to the geometric center of the canvas; the system can maintain the original hierarchy and node coordinates, only updating the selected state and relative roles, thereby reducing view jumps.
[0070] like Figure 7As shown, dimension crossing points can be collapsed and displayed on single or composite nodes under normal conditions. In response to node trigger operations for dimension crossing points, the system expands the candidate target relationship dimensions corresponding to the carrying entity. After the user selects a target relationship dimension, the system queries the entity-dimension index based on the global entity identifier of the carrying entity and the target dimension identifier, locates the projected entity of the entity in the target relationship dimension, and uses the projected entity as the central entity to generate the target view corresponding to the single-entity perspective. Therefore, after crossing dimensions, the same entity is still used as the first perspective reference, and the relative roles of other related entities are dynamically determined with the new relationship dimension and the central entity.
[0071] Figures 4 to 7 The dashed boxes, arrows, hierarchy lines, and collapse markers in the text are all used to illustrate interactive objects, data ranges, and view switching relationships. They belong to the display content that can be adjusted according to the interface design and do not change the data processing relationships between individual nodes, composite nodes, dimension crossing points, unified view commands, and relative role recalculations.
[0072] Let the baseline ordinate of the member layer be... The level number is The interlayer spacing is Then the first The ordinate of each display node can be represented as:
[0073] In the formula, Indicates the first The vertical coordinate of each display node. Represents the baseline ordinate of the member level. This indicates the hierarchy number of the displayed node. Indicates the vertical spacing between adjacent layers; , and The unit is pixels (px). The older generation can be used... Member layer can be taken Children's level can take .
[0074] The horizontal width occupied by a family branch is calculated based on the width and minimum spacing of the nodes displayed on the same level within the branch. For a family branch containing several nodes displayed on the same level, its occupied width is:
[0075] In the formula, Indicates family branches The width occupied, Indicates the first The width of each display node, This indicates the number of nodes displayed at the same level. Indicates the minimum spacing between adjacent display nodes; , and The unit is pixels (px).
[0076] Centered on the horizontal coordinate of the layout anchor point of the family branch, its initial occupied range is represented as follows:
[0077] In the formula, and Representing family branches The left and right boundaries of the initially occupied interval, Indicates family branches The horizontal coordinate of the layout anchor point; , and The unit is pixels (px).
[0078] The system sequentially checks adjacent family branches according to the sorting identifier of the composite relationship records. If the previous family branch... right boundary With the latter family branch left boundary If the distance between them is less than the minimum spacing, then the horizontal translation amount of the next family branch is:
[0079] In the formula, Indicates the latter family branch Translation along the horizontal direction Indicates the previous family branch The right boundary, Indicates family branches The left boundary, Indicates the minimum spacing; , , and All units are pixels (px). After the translation is completed, the system adds branches synchronously. The inner display shows the x-coordinates of the nodes and the anchor points connecting the relationship edges.
[0080] When the total width of the target sub-image exceeds the visible area, the system can first complete the logical layout according to the above rules, and then calculate the scaling ratio to adapt to the canvas; a lower limit is set for the scaling ratio to ensure that the character names are still readable. If the sub-image cannot be fully displayed after exceeding the lower limit, the canvas retains the ability to pan and browse, and prioritizes ensuring that the central member and the currently triggered family branch are within the visible area.
[0081] To avoid destroying and rebuilding all graphical objects with each switch, the system uses global entity identifiers as rendering identifiers for individual nodes, composite relationship identifiers as rendering identifiers for composite nodes, and relationship identifiers as rendering identifiers for relationship edges. The current view and the target view output the set of node identifiers and the set of relationship edge identifiers, respectively.
[0082] Suppose that the current view and the target view have corresponding sets of nodes and sets of relation edges, respectively. Then the common set of nodes, the set of deleted nodes, the set of added nodes, and the corresponding set of relation edges are:
[0083]
[0084] In the formula, and These represent the set of nodes and the set of relation edges in the current view, respectively. and These represent the set of nodes and the set of relation edges in the target view, respectively. , and These represent the common set of nodes, the set of deleted nodes, and the set of newly added nodes, respectively. , and These represent the common set of relation edges, the set of relation edges deleted, and the set of relation edges newly added, respectively; (symbols) The sign indicates the intersection, and the minus sign indicates the set difference operation.
[0085] The system retains rendered objects in the public collection, updating only their display position, character labels, or styles; deleting objects from the collection triggers an exit and releases the corresponding graphics resources; adding objects to the collection creates a rendered instance and triggers an entry. Position updates can use a 240ms interpolation animation, with the time unit being milliseconds (ms); on low-performance devices, the animation can be disabled and updates can be performed directly.
[0086] Relationship edge styles can be generated based on the status field in the relationship record. Relationships confirmed or verified by both parties can use solid lines, while relationships awaiting confirmation or originating from special sources can use dashed lines. Styles serve only as a visual encoding of the relationship status and do not change the type or orientation of the relationship record. Nodes can use colored styles when a character is alive and grayscale styles when they are dead.
[0087] Display status and relational semantics are stored separately. Entity lifecycle fields affect node styles, relation confirmation fields affect edge styles, dimension identifiers determine the query scope of relation records, and relative roles are dynamically calculated by the current central entity and the directed relation path. This avoids mistakenly treating color, line type, or canvas coordinates as relational facts.
[0088] The following example illustrates the complete operation of a graph project that simultaneously includes family, classmate, and career dimensions. The family dimension is identified as D01, the classmate dimension as D02, and the career dimension as D03. The entity master records include Zhang Jia (P001), Li Yi (P002), Wang Bing (P003), Zhang Ding (P004), Zhang Wu (P005), Zhang Ji (P006), and Zhou Geng (P007).
[0089] In the family dimension, the members of the marital complex relationship M001 are P001 and P002, the members of the marital complex relationship M002 are P001 and P003, P004 is bound to the family branch M001 through the parent-child or parent-child relationship corresponding to M001, P005 is bound to the family branch M002 through the parent-child or parent-child relationship corresponding to M002, and P006 and P007 are associated with members P001 and P002 respectively through elder relationships.
[0090] In its initial state, the system can display the entire map within the user's permission range in D01, and configure interactive description data for individual nodes such as P001 and P002, and configure composite interactive description data for M001 and M002. P001 also has dimensional projection records of D02 and D03, so the P001 node is accompanied by dimensional crossing points pointing to D02 and D03 respectively.
[0091] After the user triggers the P004 single-entity node, the parsing module generates the target dimension D01, the central entity set {P004}, and the single-entity view type. The subgraph generation module uses P004 as the starting point to search for relationship records that meet the depth limit, recalculates the roles of P001, P002, and other entities relative to P004, and outputs the single-entity target subgraph centered on P004.
[0092] After a user triggers the marriage complex M001, the parsing module generates the target dimension D01, the central entity set {P001, P002}, and the complex's perspective type. The system merges the adjacency sets of P001 and P002, deduplicates them using global entity identifiers, and retains the source bindings. Then, it places both sets of parents into the parent layer, P001 and P002 into the member layer, and P004 and other children bound to M001 into the child layer.
[0093] Since P001 participates in both M001 and M002, the system generates only one shared member node, P001, with P002 and P003 arranged around P001. M001 and M002 each form a family branch, with P004 remaining bound to M001 and P005 remaining bound to M002. The layout module calculates the occupied range of the two family branches; if there is overlap, the family branches are shifted and sorted according to the aforementioned horizontal shift calculation formula.
[0094] When a user triggers a dimension crossing point on P001 pointing to business dimension D03, the event handler prevents the event from continuing to propagate to the single entity node P001. The system saves the center entity, scaling factor, and offset of D01, queries the index entry ((P001,D03),N301), switches to D03, and converts the view to a single entity view centered on P001. When returning to D01, the system restores the previously saved view state.
[0095] In the three operations described above, the front end only reports the matched interactive objects and their interactive description data. The trigger parsing module outputs a unified view instruction in all cases, the subgraph generation module executes different branches based on the view type, and the layout rendering module uniformly receives the target subgraph, layout constraints, and rendering identifier set. Therefore, the interaction entry point remains consistent, while the graph calculation and layout results change depending on the node type.
[0096] A node-triggered view generation system for multidimensional relationship graphs can be deployed on terminal devices or through a client-server collaborative deployment. Terminal devices include at least a processor, memory, display, and input devices; the server can provide graph data storage, index query, permission filtering, and target subgraph calculation, while the client can provide hit detection, view state management, and canvas rendering.
[0097] The data organization module is responsible for adding, querying, and verifying the consistency of entity master records, dimension projection records, relationship records, and composite relationship records, and maintains the entity-dimension index. When adding or modifying a relationship record, the data organization module verifies whether the starting entity, ending entity, and dimension identifier exist; before deleting a dimension projection record, it verifies whether there are still relationship records for that dimension referencing that projection.
[0098] The interaction configuration module generates interactive objects and interactive description data based on entities, composite relationships, and reachable dimensions in the current view, and sets independent hit areas and higher hit priorities for dimension crossing points. The trigger parsing module receives trigger events generated by input devices, determines the hit objects, forms unified view instructions, and performs field integrity checks.
[0099] The subgraph generation module includes an index query unit, a relation traversal unit, a relative role calculation unit, and a composite relation merging unit. The index query unit is responsible for cross-dimensional positioning; the relation traversal unit is responsible for extracting the target subgraph according to relation type, direction, and depth; the relative role calculation unit is responsible for directed relation path matching; and the composite relation merging unit is responsible for merging adjacent member sets, deduplicating displayed nodes, and retaining source bindings.
[0100] The layout rendering module includes a layered constraint unit, an occupied area calculation unit, a collision resolution unit, and a differential refresh unit. The layered constraint unit determines the parent layer, member layer, and child layer; the occupied area calculation unit calculates the branch width based on the node width and minimum spacing; the collision resolution unit translates overlapping branches according to the occupied area; and the differential refresh unit performs retention, deletion, and addition based on the rendering identifier set.
[0101] Each module can be implemented by a software program executed on the same processor, or it can be broken down into multiple services or hardware logic units. Modules communicate with each other through local function calls, inter-process messages, or network interfaces to exchange unified view instructions, target subgraphs, and layout results, as long as they can complete the same data processing and view generation process.
[0102] Data entry can be completed through manual forms, batch import, or intelligent information extraction interfaces. Personnel and relationship information generated by the intelligent information extraction interface first enters a confirmation area; after user confirmation, it is then written to the entity master record and relationship record. This interface is one type of data source and does not change the core processes of node triggering, relationship calculation, and layout rendering.
[0103] For both internal and external sharing scenarios within a family, the system can configure access permissions based on account, role, and dimension. Family administrators can maintain entities and relationships within their family, while ordinary members can view authorized data. Before generating the target subgraph, permission filtering is performed to prevent unauthorized entities and relationships from entering the traversal set and from generating corresponding dimension crossing points.
[0104] When a relationship record is missing a direction, the system marks the relationship as to be completed and does not participate in the relative role derivation of the dependent direction; when a relationship record forms a loop, the access set prevents repeated expansion; when duplicate members appear in the same composite relationship, the system merges the members according to the global entity identifier and records the data verification error; when the target node size has not yet been measured, the layout module uses the preset node width to complete the initial arrangement and re-executes collision detection after the actual size is available.
[0105] If a new node trigger operation is received during the triggering period, the system can cancel the calculation of old target views that have not yet been submitted, or submit only the latest results according to the trigger timestamp. When an index query or relation traversal fails, the current canvas remains unchanged and an error status is returned to avoid displaying incomplete target subgraphs.
[0106] The above implementation separates the basic data and dimensional representation of the same entity through global entity identification and dimensional projection, connects the three types of interactive objects with subsequent calculations through unified view instructions, solves the problem of traceability of relationships after deduplication of composites through source binding, and generates a reproducible target view through deterministic layering and collision resolution rules.
[0107] The above embodiments are merely feasible examples of the present invention. The name of the relation dimension, relation type, traversal depth, node size, layer spacing, animation duration, and display style can all be adjusted according to the application scenario; any variations formed by using equivalent data structures, equivalent triggering protocols, or equivalent layout calculations under the technical concept of the present invention should be protected in conjunction with the claims.
Claims
1. A node-triggered view generation method for a multidimensional relationship graph, characterized in that, include: Obtain multidimensional relationship graph data containing multiple relationship dimensions, configure consistent global entity identifiers for entities in the multidimensional relationship graph data across all relationship dimensions, and establish entity-dimension indexes based on global entity identifiers and dimension identifiers; The current view is generated based on the graph data of the current relationship dimension. The interactive objects in the current view are configured as single nodes, composite nodes or dimension crossing points. Interactive description data is configured for the interactive objects to characterize the interactive object type, associated entities and target relationship dimensions. Among them, a single node is associated with an entity, a composite node is associated with at least two member entities formed based on the same composite relationship, and a dimension crossing point is associated with the carrying entity and the candidate target relationship dimension. Receive node trigger operations for interactive objects, and generate unified view instructions based on the interaction description data of the triggered interactive objects. The unified view instructions include target dimension identifier, central entity set and view type. The view types include single view, composite view and dimension crossing view. The target view is generated according to the unified view command. In the single entity view, the entity associated with the single entity node is used as the central entity. In the composite view, the member entities associated with the composite node are used as the central entity set. In the dimension traversal view, the entity-dimension index is queried according to the global entity identifier of the carrying entity and the target dimension identifier. The projected entity of the carrying entity in the target relationship dimension is used as the central entity, and the target view corresponding to the target relationship dimension is generated.
2. The node-triggered view generation method for a multidimensional relationship graph according to claim 1, characterized in that, Multidimensional relationship graph data includes entity master records, dimension projection records, relationship records, and composite relationship records. Entity master records include global entity identifiers. Dimension projection records include global entity identifiers, dimension identifiers, and node identifiers within the dimension. Relationship records include relationship identifiers, dimension identifiers, relationship type, relationship direction, and global entity identifiers of the starting and ending entities. Composite relationship records include composite relationship identifiers, dimension identifiers, and global entity identifiers of at least two member entities. The entity-dimension index uses the global entity identifier and dimension identifier as query keys and the node identifiers within the dimension as index values.
3. The node-triggered view generation method for a multidimensional relationship graph according to claim 1, characterized in that, Dimension crossing points are configured in the sub-interaction areas of single nodes or composite nodes, and the hit priority of dimension crossing points is higher than that of the single node or composite node that carries the dimension crossing point; when a composite node includes member interaction areas corresponding to each member entity, the hit priority of the member interaction areas is higher than that of the overall interaction area of the composite node; when a node triggers an operation that hits a dimension crossing point, the node's triggered operation is prevented from continuing to propagate to the single node or composite node that carries the dimension crossing point; when a node triggers an operation that hits a member interaction area, the node's triggered operation is prevented from continuing to propagate to the overall interaction area of the composite node.
4. The node-triggered view generation method for a multidimensional relationship graph according to claim 1, characterized in that, Generating the target view corresponding to the single entity perspective includes: taking the central entity as the traversal starting point, generating a single entity target subgraph from the relation records of the target relation dimension according to relation type, relation direction, and preset traversal depth; representing the directed relation path from the central entity to the target entity as a sequence of relation types and relation directions arranged in traversal order, and matching this sequence with preset role mapping rules; when there are multiple directed relation paths between the central entity and the same target entity, first select the target path according to path length, then according to relation priority, and use the role obtained by matching the target path as the relative role of the target entity; after the central entity changes, recalculate the relative roles of each target entity in the single entity target subgraph.
5. The node-triggered view generation method for a multidimensional relationship graph according to claim 1, characterized in that, Also includes: Receive the dimension configuration of the new relationship dimension, assign a dimension identifier to the new relationship dimension, and create a dimension projection record for the existing entity that corresponds to the new relationship dimension and is associated with the same global entity identifier. Update the entity-dimension index without creating the entity master record again. Generate a dimension crossing point based on the dimension projection record of the same global entity identifier that exists outside the current relationship dimension. Before performing dimension crossing, save the current dimension identifier, the central entity set, the canvas scaling ratio and the canvas offset, and restore the saved view state when returning to the current relationship dimension.
6. The node-triggered view generation method for a multidimensional relationship graph according to claim 1, characterized in that, The process of generating the target view corresponding to the composite perspective includes: determining the set of member entities based on the composite relationship identifier, merging the adjacent relationship sets of each member entity, deduplicating adjacent entities according to the global entity identifier, and retaining the source binding information for the deduplicated adjacent entities; the source binding information includes at least the composite relationship identifier, the global entity identifier of the member entity, and the relationship identifier; when the same adjacent entity is associated with two or more member entities, only one display node of the adjacent entity is retained in the composite target subgraph, and multiple sets of source binding information corresponding to each member entity are retained for this display node.
7. The node-triggered view generation method for a multidimensional relationship graph according to claim 6, characterized in that, When the same member entity participates in two or more composite relationships, a shared member node of that member entity is generated in the target subgraph of the composite relationship, and a relationship branch is established for each composite relationship. The associated entities are bound to the corresponding relation branches based on the composite relation identifier or the source member entity identifier, and a preorder relation layer, a member layer, and a postorder relation layer are generated according to the relation role of the associated entity relative to the member entity. The occupancy range of the relation branch is determined based on the node width of the displayed node in each relation branch and the minimum spacing between adjacent displayed nodes. When the occupancy ranges of adjacent relation branches overlap, the later-ordered relation branch is shifted horizontally by the sum of the overlap width and the minimum spacing, and the connection anchor points of the relation edges in that relation branch are updated synchronously.
8. The node-triggered view generation method for a multidimensional relationship graph according to claim 1, characterized in that, Generating the target view includes: using global entity identifiers or composite relationship identifiers as node rendering identifiers, and using relationship identifiers as relationship edge rendering identifiers; determining the common set of nodes, the node deletion set, the node addition set, the common set of relationship edges, the deletion set of relationship edges, and the addition set of relationship edges between the current view and the target view; retaining the rendering objects in the common set and updating their display position or display style, removing the rendering objects in the deletion set, and creating the rendering objects in the addition set.
9. A node-triggered view generation system for a multidimensional relationship graph, characterized in that, It includes a data organization module, an interaction configuration module, a trigger parsing module, a subgraph generation module, and a layout rendering module that are interconnected; The data organization module is used to acquire multidimensional relationship graph data containing multiple relationship dimensions, configure a consistent global entity identifier for entities across all relationship dimensions, and establish an entity-dimension index based on the global entity identifier and dimension identifier. The interaction configuration module is used to generate the current view based on the graph data of the current relationship dimension, configure the interaction objects in the current view as single nodes, composite nodes or dimension crossing points, and configure interaction description data for the interaction objects; The trigger parsing module is used to receive node trigger operations for interactive objects and generate unified view instructions based on the interaction description data of the triggered interactive object, including target dimension identifier, central entity set and view type. The view type includes single view, composite view and dimension crossing view. The subgraph generation module is used to generate a single target subgraph with the entity associated with the single node as the central entity when the view type is a single view; to generate a composite target subgraph with the member entities associated with the composite node as the central entity set when the view type is a composite view; and to query the entity-dimension index based on the global entity identifier of the carrying entity and the target dimension identifier when the view type is a dimension crossing view, so as to locate the projection entity of the carrying entity in the target relation dimension. The layout rendering module is used to generate the corresponding target view based on the target subgraph output by the subgraph generation module.
