public override string ToString() { return(String.Format("{0} types, {1} edges, {2}", this.graph.VertexCount, this.graph.EdgeCount, FormatHelper.ToSize(this.Size))); }
public override string ToString() { return(String.Format("{0}\t{1}\t{2:0.0}\t{3}", this.Count, FormatHelper.ToSize(this.Size), this.Gen, this.Name)); }
void populator_NodeAdded(object sender, GleeVertexEventArgs <GcType> args) { args.Node.Attr.Shape = Microsoft.Glee.Drawing.Shape.Box; double gen = args.Vertex.Gen; if (gen > 2) { args.Node.Attr.Fillcolor = Microsoft.Glee.Drawing.Color.LightBlue; } else if (gen > 1) { args.Node.Attr.Fillcolor = Microsoft.Glee.Drawing.Color.LightGoldenrodYellow; } else if (gen >= 0) { args.Node.Attr.Fillcolor = Microsoft.Glee.Drawing.Color.LightPink; } else { args.Node.Attr.Fillcolor = Microsoft.Glee.Drawing.Color.LightSalmon; } // root -> other color if (args.Vertex.Root) { args.Node.Attr.LineWidth = 4; args.Node.Attr.Color = Microsoft.Glee.Drawing.Color.Green; args.Node.Attr.AddStyle(Microsoft.Glee.Drawing.Style.Bold); } // label args.Node.Attr.Label = String.Format("{0}\nc:{1} s:{2}", args.Vertex.Name, args.Vertex.Count, FormatHelper.ToSize(args.Vertex.Size) ); var vgen = args.Vertex.Gen; if (vgen > -1) { args.Node.Attr.Label += String.Format(" g:{0}", vgen); } }