Method for filtering a graph
Abstract
Provided is a computer-implemented method to extract a subgraph from a graph which is stored with a storage device without prior knowledge of the structure of the graph. The graph represents a network. The subgraph starts from at least one selected node into a selected direction. Each directed edge of the graph is composed of an outgoing edge which is connected to a start node and an incoming edge which is connected to an end node. The subgraph is extracted according to a traversal of the graph starting from the at least one selected node into the selected direction according to a predefined graph traversal protocol.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 12 · Forward citations: 0.
Claims (8)
- Claim 1Independent Claim
A computer-implemented method for extracting a subgraph of a graph the subgraph starting from at least one selected node into a selected direction, wherein the graph represents a network and comprises multiple nodes and multiple directed edges, wherein each directed edge connects a start node and an end node, wherein each directed edge is composed of an incoming edge which is connected to the end node and an outgoing edge which is connected to the start node, wherein each node represents an entity of the network, wherein each directed edge represents a relationship between two entities, the method comprising: recording, by one or more computer processors, each start node in a first record of a first data structure stored within a storage device, and each end node in a second record of the first data structure, wherein each record comprises at least: a combination of a number of first attributes, in which an identifier of a node is stored, a combination of a number of second attributes,
- Claim 2Depends on #1
The method of claim 1, wherein the predefined graph traversal protocol comprises one or more algorithm selected from the group consisting of: a breadth-first search for records comprising nodes which form directed edges with the at least one selected node along the selected direction, and a depth-first search for records comprising nodes which form directed edges with the at least one selected node along the selected direction.
- Claim 3Depends on #2
The method of claim 2, wherein the breadth-first search comprises the following steps: a) identifying, by one or more computer processors, the at least one record of the at least one selected node based on the selected direction and marking one record of the at least one selected record as a current member of the subgraph, b) matching, by one or more computer processors, the value of the combination of the number of second attributes of the second record with the value of the combination of the number of the third attributes of the first record to find at least one record comprising the node which forms the directed edge along the selected direction with the current member of the subgraph and marking, by one or more computer processors, the at least one found record as member of the subgraph, c) repeating step b) for every record found in step b), wherein with repeating step b) each found record is marked as current record, until no further record is found and marking, by one or more c
- Claim 4Depends on #2
The method of claim 2, wherein the depth-first search comprises the following steps: a) identifying, by one or more computer processors, the at least one record of the at least one selected node based on the selected direction and marking, by one or more computer processors, one record of the at least one selected record as a current member of the subgraph, b) matching, by one or more computer processors, the value of the combination of the number of the second attributes of the second record with the value of the combination of the number of the third attributes of the first record to find at least one record comprising the node which forms the directed edge along the selected direction with the current member of the subgraph and marking, by one or more computer processors, the at least one found record as member of the subgraph, c) repeating step b) for one record found in step b), wherein with repeating step b) the one found record is marked, by one or more computer processors, as a
- Claim 5Depends on #1
The method of claim 1, wherein the selected direction is one of a network upstream direction and a network downstream direction, wherein the at least one record of the at least one selected node, in which the unique relationship identifier is assigned to the combination of the number of second attributes, is identified, by one or more computer processors, for the network upstream direction, and the at least one record of the at least one selected node, in which the unique relationship identifier is assigned to the combination of the number of third attributes, is identified, by one or more computer processors, for the network downstream direction.
- Claim 6Depends on #1
The method of claim 1, wherein the network is a process network, wherein the process network comprises two or more process instances of different processes and interactions between process steps of process instances of at least two different processes, wherein each node represents a process step of a process instance and the unique relationship identifier represents a signal between the start node which forms part of a process instance of a first process and the end node which forms part of a process instance of a second process, in particular an output of the start node provided to the end node, and wherein the first data structure further comprises a fourth attribute, in which a sequence of the process steps within a process instance is stored, such that the data structure forms an extended process protocol.
- Claim 7Depends on #6
The method of claim 6, wherein the fourth attribute stores an ordinal value, and wherein a record of the at least one found record is only marked as member of the subgraph if the ordinal value assigned to the fourth attribute of the record is larger than the ordinal value of the current member of the subgraph.
- Claim 8Depends on #7
The method of claim 7, wherein the ordinal value is a timestamp related to the respective process step.
Technical Overview & Description
CROSS-REFERENCE TO RELATED APPLICATIONS This application is a national phase entry of International Patent Application No. PCT/EP2023/053925, filed Feb. 16, 2023, which claims the benefit of EP 22158277.8, filed Feb. 23, 2022, the entire disclosures of which are hereby incorporated herein by reference in their entirety. FIELD OF THE INVENTION The invention relates to a method to filter a graph stored in a storage device. BACKGROUND OF THE INVENTION Networks, in particular directed networks, encode the flow of a system parameter along multiple entities. One example for a network is a supply chain network, wherein the system parameter may be a material or a planned distribution or a combination thereof. Another example for the network is a process network, wherein the system parameter may be an output of a process step, such as a material or a business document or any combination thereof. In a supply chain network, it is crucial to understand how materials and/or goods are flowing and/or how material is planned to be distributed. Material flows and/or planned distributions in supply chain networks fuel various use cases, for instance, estimating which finished goods might be affected due to a raw material shortage or calculating the carbon foot print of a product based on its components, their respective components and so on. These networks can comprise an arbitrary number of plant and material combinations, which are denoted stock keeping units (SKUs) in the following. In a typical scenario of a supply chain network, several SKUs are involved in multiple layers representing different stages in a production phase as well as in the distribution of goods. In practice, both the production and the distribution are often scattered over multiple manufacturers. The layers of SKUs can range from raw materials over partially produced goods to the finished good itself. Due to the various layers between raw materials and the finished good there are usually many SKUs involved whi
Cited By — Indexed Forward Citations (0 of 0 total)
No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.
References Cited — Backward Prior Art (12)
| Patent | Title | Year | Citations |
|---|