(graph)
return e - v + 1
Calculates the cyclomatic complexity of a graph.
Calculates the cyclomatic complexity of a graph.
Calculates the cyclomatic complexity of a graph .
def _cyclomatic(graph):
    """
    Calculates the cyclomatic complexity of a graph.
    """
    e = graph.number_of_edges()
    v = graph.number_of_nodes()
    return e - v + 1
def _cyclomatic ( graph ) : e = graph . number_of_edges ( ) v = graph . number_of_nodes ( ) return e - v + 1