From a96719fde2f529ca7e7cbab813e5876898db18f8 Mon Sep 17 00:00:00 2001 From: oblonski Date: Thu, 4 Aug 2016 09:34:03 +0200 Subject: [PATCH] update example --- .../java/com/graphhopper/jsprit/examples/SimpleExample.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/jsprit-examples/src/main/java/com/graphhopper/jsprit/examples/SimpleExample.java b/jsprit-examples/src/main/java/com/graphhopper/jsprit/examples/SimpleExample.java index 9c86a2d5..8cf9f200 100644 --- a/jsprit-examples/src/main/java/com/graphhopper/jsprit/examples/SimpleExample.java +++ b/jsprit-examples/src/main/java/com/graphhopper/jsprit/examples/SimpleExample.java @@ -19,6 +19,7 @@ package com.graphhopper.jsprit.examples; import com.graphhopper.jsprit.analysis.toolbox.GraphStreamViewer; import com.graphhopper.jsprit.analysis.toolbox.GraphStreamViewer.Label; +import com.graphhopper.jsprit.analysis.toolbox.Plotter; import com.graphhopper.jsprit.core.algorithm.VehicleRoutingAlgorithm; import com.graphhopper.jsprit.core.algorithm.box.Jsprit; import com.graphhopper.jsprit.core.algorithm.box.SchrimpfFactory; @@ -106,8 +107,11 @@ public class SimpleExample { /* * plot */ -// SolutionPlotter.plotSolutionAsPNG(problem, bestSolution, "output/solution.png", "solution"); + new Plotter(problem,bestSolution).plot("output/plot.png","simple example"); + /* + render problem and solution with GraphStream + */ new GraphStreamViewer(problem, bestSolution).labelWith(Label.ID).setRenderDelay(200).display(); }