# US 2017/0288990 A1 · Graph data representation and pre-processing for efficient parallel search tree traversal

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

- Number: US 2017/0288990 A1
- Document ID: US20170288990A1
- Status: Published application
- Kind: A1
- Application number: 15/090,071
- Filed: 2016-04-04
- Published: 2017-10-05
- Earliest claimed: 2016-04-04
- Assignees: International Business Machines Corporation
- Applicants: International Business machines Corporation
- Inventors: Kubilay Atasu; Silvio Dragone; Christoph Hagleitner; Robert R. McCune
- Web page: https://patentgrep.com/patent/US20170288990A1

## CPC

- G06F 16/9027: {Trees}
- G06F 16/9024: {Graphs; Linked lists (G06F16/9027 takes precedence)}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

One or more embodiments may provide the capability to enumerate maximal cliques of graph data by constructing and traversing a search tree through a single sequential pass on an adjacency list. The adjacency list may be generated so as to enable the at least one maximal clique to be generated in one single sequential pass.

## Claims

### Claim 1

A computer-implemented method for clique enumeration of graph data, the method comprising:
receiving, using a processor system, data representing a graph comprising a plurality of nodes and a plurality of edges connecting at least some of the nodes;
generating, using the processor system at least one adjacency list specifying nodes that are neighbors of a node based on the received data representing the graph; and
generating, based on the at least one adjacency list, at least one maximal clique, wherein the at least one maximal clique specifies at least one set of nodes in which every node is connected to every other node and to which no additional node can be added with every node still being connected to every other node.

### Claim 2 (depends on 1)

The method of claim 1, wherein the at least one maximal clique is generated by constructing and traversing a search tree through a single sequential pass on the at least one adjacency list.

### Claim 3 (depends on 2)

The method of claim 2, wherein the at least one adjacency list is generated so as to enable the at least one maximal clique to be generated in one single sequential pass.

### Claim 4 (depends on 2)

The method of claim 2, wherein the at least one maximal clique is generated by:
for each adjacency list of a root node, generating a first child set and a non-first child set, wherein each first child set and a non-first child set comprises a first set of chosen nodes, a second set of nodes that may be chosen, and a third set of nodes that cannot be chosen;
repeating until no first child sets and no non-first child sets remain:
selecting a first child set or a non-first child set of a selected node that is a neighbor of the root node;
attempting to generate a new first child set for the selected node by moving at least one node from the second set of nodes to the first set of nodes;
attempting to generate a new non-first child set for the selected node by moving at least one node from the second set of nodes to the third set of nodes; and
when a new first child set or a new non-first child set is generated in which both the second set of nodes and the third set of nodes are empty, outputting the first set of nodes as a maximal clique.

### Claim 5 (depends on 4)

The method of claim 4, wherein the at least one adjacency list is generated by:
generating for a node, a set of nodes including the node and all neighboring nodes;
generating an ordering of the set of nodes including the node and all neighboring nodes by performing a breadth-first search on the data representing the graph by selecting neighbors of nodes that have already been selected; and
reordering nodes in the at least one adjacency list based on the generated ordering of the set of nodes.

### Claim 6 (depends on 2)

The method of claim 2, wherein the at least one maximal clique is generated by:
for each adjacency list of a root node, generating a first child set of nodes of the same level as the root node, a non-first child set of nodes of the same level as the root node, a first child set of nodes of the next level from the root node, a non-first child set of nodes of the next level from the root node, wherein each first child set and a non-first child set comprises a first set of chosen nodes, a second set of nodes that may be chosen, and a third set of nodes that cannot be chosen;
repeating until no first child sets and no non-first child sets remain:
selecting a first child set or a non-first child set of a selected node that is a neighbor of the root node, wherein when the level of the selected node is the same as the level of the root node, the first child set of nodes of the same level as the root node and the non-first child set of nodes of the same level as the root node are selected from, and when the level of the selected node is the next level from the level of the root node, the first child set of nodes of the next level from the root node and the non-first child set of nodes of the next level from the root node are selected from;
attempting to generate a new first child set for the selected node by moving at least one node from the second set of nodes to the first set of nodes;
attempting to generate a new non-first child set for the selected node by moving at least one node from the second set of nodes to the third set of nodes; and
when a new first child set or a new non-first child set is generated in which both the second set of nodes and the third set of nodes are empty, outputting the first set of nodes as a maximal clique.

