GetNeighbors

List the neighbors of one or more specified nodes.

Example

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

This action returns up to 12 in-neighbors for each of the target nodes grace@example.com and jason@example.com. In-neighbors are source nodes that connect to the specified node.

Parameters

Parameter Description Required
MaxResults The maximum number of neighbors to return for each specified node.  
Sort The sorting method to use for the results.  
SourceIDs The IDs of the source nodes that you want to return out-neighbors for.  
SourceNames The names of the source nodes that you want to return out-neighbors for.  
TargetIDs The IDs of target nodes for which you want to return in-neighbors.  
TargetNames The names of the target nodes that you want to return in-neighbors for.