void Graphviz_FormatVertex(Object sender, FormatVertexEventArgs <TGraph> e)
        {
            StringWriter sw = new StringWriter();

            sw.WriteLine("{0}-{1}", e.Vertex.VertexCount, e.Vertex.EdgeCount);
            foreach (var v in e.Vertex.Vertices)
            {
                sw.WriteLine("  {0}", v);
            }
            foreach (TEdge edge in e.Vertex.Edges)
            {
                sw.WriteLine("  {0}", edge);
            }
            e.VertexFormatter.Label = this.Graphviz.Escape(sw.ToString());
        }
Exemplo n.º 2
0
 void Graphviz_FormatVertex(Object sender, FormatVertexEventArgs <TVertex> e)
 {
     e.VertexFormatter.Label = e.Vertex.ToString();
 }