Use the offset indices pattern to avoid keeping separate arrays for the offset of a vertex's neighbors and the number of neighbors. This gave a 9% speedup for the conversion, from 42.9 ms to 39.3 ms.
Use the offset indices pattern to avoid keeping separate arrays for the offset of a vertex's neighbors and the number of neighbors. This gave a 9% speedup for the conversion, from 42.9 ms to 39.3 ms.