示例#1
0
 /// <summary>
 /// Raises the <see cref="FormatCluster"/> event.
 /// </summary>
 /// <param name="cluster"></param>
 protected virtual void OnFormatCluster(IVertexAndEdgeListGraph cluster)
 {
     if (FormatCluster != null)
     {
         FormatClusterEventArgs args =
             new FormatClusterEventArgs(cluster, new GraphvizGraph());
         FormatCluster(this, args);
         string s = args.GraphFormat.ToDot();
         if (s.Length != 0)
         {
             Output.WriteLine(s);
         }
     }
 }
示例#2
0
 void renderer_FormatCluster(object sender, FormatClusterEventArgs e)
 {
     throw new Exception("The method or operation is not implemented.");
 }
 /// <summary>
 /// Raises the <see cref="FormatCluster"/> event.
 /// </summary>
 /// <param name="cluster"></param>
 protected virtual void OnFormatCluster(IVertexAndEdgeListGraph cluster)
 {
     if (FormatCluster!=null)
     {
         FormatClusterEventArgs args =
             new FormatClusterEventArgs(cluster, new GraphvizGraph());
         FormatCluster(this,args);
         string s=args.GraphFormat.ToDot();
         if (s.Length!=0)
             Output.WriteLine(s);
     }
 }