nenad
2013-01-05
hi there,
I'm using a CircleLayout for my graph. I overrid the initiate() method so that the vertices are drawn on a certain position in the circle depending on its id. This means that vertices are spread irregular on the circle.
Now i have a problem, because of how the edges are rendered, the graph doesnt look like a cricle anymore.
is there a way to make the the edges look like a circle again?
thanks for your help
Joshua O'Madadhain
2013-01-05
The reason it's called "CircleLayout" is because the _vertices_ are placed (evenly) on a circle, not because of anything about the edges.
You can render the edges however you like, but if you want the eye to interpret it as a circle most readily, just space the vertices evenly.
Joshua
nenad
2013-01-05
yeah I know that about the circle layout, but is there a way to paint the edges in such way that it looks like a circle again?
I need to have the vertices to be spaced unevenly, but it still should look like a circle.
is there no way to change the arc angle for every edge?