networkcommons.methods.compress_same_children

networkcommons.methods.compress_same_children(uncompressed_graph, sig_input, metab_input)

Compresses nodes in the graph that have the same children by relabeling them with a common signature.

Parameters: - graph (networkx.Graph): The input graph. - sig_input (list): List of signatures to exclude from compression. - metab_input (list): List of metadata signatures to exclude from compression.

Returns: - tuple: A tuple containing the compressed subnetwork, node signatures, and duplicated parents.