GetCommonNeighbors

Finds the common neighbors of the nodes that you specify.

The action returns all the neighbors of the nodes you specify, together with a commonality value that indicates how many of your input nodes the neighbor shares. For example, a commonality value of three shows that the listed node is a neighbor of three of your input nodes.

The results return in commonality order (highest to lowest).

Example

http://12.3.4.56:10300/action=GetCommonNeighbors&TargetNames=grace%40example.com,jason%40example.com&MaxResults=12

This action returns up to 12 in-neighbors for the target nodes grace@example.com and jason@example.com, along with information about the neighbors that are common to these two nodes. In-neighbors are source nodes that connect to the specified node.

Parameters

Parameter Description Required
MaxResults The maximum number of results to return.  
MinCommonality The minimum commonality that the results must have.  
SourceIDs The IDs of the source nodes that you want to find neighbors for.  
SourceNames The names of the source nodes that you want to find neighbors for.  
TargetIDs The IDs of the target nodes that you want to find neighbors for.  
TargetNames The names of the target nodes that you want to find neighbors for.