Пример #1
0
        public static void ToGraphML(Graph graph, string path, CustomStyle custom)
        {
            File.Delete(path);

            using (FileStream fstream = File.OpenWrite(path))
            {
                GraphMLFileFormat ml = new GraphMLFileFormat(graph, new StreamWriter(fstream), custom);

                ml.Generate();

                fstream.Close();
            }
        }
Пример #2
0
 /// <summary>
 /// Serializes the graph contents to a GraphML file
 /// </summary>
 /// <param name="path">The path to store the file in</param>
 /// <param name="custom">Custom display style information to apply to the serializer</param>
 public void ToGraphML(string path, CustomStyle custom)
 {
     GraphSerializer.ToGraphML(this, path, custom);
 }
Пример #3
0
 public GraphFileFormat(Graph graph, StreamWriter writer, CustomStyle custom)
 {
     this.graph  = graph;
     this.writer = writer;
     this.custom = custom;
 }
Пример #4
0
 public GraphMLFileFormat(Graph graph, StreamWriter writer, CustomStyle custom)
     : base(graph, writer, custom)
 {
 }