In iGraph, anytime you have a cover and obtain a membership, that operation is computationally expensive. In the calculation of some of our metrics (i.e. Expansion) we are repeatedly getting the membership within loops. The solution is to take the membership calculation and store it in a variable outside of the loop. The speedup should be considerable.
In iGraph, anytime you have a cover and obtain a membership, that operation is computationally expensive. In the calculation of some of our metrics (i.e. Expansion) we are repeatedly getting the membership within loops. The solution is to take the membership calculation and store it in a variable outside of the loop. The speedup should be considerable.