Function to restore R from corresponding flow graph.
Start using graph approach to finding R.

Currently it returns a ErrorNoSolution in case perfectly balanced and
rack aware matrix cannot be found.