graph construction and basic stats compiles