T - is the type of node that this graph supports.public class KamadaKawai<T extends Node> extends Object
Based on the paper by Kamada and Kawai of 1988, "An alorithm for Drawing General Unidirected Graphs".
Although they specify a newton-raphson, I decided to iterate by observing E changes.
| Constructor and Description |
|---|
KamadaKawai(DirectedGraph<T> graph,
int maxWidth,
int maxHeight) |
| Modifier and Type | Method and Description |
|---|---|
void |
compute() |
DijkstraShortestPath<T> |
getShortestPath() |
String |
toString() |
public KamadaKawai(DirectedGraph<T> graph, int maxWidth, int maxHeight)
public void compute()
public DijkstraShortestPath<T> getShortestPath()
Copyright © 2017. All rights reserved.