Beispiel #1
0
        public static void Show(IDotSerializeable graph)
        {
            var name = _generateFilename(graph);

            File.WriteAllText(name + EXTENSION, graph.DotFullRepr);
            Process.Start(Config.DOTTYPATH, name + EXTENSION);
        }
        public static string Envelope(this IDotSerializeable s, string name = null)
        {
            var preface = ((s.IsDirectional) ? "digraph " : "graph ") + generateName() + " {\n";

            return(preface + s.DotNodes + "\n}");
        }