on a scale from 1 (all edges are within modules) to @-1@ (all edges are between modules). This measure allows to compare the output of different algorithms.</p><h2>Example 1: Calculating Modularity<a name="2"></a></h2><p>The next example shows how to detect modularity using the default algorithm:</p><pre class="codeinput">matrix = MatrixFunctions.BLOCK_MATRIX(2,10);
bp = Bipartite(matrix);
bp.plotter.PlotMatrix();
bp.community.Detect();
</pre><pre class="codeoutput">Modularity:
	Used algorithm:             