# US 2016/0253389 A1 · Joins and aggregations on massive graphs using large-scale graph processing

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

- Number: US 2016/0253389 A1
- Document ID: US20160253389A1
- Status: Published application
- Kind: A1
- Application number: 15/056,996
- Filed: 2016-02-29
- Published: 2016-09-01
- Earliest claimed: 2015-02-27
- Assignees: Linkedln Corporation
- Applicants: Linkedln Corporation
- Inventors: Srinivas S. Vemuri; Wenlei Xie; Suvodeep Pyne; Vinitha Reddy Gankidi; Maneesh Varshney; Mitul Tiwari
- Web page: https://patentgrep.com/patent/US20160253389A1

## CPC

- G06F 16/24554: {Unary operations; Data partitioning operations}
- G06F 16/2456: {Join operations}
- G06F 16/9024: {Graphs; Linked lists (G06F16/9027 takes precedence)}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

This disclosure is directed to large-scale graph processing to determine second-degree connections for members of a social network. A social graph is duplicated into two graphs, where each of the two graphs are partitioned into various partitions. The partitions are each sorted according to a predetermined key selected from each of the graphs. The partitions are then assigned logical Work Units, where a first set of Work Units are determined from a first graph and second set of Work Units are determined from a second graph. The Work Units are determined to be asymmetrical such that the partitions of the first set of Work Units are assigned differently than the partitions of the second set of Work Units. One set of Work Units are loaded in-memory and another set of Work Units are streamed to a mapping module process, which determines the second-degree connections from the sets of Work Units.

## Claims

### Claim 1

A system comprising:
a machine-readable medium storing computer-executable instructions; and
at least one hardware processor communicatively coupled to the machine-readable medium that, when the computer-executable instructions are executed, configures the system to:
retrieve a social graph for a social networking service, the social graph including a first plurality of nodes corresponding to members of the social networking service and a first plurality of edges connecting the first plurality of nodes;
partition the first plurality of nodes into a first plurality of partitions, the first plurality of partitions being determined according to a source key associated with the first plurality of nodes;
partition the first plurality of nodes into a second plurality of partitions, the second plurality of partitions being determined according to a destination key associated with the first plurality of nodes;
assign each of the first plurality of partitions to a work unit of a first plurality of work units, wherein the first plurality of work units are determined according to a constraint on computing resources;
assign each of the second plurality of partitions to a work unit of a second plurality of work units; and
determine a second plurality of nodes from the social graph using at least one pair of work units constructed from a first work unit selected from the first plurality of work units and a second work unit selected from the second plurality of work units, the second plurality of nodes including at least one node representing a second-degree connection for a member of the social networking service.

### Claim 2 (depends on 1)

The system of claim 1, wherein a number of partitions assigned to a work unit selected from the first plurality of work units is less than the number of partitions assigned to a work unit selected from the second plurality of work units.

### Claim 3 (depends on 1)

The system of claim 1, wherein each of the first plurality of work units are assigned a unique set of partitions selected from the first plurality of partitions.

### Claim 4 (depends on 1)

The system of claim 1, wherein each of the second plurality of work units are assigned a unique set of partitions selected from the second plurality of partitions.

### Claim 5 (depends on 1)

The system of claim 1, wherein a work unit selected from the first plurality of work units is entirely loaded into a volatile memory of the system and a paired work unit from the second plurality of work units is streamed into the volatile memory for determining the second plurality of nodes.

### Claim 6 (depends on 1)

The system of claim 1, wherein the determination of the second plurality of nodes includes performing a hash join operation with the partitions assigned to the first work unit and the partitions assigned to the second work unit.

### Claim 7 (depends on 1)

The system of claim 1, wherein the constraint on computing resources is an amount of available volatile memory.

### Claim 8

