コード例 #1
0
 private ViewerQueryGraph SampleQueryGraph()
 {
     ViewerQueryGraph vqg = new ViewerQueryGraph(new SubgraphViewerDrawer(this.CreateGraphics()));
     Point p1 = new Point(150, 150);
     Point p2 = new Point(120,270);
     Point p3 = new Point(180, 270);
     vqg.AddNode(p1);
     vqg.AddNode(p2);
     vqg.AddNode(p3);
     vqg.SetLabel(1, "1");
     vqg.SetLabel(2, "1");
     vqg.SetLabel(3, "1");
     vqg.AddEdge(1, 2);
     vqg.AddEdge(1, 3);
     UpdateLabelList();
     return vqg;
 }