public void Write(DotWriter dotWriter)
 {
     dotWriter.WriteAttribute("splines", "ortho");
     foreach (var u in Coins)
     {
         u.Write(dotWriter);
     }
 }
Exemplo n.º 2
0
 public void CreateImage(bool open = true)
 {
     using (var dotWriter = new DotWriter(File.OpenWrite(DotFilePath), false))
     {
         using (dotWriter.WriteGraph(GraphType.Digraph))
         {
             Builder.Write(dotWriter);
         }
     }
     GraphvizExecutable.Generate(DotFilePath, ImageFilePath);
     if (open && File.Exists(ImageFilePath)) // TODO: do something for mac and linux
     {
         Process.Start("explorer.exe", ImageFilePath);
     }
     ImageNumber++;
 }