pair_count

Note

This page is a reference documentation. It only explains the function signature, and not how to use it. Please refer to the Habitat Guide and Python API guide (v2.0) for usage.

pair_count(label_count: int) → int[source]

Return the number of pairwise graphs for a given habitat-label count.

Parameters:

label_count – Number of non-background habitat labels.

Returns:

Number of unique unordered label pairs.

Return type:

int