### Connects each node to a given number of nearest neighbor nodes or neighbors within a specified distance.

## Inputs

Name | ID | Description | Type |

**From Points** | FromPts | List of points where connections can originate. | Point |

**To Points** | ToPts | List of points where connections can end. | Point |

**Number of neighbors** | NN | Number of nearest neighbor connections for each 'From Point'. Input -1 if number of neighbors need not to be considered. | Integer |

**Limit distance** | LDist | Limit distance of points to be considered as neighbors for each 'From Point'. Input -1 if distance between neighbors need not to be considered. | Number |

## Outputs

Name | ID | Description | Type |

**Line** | L | Output Lines | Line |

**Connectivity** | C | Output Connectivity | Integer |

**Points** | PTs | Joined list of 'From Points' and 'To Points' which the connectivity information refers to. | Point |