Hi,
Before changing to OpenCl, I could not perform operations with many edges (maybe around thousands) since it would fail the execution (typically at this sort of lines that you indicate).
Then, I installed OpenCL (for windows: OpenCl in Windows 10), and now I can run with many more adges and in faster execution time.
Regards,
Marc