Exemplo n.º 1
0
        public static void FormatGraph(object sender, QuickGraph.Algorithms.Graphviz.FormatVertexEventArgs args)
        {
            MyVertex o = (MyVertex)args.Vertex;

            args.VertexFormatter.Label = o.Name;
            args.VertexFormatter.Shape = NGraphviz.Helpers.GraphvizVertexShape.Ellipse;
        }
Exemplo n.º 2
0
 private void algo_FormatVertex(object sender, FormatVertexEventArgs e)
 {
     e.VertexFormatter.Label = e.Vertex.ToString();
     if (e.Vertex is IPlace)
     {
         e.VertexFormatter.Shape = GraphvizVertexShape.Circle;
     }
     else if (e.Vertex is Transition)
     {
         e.VertexFormatter.Shape = GraphvizVertexShape.Box;
     }
 }