What is the recommended way to create independent copies of the design graph to work with them in different threads? #23
-
In my program, a graph is initialized and then various possibilities are explored. I want to parallelize the exploration and to achieve this I need multiple, independent copies of the design graph. The copies are then modified in different threads. At the moment, I do not care about the modified graphs, so there is no need to return the modified graphs to my main program. What is the recommended way to create the independent copies of the design graph to work (read and write operations) with them in different threads? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
You can use the copy method to create a copy of the current graph
|
Beta Was this translation helpful? Give feedback.
You can use the copy method to create a copy of the current graph
val graph2 = G.copy()