In ShapeGraph.gen_major_components the allocation of neighbours in the form of integers couples is problematic, because when hundreds of thousand of nodes are considered memory is easily filled up in the process.
This solution is equivalent to the previous code, but doesn't need any memory occupation.
In
ShapeGraph.gen_major_components
the allocation of neighbours in the form of integers couples is problematic, because when hundreds of thousand of nodes are considered memory is easily filled up in the process. This solution is equivalent to the previous code, but doesn't need any memory occupation.