Refact graph