graphstream/gs-core — Issue #50: Converting graph coordinates to screen coordinates
Author: sbalev
Created: 2011-12-23 21:03:26+00:00
State: open

There is a problem when the coordinates of the nodes are big. Probably this is a loss of precision. For example, the following code

````java
Graph g = new AdjacencyListGraph("square");
g.addNode("A").addAttribute("xy", -74500000, 40300000);
g.addNode("B").addAttribute("xy", -73500000, 40300000);
g.addNode("C").addAttribute("xy", -73500000, 41300000);
g.addNode("D").addAttribute("xy", -74500000, 41300000);
g.addEdge("AB", "A", "B");
g.addEdge("BC", "B", "C");
g.addEdge("CD", "C", "D");
g.addEdge("DA", "D", "A");
g.display(false);
```

displays a small square in the upper left corner of the viewer. The result is the same with the gs-core and gs-ui viewers.