...
Add a new method that will implement the edge routing using the following skeleton code:
Code Block language java /** * Routes the edges connecting the nodes in the given graph. * * @param parentNode the graph whose edges to route. * @return height used for edge routing. */ private float routeEdges(final KNode parentNode) { // TODO: Implement edge routing return 0; }
- Add a call to
routeEdges(...)
in yourdoLayout(...)
method and implement the latter.
...