hello everyone!
I need a suggestion about maps programming with perl.
Well, I did the map engine which must be depict multiply nodes.
I made it by xml rendering, it's part I completely done, but have a question related environs nodes and them neighbors. Actually I divide them on the group's and compute radius for everyone, but radius depend of quantity neighbor nodes connected to the some node.
I've got height & width some sheet by counting whole nodes while compute coordinates for everyone.
Code:
$x = (cos($arc)*$R+$xC);
$y = (sin($arc)*$R+$yC);
$xC += 1;
$yC += 1;
but it's so stupid way so as get it. I need depict nodes and use whole space of my sheet and also group's of nodes should be nearly of them neighbors by group.
i.e. if node A have five neighbors them must be founded on one circle radius distance of them root(A node), and so on for any other nodes.
but how compute free space and grouping nodes(which neighbors of them neighbors) and gave them nearest coordinates.