The current data structure is inherited from NetworkX and is key:val pairs of node ID:[x, y]. In the drawing functions, it can be inefficient to draw with a for-loop and in several places, the data structure is converted. I propose that the position be stored as pos = {"ids": np.array(ids), "x": np.array(x), "y": np.array(y)}.
The current data structure is inherited from NetworkX and is key:val pairs of node ID:[x, y]. In the drawing functions, it can be inefficient to draw with a for-loop and in several places, the data structure is converted. I propose that the position be stored as
pos = {"ids": np.array(ids), "x": np.array(x), "y": np.array(y)}
.