'How to set specific point to a node in MSAGL

I'm trying to draw some graph using the Microsoft's MSAGL. Here I have some nodes, but is there a way to set their position using Points?

I need to place up to hundred points to specific places in this picture and let the algorithm to route everything.

For example:

mainGraph = new Microsoft.Msagl.Drawing.Graph("mainGraph");
mainGraph.AddNode(new Node("NODE"));

GViewer1.Graph = mainGraph;

mainGraph.FindNode("NODE").GeometryNode.Center = new Point(10, 10); <- Doesn't do anything.

Am I missing something?



Solution 1:[1]

graph.FindNode("Node0").GeometryNode.Center = new Microsoft.Msagl.Core.Geometry.Point(100, 100);

add Microsoft.Msagl.Core.Geometry

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 ????? ??????