2

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?

DeadlyHigh
  • 94
  • 8

1 Answers1

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

add Microsoft.Msagl.Core.Geometry