def compute_number_edges ( function ) : n = 0 for node in function . nodes : n += len ( node . sons ) return n
python number of edges in a set of nodes
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