src/VertexColoring.Graphs/TrivialGraphFormatExtensions.cs
/// <summary>
/// Saves given <paramref name="graph"/> into <paramref name="writer"/> in TGF text representation.
/// </summary>
/// <param name="writer">Writer to save graph to.</param>
/// <param name="graph">Graph to be saved.</param>
Saves given  into  in TGF text representation.
Saves given into in TGF text representation .
public static void WriteGraphAsTgf(this TextWriter writer, Graph graph)
        {
            foreach (var vertex in graph.Vertices)
            {
                writer.WriteLine(vertex.ToString());
            }
            writer.WriteLine("#");
            foreach (var edge in graph.Edges)
            {
                writer.WriteLine(edge.ToString());
            }
        }
public static void WriteGraphAsTgf ( this TextWriter writer , Graph graph ) { foreach ( var vertex in graph . Vertices ) { writer . WriteLine ( vertex . ToString ( ) ) ; } writer . WriteLine ( " " ) ; foreach ( var edge in graph . Edges ) { writer . WriteLine ( edge . ToString ( ) ) ; } }
Saves given  into  in TGF text representation.
Saves given into in TGF text representation .
TextWriter
this
graph
Graph
Graph to be saved.
Graph to be saved .
writer
Writer to save graph to.
Writer to save graph to .