Package es.urjc.etsii.grafo.TSP.drawing
Class DotGenerator
java.lang.Object
es.urjc.etsii.grafo.TSP.drawing.DotGenerator
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static String
generateDotDiagram
(TSPSolution solution) Generate a dot diagram of the solution foundgetSolutionAsDotString
(int eventId)
-
Constructor Details
-
DotGenerator
-
-
Method Details
-
generateDotDiagram
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
-