Graph initialize/generation moved to c# code