def share_common_origin(*args):
    """
    Check if (sub)graphs share the same origin graph based
    on object id.

    :param args: list of graphs
    :rtype:      :py:bool
    """

    return len(set([id(graph.origin) for graph in args])) == 1