# US 2021/0240506 A1 · Traversing a large connected component on a distributed file-based data structure

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2021/0240506 A1
- Document ID: US20210240506A1
- Status: Published application
- Kind: A1
- Application number: 16/777,834
- Filed: 2020-01-30
- Published: 2021-08-05
- Earliest claimed: 2020-01-30
- Assignees: Walmart Apollo, LLC
- Applicants: Walmart Apollo, LLC
- Inventors: Saigopal Thota; Mridul Jain; Albin Kuruvilla; Pruthvi Raj Eranti; Antriksh Shah
- Web page: https://patentgrep.com/patent/US20210240506A1

## CPC

- G06F 9/45558: {Hypervisor-specific management and integration aspects}
- G06F 16/9024: {Graphs; Linked lists (G06F16/9027 takes precedence)}
- G06F 9/3891: {organised in groups of units sharing resources, e.g. clusters}
- G06F 9/5038: {considering the execution order of a plurality of tasks, e.g. taking priority or time dependency constraints into consideration (scheduling strategies G06F9/4881 and subgroups)}
- G06F 16/907: Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
- G06F 2009/4557: {Distribution of virtual machine instances; Migration and load balancing}
- G06F 2009/45575: {Starting, stopping, suspending or resuming virtual machine instances}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A distributed system including multiple processing nodes. The distributed system can perform certain acts. The acts can include receiving a set of input nodes and a set of criteria. The acts can include obtaining an adjacency list representing a large connected component. The large connected component can include nodes, edges, and edge metadata. A quantity of the nodes of the large connected component can exceed 1 billion. The adjacency list can be distributed across the multiple processing nodes. The nodes of the large connected component can include the input nodes. The acts also can include performing one or more iterations of traversing the large connected component until a stopping condition is satisfied. Each iteration can include processing a set of input nodes at the multiple processing nodes using the set of criteria to generate first data at the multiple processing nodes, determining a set of output nodes such that each output node of the set of output nodes is one hop from a respective input node of the set of input nodes, consolidating the first data from the multiple processing nodes to a first processing node of the multiple processing nodes, processing the first data at the first processing node; and assigning the set of input nodes for a subsequent iteration of the one or more iterations based on the set of output nodes when the stopping condition is not satisfied. The acts further can include outputting second data based on the first data received and processed at the first processing node during the one or more iterations. Other embodiments are disclosed.

## Claims

### Claim 1

A distributed system comprising:
multiple processing nodes,
wherein the distributed system is configured to perform:
receiving a set of input nodes and a set of criteria;
obtaining an adjacency list representing a large connected component, wherein the large connected component comprises nodes, edges, and edge metadata, wherein a quantity of the nodes of the large connected component exceeds 1 billion, wherein the adjacency list is distributed across the multiple processing nodes, and wherein the nodes of the large connected component comprises the input nodes;
performing one or more iterations of traversing the large connected component until a stopping condition is satisfied, by, for each of the one or more iterations:
processing a set of input nodes at the multiple processing nodes using the set of criteria to generate first data at the multiple processing nodes;
determining a set of output nodes such that each output node of the set of output nodes is one hop from a respective input node of the set of input nodes;
consolidating the first data from the multiple processing nodes to a first processing node of the multiple processing nodes;
processing the first data at the first processing node; and
assigning the set of input nodes for a subsequent iteration of the one or more iterations based on the set of output nodes when the stopping condition is not satisfied; and
outputting second data based on the first data received and processed at the first processing node during the one or more iterations.

### Claim 2 (depends on 1)

The distributed system of claim 1, wherein the set of criteria comprises at least one of:
a set of node criteria; or
a set of edge criteria.

### Claim 3 (depends on 1)

The distributed system of claim 1, wherein each of the multiple processing nodes of the distributed system is a respective virtual machine.

### Claim 4 (depends on 1)

The distributed system of claim 1, wherein the edge metadata comprises a respective confidence score associated with each of the edges.

