Class DotGenerator

java.lang.Object
es.urjc.etsii.grafo.TSP.drawing.DotGenerator

@RestController public class DotGenerator extends Object
  • Constructor Details

  • Method Details

    • generateDotDiagram

      protected static String generateDotDiagram(TSPSolution solution)
      Generate a dot diagram of the solution found
      Parameters:
      solution - solution found
      Returns:
      string of the graphviz dot diagram of the solution
    • getSolutionAsDotString

      @GetMapping("/api/generategraph/{eventId}") public String getSolutionAsDotString(@PathVariable int eventId) throws IOException
      Throws:
      IOException