Can I use this parallel iterator pattern with Cython?
问题 With C++11 I have been using the following pattern for implementing a graph data structure with parallel iterators. Nodes are just indices, edges are entries in an adjacency data structure. For iterating over all nodes, a function (lambda, closure...) is passed to a parallelForNodes method and called with each node as an argument. Iteration details are nicely encapsulated in the method. Now I would like to try the same concept with Cython. Cython provides the cython.parallel.prange function