diplomat.utils.frame_store_api.edge_list

diplomat.utils.frame_store_api.edge_list(lister: list)[source]

Normalizes a list of graph edges. It does so by ordering edges so the node with the lower index goes first, removing duplicates, and then sorting the final list of edges.

Parameters:

lister – A list of tuples, each tuple container 2 integers. Each integer is the index of a node.

Returns:

A list of tuples, each tuple with 2 integers, the normalized edge list.