# meanWeight¶

meanWeight()
Returns the mean weight of the network, taking only existing edges into account.

## Notes¶

If is the number of nodes and is the number of edges in the network and is the weight of the edge connecting and (and 0, if this edge does not exist), the mean weight of the network is defined as:

## Example (python-conedy)¶

import conedy as co

N = co.network()

N.randomNetwork(100, 0.2, co.node(), co.weightedEdge())

N.randomizeWeights(co.uniform (0.0, 1.5))

print "Should be close to 0.75:" + str(N.meanWeight())


## Example (conedy)¶

network N;

N.randomNetwork(100, 0.2, kuramoto(), weightedEdge());

N.randomizeWeights( uniform (0.0,1.5) );

print "Should be close to 0.75:" + N.meanWeight() + newline ;