public DataSetGraphvizAlgorithm(
     DataSetGraph visitedGraph,
     string path,
     GraphvizImageType imageType
     )
     : base(visitedGraph, path, imageType)
 {
     this.InitializeFormat();
 }
        public static string ToGraphviz(
            this DataSetGraph visitedGraph)
        {
            Contract.Requires(visitedGraph != null);

            var algorithm = new DataSetGraphvizAlgorithm(visitedGraph);

            return(algorithm.Generate());
        }
        public static DataSetGraph ToGraph(
            this DataSet ds)
        {
            Contract.Requires(ds != null);

            var g         = new DataSetGraph(ds);
            var populator = new DataSetGraphPopulatorAlgorithm(g, ds);

            populator.Compute();

            return(g);
        }
 public DataSetGraphvizAlgorithm(DataSetGraph visitedGraph)
     : base(visitedGraph)
 {
     this.InitializeFormat();
 }