(graph)
return (e - v + 1) / (2 * v - 5)
Calculates meshedness of a graph.
Calculates meshedness of a graph.
Calculates meshedness of a graph .
def _meshedness(graph):
    """
    Calculates meshedness of a graph.
    """
    e = graph.number_of_edges()
    v = graph.number_of_nodes()
    return (e - v + 1) / (2 * v - 5)
def _meshedness ( graph ) : e = graph . number_of_edges ( ) v = graph . number_of_nodes ( ) return ( e - v + 1 ) / ( 2 * v - 5 )