public static void MakeWebpage(GraphPictureMaker maker, string outputPath, bool directed = false, bool showFactors = false, bool lowPlus = false, bool fivePlus = false, bool useLaplacian = false) { maker.Directed = directed; maker.ShowFactors = showFactors; maker.IsLowPlus = lowPlus; maker.IsFivePlus = fivePlus; maker.UseLaplacian = useLaplacian; maker.DrawAllAndMakeWebpage(outputPath); }
public static void MakeWebpage(string graphPath, string outputPath, bool directed = false, bool showFactors = false, bool lowPlus = false, bool fivePlus = false, bool useLaplacian = false) { System.Console.ForegroundColor = ConsoleColor.Blue; System.Console.WriteLine("Building webpage at " + graphPath); var maker = new GraphPictureMaker(graphPath); MakeWebpage(maker, outputPath, directed, showFactors, lowPlus, fivePlus, useLaplacian); System.Console.ForegroundColor = ConsoleColor.White; }
public static void MakePdfs(string graphPath, string outputPath, bool superabundance = false, bool lowPlus = false, bool fivePlus = false, bool useLaplacian = false) { var maker = new GraphPictureMaker(graphPath); maker.InDegreeTerms = superabundance; maker.IsLowPlus = lowPlus; maker.IsFivePlus = fivePlus; maker.DrawAll(outputPath, DotRenderType.pdf); }
public static void MakePicture(int n) { var gs = LoadGraphs("non_crossing" + n + ".txt", n); var gpm = new GraphPictureMaker(gs); gpm.CompressName = false; gpm.UseLaplacian = true; gpm.DrawAllAndMakeWebpage(@"C:\Users\landon\Dropbox\Public\Web\GraphData\NonCrossing\" + n); }
public static void ToWebPage(this IEnumerable <Choosability.Graph> graphs, string relativePath, bool directed = true, bool fivePlus = true, bool useLaplacian = true, bool compressName = true, bool lowPlus = false) { var maker = new GraphPictureMaker(graphs); maker.CompressName = compressName; var path = Path.Combine(@"C:\Users\landon\Dropbox\Public\Web\GraphData", relativePath); MakePictures.MakeWebpage(maker, path, directed: directed, showFactors: false, lowPlus: lowPlus, fivePlus: fivePlus, useLaplacian: useLaplacian); Path.Combine(GraphDataWebRoot, relativePath, "index.html").ToBrowser(); }
public static void ToWebPageSimple(this IEnumerable <Choosability.Graph> graphs, string relativePath, int K = 0) { var maker = new GraphPictureMaker(graphs); maker.NameGraph6 = true; maker.K = K; var path = Path.Combine(@"C:\Users\landon\Dropbox\Public\Web\GraphData", relativePath); MakePictures.MakeWebpage(maker, path, directed: false, showFactors: false, lowPlus: false, fivePlus: false, useLaplacian: false); Path.Combine(GraphDataWebRoot, relativePath, "index.html").ToBrowser(); }
static void MakeNonCon() { var gpm = new GraphPictureMaker("justbads.txt".EnumerateGraph6File()); gpm.DrawAllAndMakeWebpage(@"C:\Users\landon\Dropbox\Public\Web\GraphData\ConNon"); }