/// <summary>
 /// Initializes a new instance of the <see cref="DataSetGraphvizAlgorithm"/> class.
 /// </summary>
 /// <param name="visitedGraph">Graph to convert to DOT.</param>
 /// <param name="imageType">Target output image type.</param>
 /// <exception cref="T:System.ArgumentNullException"><paramref name="visitedGraph"/> is <see langword="null"/>.</exception>
 public DataSetGraphvizAlgorithm(
     [NotNull] DataSetGraph visitedGraph,
     GraphvizImageType imageType)
     : base(visitedGraph, imageType)
 {
     InitializeFormat();
 }
        public static DataSetGraph ToGraph([NotNull] this DataSet dataSet)
        {
            var graph     = new DataSetGraph(dataSet);
            var populator = new DataSetGraphPopulatorAlgorithm(graph, dataSet);

            populator.Compute();

            return(graph);
        }
        public static string ToGraphviz([NotNull] this DataSetGraph graph)
        {
            var algorithm = new DataSetGraphvizAlgorithm(graph);

            return(algorithm.Generate());
        }
 /// <summary>
 /// Initializes a new instance of the <see cref="DataSetGraphvizAlgorithm"/> class.
 /// </summary>
 /// <param name="visitedGraph">Graph to convert to DOT.</param>
 /// <exception cref="T:System.ArgumentNullException"><paramref name="visitedGraph"/> is <see langword="null"/>.</exception>
 public DataSetGraphvizAlgorithm([NotNull] DataSetGraph visitedGraph)
     : base(visitedGraph)
 {
     InitializeFormat();
 }