### Claim 7 (depends on 6)

The method of claim 6, wherein the at least one adjacency list is generated by:
generating for a node, a set of nodes including the node and neighboring nodes that are of the same level of the node or are of the next level from the node, and not including neighboring nodes of an earlier level or neighboring nodes of the same level but having an earlier ordering;
generating an ordering of the set of nodes including the node and neighboring nodes by performing a breadth-first search on the data representing the graph by selecting neighbors of nodes that have already been selected; and
reordering nodes in the at least one adjacency list based on the generated ordering of the set of nodes.

### Claim 8

A computer system for clique enumeration of graph data comprising:
a plurality of processing kernels, each processing kernel comprising processing circuitry, input memory configured to store input to the processing kernel, output memory configured to store output from the processing kernel, and a plurality of intermediate memories configured to store intermediate processing data, wherein the processing circuitry is configured to:
receive data representing a graph comprising a plurality of nodes and a plurality of edges connecting at least some of the nodes;
generate at least one adjacency list specifying nodes that are neighbors of a node based on the received data representing the graph; and
generate, based on the at least one adjacency list, at least one maximal clique, wherein the at least one maximal clique specifies at least one set of nodes in which every node is connected to every other node and to which no additional node can be added with every node still being connected to every other node.

### Claim 9 (depends on 8)

The apparatus of claim 8, wherein the at least one maximal clique is generated by constructing and traversing a search tree through a single sequential pass on the at least one adjacency list.

### Claim 10 (depends on 9)

The apparatus of claim 9, wherein the at least one adjacency list is generated so as to enable the at least one maximal clique to be generated in one single sequential pass.

### Claim 11 (depends on 9)

The apparatus of claim 9, wherein the at least one maximal clique is generated by:
for each adjacency list of a root node, generating a first child set and a non-first child set, wherein each first child set and a non-first child set comprises a first set of chosen nodes, a second set of nodes that may be chosen, and a third set of nodes that cannot be chosen;
repeating until no first child sets and no non-first child sets remain:
selecting a first child set or a non-first child set of a selected node that is a neighbor of the root node;
attempting to generate a new first child set for the selected node by moving at least one node from the second set of nodes to the first set of nodes;
attempting to generate a new non-first child set for the selected node by moving at least one node from the second set of nodes to the third set of nodes; and
when a new first child set or a new non-first child set is generated in which both the second set of nodes and the third set of nodes are empty, outputting the first set of nodes as a maximal clique.

### Claim 12 (depends on 11)

The system of claim 11, wherein the at least one adjacency list is generated by:
generating for a node, a set of nodes including the node and all neighboring nodes;
generating an ordering of the set of nodes including the node and all neighboring nodes by performing a breadth-first search on the data representing the graph by selecting neighbors of nodes that have already been selected; and
reordering nodes in the at least one adjacency list based on the generated ordering of the set of nodes.

### Claim 13 (depends on 9)

The system of claim 9, wherein the at least one maximal clique is generated by:
for each adjacency list of a root node, generating a first child set of nodes of the same level as the root node, a non-first child set of nodes of the same level as the root node, a first child set of nodes of the next level from the root node, a non-first child set of nodes of the next level from the root node, wherein each first child set and a non-first child set comprises a first set of chosen nodes, a second set of nodes that may be chosen, and a third set of nodes that cannot be chosen;
repeating until no first child sets and no non-first child sets remain:
selecting a first child set or a non-first child set of a selected node that is a neighbor of the root node, wherein when the level of the selected node is the same as the level of the root node, the first child set of nodes of the same level as the root node and the non-first child set of nodes of the same level as the root node are selected from, and when the level of the selected node is the next level from the level of the root node, the first child set of nodes of the next level from the root node and the non-first child set of nodes of the next level from the root node are selected from;
attempting to generate a new first child set for the selected node by moving at least one node from the second set of nodes to the first set of nodes;
attempting to generate a new non-first child set for the selected node by moving at least one node from the second set of nodes to the third set of nodes; and
when a new first child set or a new non-first child set is generated in which both the second set of nodes and the third set of nodes are empty, outputting the first set of nodes as a maximal clique.

### Claim 14 (depends on 13)

