Graph.add_edges takes any type and shape of Numpy array and casts each to what's called for in Graph._add_edges. If someone wants to be memory-efficient, they would make sure to use arrays of the correct type, but IMHO, most people will be more casual users and not care.
If you're wondering about the inner loop, Cython boils it down to this:
Graph.add_edges
takes any type and shape of Numpy array and casts each to what's called for inGraph._add_edges
. If someone wants to be memory-efficient, they would make sure to use arrays of the correct type, but IMHO, most people will be more casual users and not care.If you're wondering about the inner loop, Cython boils it down to this: