pywhy_graphs.algorithms.find_connected_pairs#
- pywhy_graphs.algorithms.find_connected_pairs(tuples, max_number)[source]#
Find connected pairs of domain tuples.
- Parameters:
tuples : List of tuples
List of tuples of domain ids (i, j).
max_number : int
The maximum number that can be in a domain id.
- Returns:
connected_pairs : set of tuples
Set of domain ids that are connected.