build graph c#