static void Main(string[] args) { CTranslationUnit tr = new CTranslationUnit(); CGraph graph = CGraph.CreateGraph(); tr.dipole() .algorithm() .algorithm() .connections() .connection() .GRAPH(graph) .GRAPHELEMENTTYPE(GraphElementType.ET_NODE) .KEY(graph.GetHashCode()) .INFOTYPE(typeof(int)) .end() .end(); }