Merge "Make LinearizeGraph() public (and move it to nodes files)"