Exemple #1
0
 ///<summary>
 ///</summary>
 ///<param name="graph"></param>
 ///<param name="outputFile"></param>
 public static void WriteAllExceptEdges(Graph graph, string outputFile)
 {
     using (var stream = File.Create(outputFile)) {
         var writer = new SvgGraphWriter(stream, graph)
         {
             Precision   = 4,
             IgnoreEdges = true
         };
         writer.Write();
     }
 }
Exemple #2
0
 ///<summary>
 ///</summary>
 ///<param name="graph"></param>
 ///<param name="outputFile"></param>
 ///<param name="nodeSanitizer"></param>
 ///<param name="attrSanitizer"></param>
 ///<param name="precision"></param>
 public static void Write(Graph graph, string outputFile, Func <string, string> nodeSanitizer, Func <string, string> attrSanitizer, int precision)
 {
     using (var stream = File.Create(outputFile))
     {
         var writer = new SvgGraphWriter(stream, graph)
         {
             Precision     = precision,
             NodeSanitizer = nodeSanitizer ?? (t => t),
             AttrSanitizer = attrSanitizer ?? (t => t)
         };
         writer.Write();
     }
 }