The system of claim 13, wherein the at least one adjacency list is generated by:
generating for a node, a set of nodes including the node and neighboring nodes that are of the same level of the node or are of the next level from the node, and not including neighboring nodes of an earlier level or neighboring nodes of the same level but having an earlier ordering;
generating an ordering of the set of nodes including the node and neighboring nodes by performing a breadth-first search on the data representing the graph by selecting neighbors of nodes that have already been selected; and
reordering nodes in the at least one adjacency list based on the generated ordering of the set of nodes.

### Claim 15

A computer program product for clique enumeration of graph data, the computer program product comprising a non-transitory computer readable storage having program instructions embodied therewith, the program instructions executable by a computer, to cause the computer to perform a method comprising:
generating at least one adjacency list specifying nodes that are neighbors of a node based on the received data representing the graph; and
generating, based on the at least one adjacency list, at least one maximal clique, wherein the at least one maximal clique specifies at least one set of nodes in which every node is connected to every other node and to which no additional node can be added with every node still being connected to every other node.

### Claim 16 (depends on 15)

The computer program product of claim 15, wherein the at least one maximal clique is generated by constructing and traversing a search tree through a single sequential pass on the at least one adjacency list, an, wherein the at least one adjacency list is generated so as to enable the at least one maximal clique to be generated in one single sequential pass.

### Claim 17 (depends on 16)

The computer program product of claim 16, wherein the at least one maximal clique is generated by:
for each adjacency list of a root node, generating a first child set and a non-first child set, wherein each first child set and a non-first child set comprises a first set of chosen nodes, a second set of nodes that may be chosen, and a third set of nodes that cannot be chosen;
repeating until no first child sets and no non-first child sets remain:
selecting a first child set or a non-first child set of a selected node that is a neighbor of the root node;
attempting to generate a new first child set for the selected node by moving at least one node from the second set of nodes to the first set of nodes;
attempting to generate a new non-first child set for the selected node by moving at least one node from the second set of nodes to the third set of nodes; and
when a new first child set or a new non-first child set is generated in which both the second set of nodes and the third set of nodes are empty, outputting the first set of nodes as a maximal clique.

### Claim 18 (depends on 17)

The computer program product of claim 17, wherein the at least one adjacency list is generated by:
generating for a node, a set of nodes including the node and all neighboring nodes;
generating an ordering of the set of nodes including the node and all neighboring nodes by performing a breadth-first search on the data representing the graph by selecting neighbors of nodes that have already been selected; and
reordering nodes in the at least one adjacency list based on the generated ordering of the set of nodes.

### Claim 19 (depends on 18)

The computer program product of claim 18, wherein the at least one maximal clique is generated by:
for each adjacency list of a root node, generating a first child set of nodes of the same level as the root node, a non-first child set of nodes of the same level as the root node, a first child set of nodes of the next level from the root node, a non-first child set of nodes of the next level from the root node, wherein each first child set and a non-first child set comprises a first set of chosen nodes, a second set of nodes that may be chosen, and a third set of nodes that cannot be chosen;
repeating until no first child sets and no non-first child sets remain:
selecting a first child set or a non-first child set of a selected node that is a neighbor of the root node, wherein when the level of the selected node is the same as the level of the root node, the first child set of nodes of the same level as the root node and the non-first child set of nodes of the same level as the root node are selected from, and when the level of the selected node is the next level from the level of the root node, the first child set of nodes of the next level from the root node and the non-first child set of nodes of the next level from the root node are selected from;
attempting to generate a new first child set for the selected node by moving at least one node from the second set of nodes to the first set of nodes;
attempting to generate a new non-first child set for the selected node by moving at least one node from the second set of nodes to the third set of nodes; and
when a new first child set or a new non-first child set is generated in which both the second set of nodes and the third set of nodes are empty, outputting the first set of nodes as a maximal clique.

### Claim 20 (depends on 19)

The computer program product of claim 19, wherein the at least one adjacency list is generated by:
generating for a node, a set of nodes including the node and neighboring nodes that are of the same level of the node or are of the next level from the node, and not including neighboring nodes of an earlier level or neighboring nodes of the same level but having an earlier ordering;
generating an ordering of the set of nodes including the node and neighboring nodes by performing a breadth-first search on the data representing the graph by selecting neighbors of nodes that have already been selected; and
reordering nodes in the at least one adjacency list based on the generated ordering of the set of nodes.