### Claim 5 (depends on 1)

The distributed system of claim 1, wherein the edge metadata comprises a weight associated with each of the edges.

### Claim 6 (depends on 1)

The distributed system of claim 1, wherein:
the set of criteria comprises a depth limit;
the stopping condition is satisfied when a quantity of the one or more iterations equals the depth limit; and
the stopping condition is satisfied when the set of input nodes is empty for an iteration of the one or more iterations.

### Claim 7 (depends on 1)

The distributed system of claim 1, wherein processing the set of input nodes at the multiple processing nodes further comprises:
filtering the input nodes based on a set of node criteria of the set of criteria.

### Claim 8 (depends on 7)

The distributed system of claim 7, wherein determining the set of output nodes further comprises:
applying a set of edge criteria of the set of criteria to determine the set of output nodes.

### Claim 9 (depends on 8)

The distributed system of claim 8, wherein filtering the input nodes and applying the set of edge criteria to determine the set of output nodes are performed using a map function of a map-reduce framework.

### Claim 10 (depends on 9)

The distributed system of claim 9, wherein consolidating the first data from the multiple processing nodes to the first processing node and processing the first data at the first processing node are performed using a reduce function of the map-reduce framework.

### Claim 11

A method comprising:
receiving a set of input nodes and a set of criteria;
obtaining an adjacency list representing a large connected component, wherein the large connected component comprises nodes, edges, and edge metadata, wherein a quantity of the nodes of the large connected component exceeds 1 billion, wherein the adjacency list is distributed across multiple processing nodes of a distributed system, and wherein the nodes of the large connected component comprise the input nodes;
performing one or more iterations of traversing the large connected component until a stopping condition is satisfied, by, for each of the one or more iterations:
processing a set of input nodes at the multiple processing nodes using the set of criteria to generate first data at the multiple processing nodes;
determining a set of output nodes such that each output node of the set of output nodes is one hop from a respective input node of the set of input nodes;
consolidating the first data from the multiple processing nodes to a first processing node of the multiple processing nodes;
processing the first data at the first processing node; and
assigning the set of input nodes for a subsequent iteration of the one or more iterations based on the set of output nodes when the stopping condition is not satisfied; and
outputting second data based on the first data received and processed at the first processing node during the one or more iterations.

### Claim 12 (depends on 11)

The method of claim 11, wherein the set of criteria comprises at least one of:
a set of node criteria; or
a set of edge criteria.

### Claim 13 (depends on 11)

The method of claim 11, wherein each of the multiple processing nodes of the distributed system is a respective virtual machine.

### Claim 14 (depends on 11)

The method of claim 11, wherein the edge metadata comprises a respective confidence score associated with each of the edges.

### Claim 15 (depends on 11)

The method of claim 11, wherein the edge metadata comprises a weight associated with each of the edges.

### Claim 16 (depends on 11)

The method of claim 11, wherein:
the set of criteria comprises a depth limit;
the stopping condition is satisfied when a quantity of the one or more iterations equals the depth limit; and
the stopping condition is satisfied when the set of input nodes is empty for an iteration of the one or more iterations.

### Claim 17 (depends on 11)

The method of claim 11, wherein processing the set of input nodes at the multiple processing nodes further comprises:
filtering the input nodes based on a set of node criteria of the set of criteria.

### Claim 18 (depends on 17)

The method of claim 17, wherein determining the set of output nodes further comprises:
applying a set of edge criteria of the set of criteria to determine the set of output nodes.

### Claim 19 (depends on 18)

The method of claim 18, wherein filtering the input nodes and applying the set of edge criteria to determine the set of output nodes are performed using a map function of a map-reduce framework.

### Claim 20 (depends on 19)

The method of claim 19, wherein consolidating the first data from the multiple processing nodes to the first processing node and processing the first data at the first processing node are performed using a reduce function of the map-reduce framework.
