(graph)
return e / v
Calculates edge / node ratio of a graph.
Calculates edge / node ratio of a graph.
Calculates edge / node ratio of a graph .
def _edge_node_ratio(graph):
    """
    Calculates edge / node ratio of a graph.
    """
    e = graph.number_of_edges()
    v = graph.number_of_nodes()
    return e / v
def _edge_node_ratio ( graph ) : e = graph . number_of_edges ( ) v = graph . number_of_nodes ( ) return e / v