|
|
@@ -18,20 +18,21 @@ public class GraphController {
|
|
|
@Autowired
|
|
|
GraphService graphService;
|
|
|
|
|
|
- @GetMapping(value = "/graph/get-breath-first-traversal")
|
|
|
- public Response getGraphBreadthFirstTraversal(@RequestParam UDUWGraph graph, @RequestParam int startVertex){
|
|
|
+ @PostMapping(value = "/graph/get-breath-first-traversal")
|
|
|
+ public Response getGraphBreadthFirstTraversal(@RequestBody UDUWGraph graph,@RequestParam int startVertex){
|
|
|
GraphTraversalVO vo=graphService.getBreadthFirstTraversal(graph,startVertex);
|
|
|
+ System.out.println(vo.toString());
|
|
|
return Response.buildSuccess(vo);
|
|
|
}
|
|
|
|
|
|
- @GetMapping(value = "/graph/get-depth-first-traversal")
|
|
|
- public Response getGraphDepthFirstTraversal(@RequestParam UDUWGraph graph,@RequestParam int startVertex){
|
|
|
+ @PostMapping(value = "/graph/get-depth-first-traversal")
|
|
|
+ public Response getGraphDepthFirstTraversal(@RequestBody UDUWGraph graph,@RequestParam int startVertex){
|
|
|
GraphTraversalVO vo=graphService.getDepthFirstTraversal(graph,startVertex);
|
|
|
return Response.buildSuccess(vo);
|
|
|
}
|
|
|
|
|
|
- @GetMapping(value = "/graph/get-prim-minimum-spanning-tree")
|
|
|
- public Response getPrimMinimumSpanningTree(@RequestParam UDWGraph graph,@RequestParam int startVertex){
|
|
|
+ @PostMapping(value = "/graph/get-prim-minimum-spanning-tree")
|
|
|
+ public Response getPrimMinimumSpanningTree(@RequestBody UDWGraph graph,@RequestParam int startVertex){
|
|
|
PrimMinimumSpanningTree vo=graphService.getPrimMinimumSpanningTree(graph,startVertex);
|
|
|
return Response.buildSuccess(vo);
|
|
|
}
|