LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   perl xml rendering (https://www.linuxquestions.org/questions/programming-9/perl-xml-rendering-735794/)

umbrella2 06-26-2009 07:20 AM

perl xml rendering
 
hi every1,
Suggest me anything which must assist me make a plan or a map. I needed draw a map computer network with either nodes into there with neighbors connections. For instance, I've got some table neighborhood...

my %neigh(
'NY-1' => [NY-2,NY-24,NY-5,NY-77],
'LA-1' => [NY-2,LA-4,LA-3,LA-9],
'SA-2' => [SA-4,LA-9,SA-23,SA-45],
'WA-5' => [NY-2,NY-77,LA-2,WA-33,WA-31,WA-32,WA-35],
);

Sergei Steshenko 06-27-2009 06:44 AM

First of all, your Perl code won't compile under 'use strict';

Second, what does XML have to do with rendering ? Or Perl for that matter ?

Third, how are going to render if the nodes to be connected have no coordinates ?

umbrella2 06-28-2009 06:59 AM

Quote:

Second, what does XML have to do with rendering ? Or Perl for that matter ?
Basicaly it should be contain at least this names.
Quote:

Third, how are going to render if the nodes to be connected have no coordinates ?
yes, it's a good question. The nodes which are neighbors must be pictured around some node. For instance, if we had a sheet 1024x1024, then all tree will have a dom(root)- node and the next drawing them neighbors and connection of the neighbors should strive not crossing, only if that important.

Sergei Steshenko 06-28-2009 01:54 PM

Quote:

Originally Posted by umbrella2 (Post 3588816)
Basicaly it should be contain at least this names.
...

Who says so and how he/she justifies the "should" ?


All times are GMT -5. The time now is 12:46 AM.