A method comprising:
retrieving, by at least one hardware processor, a social graph for a social networking service, the social graph including a first plurality of nodes corresponding to members of the social networking service and a first plurality of edges connecting the first plurality of nodes;
partitioning, by at least one hardware processor, the first plurality of nodes into a first plurality of partitions, the first plurality of partitions being determined according to a source key associated with the first plurality of nodes;
partitioning, by at least one hardware processor, the first plurality of nodes into a second plurality of partitions, the second plurality of partitions being determined according to a destination key associated with the first plurality of nodes;
assigning, by at least one hardware processor, each of the first plurality of partitions to a work unit of a first plurality of work units, wherein the first plurality of work units are determined according to a constraint on computing resources;
assigning, by at least one hardware processor, each of the second plurality of partitions to a work unit of a second plurality of work units; and
determining, by at least one hardware processor, a second plurality of nodes from the social graph using at least one pair of work units constructed from a first work unit selected from the first plurality of work units and a second work unit selected from the second plurality of work units, the second plurality of nodes including at least one node representing a second-degree connection for a member of the social networking service.

### Claim 9 (depends on 8)

The method of claim 8, wherein a number of partitions assigned to a work unit selected from the first plurality of work units is less than the number of partitions assigned to a work unit selected from the second plurality of work units.

### Claim 10 (depends on 8)

The method of claim 8, wherein each of the first plurality of work units are assigned a unique set of partitions selected from the first plurality of partitions.

### Claim 11 (depends on 8)

The method of claim 8, wherein each of the second plurality of work units are assigned a unique set of partitions selected from the second plurality of partitions.

### Claim 12 (depends on 8)

The method of claim 8, wherein a work unit selected from the first plurality of work units is entirely loaded into a volatile memory of the system and a paired work unit from the second plurality of work units is streamed into the volatile memory for determining the second plurality of nodes.

### Claim 13 (depends on 8)

The method of claim 8, wherein the determination of the second plurality of nodes includes performing a hash join operation with the partitions assigned to the first work unit and the partitions assigned to the second work unit.

### Claim 14 (depends on 8)

The method of claim 8, wherein the constraint on computing resources is an amount of available volatile memory.

### Claim 15

A machine-readable medium storing computer-executable instructions that, when executed by at least one hardware processor, causes a system to perform a plurality of operations, the plurality of operations comprising:
retrieving a social graph for a social networking service, the social graph including a first plurality of nodes corresponding to members of the social networking service and a first plurality of edges connecting the first plurality of nodes;
partitioning the first plurality of nodes into a first plurality of partitions, the first plurality of partitions being determined according to a source key associated with the first plurality of nodes;
partitioning the first plurality of nodes into a second plurality of partitions, the second plurality of partitions being determined according to a destination key associated with the first plurality of nodes;
assigning each of the first plurality of partitions to a work unit of a first plurality of work units, wherein the first plurality of work units are determined according to a constraint on computing resources;
assigning each of the second plurality of partitions to a work unit of a second plurality of work units; and
determining a second plurality of nodes from the social graph using at least one pair of work units constructed from a first work unit selected from the first plurality of work units and a second work unit selected from the second plurality of work units, the second plurality of nodes including at least one node representing a second-degree connection for a member of the social networking service.

### Claim 16 (depends on 15)

The machine-readable medium of claim 15, wherein a number of partitions assigned to a work unit selected from the first plurality of work units is less than the number of partitions assigned to a work unit selected from the second plurality of work units.

### Claim 17 (depends on 15)

The machine-readable medium of claim 15, wherein each of the first plurality of work units are assigned a unique set of partitions selected from the first plurality of partitions.

### Claim 18 (depends on 15)

The machine-readable medium of claim 15, wherein a work unit selected from the first plurality of work units is entirely loaded into a volatile memory of the system and a paired work unit from the second plurality of work units is streamed into the volatile memory for determining the second plurality of nodes.

### Claim 19 (depends on 15)

The machine-readable medium of claim 15, wherein the determination of the second plurality of nodes includes performing a hash join operation with the partitions assigned to the first work unit and the partitions assigned to the second work unit.

### Claim 20 (depends on 15)

The machine-readable medium of claim 15, wherein the constraint on computing resources is an amount of available volatile memory
