Reset and set RF nodes/edges synchronously when initialising new working graph
Fix #109 (closed) ; supersedes !175 (closed)
I'm passing the RF instance to initGraph
to avoid resetting the RF nodes/edges asynchronously via workingGraph
and useEffect
.