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(); } }
/// <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); }
public GraphFileFormat(Graph graph, StreamWriter writer, CustomStyle custom) { this.graph = graph; this.writer = writer; this.custom = custom; }
public GraphMLFileFormat(Graph graph, StreamWriter writer, CustomStyle custom) : base(graph, writer, custom) { }