Compute the number of edges of the CFG
    Args:
        function (core.declarations.function.Function)
    Returns:
        int

def compute_number_edges(function):
    """
    Compute the number of edges of the CFG
    Args:
        function (core.declarations.function.Function)
    Returns:
        int
    """
    n = 0
    for node in function.nodes:
        n += len(node.sons)
    return n