he others, and then calculate the modularity:</p><pre class="codeinput"><span class="comment">%Loading the data</span>
load <span class="string">data/moebus_data.mat</span>;
<span class="comment">%default optimization</span>
bp = Bipartite(moebus.weight_matrix &gt; 0);
bp2.community.optimize_by_component = false;
<span class="comment">%sub-graph optimization</span>
bp2 = Bipartite(moebus.weight_matrix &gt; 0);
bp2.community.optimize_by_component = true;
<span class="comment">%visualizing the results:</span>