move determinGraphs as static method on Root model