codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:
Search Forums:
  Matrix  jovimarko at 21:12 on Tuesday, January 30, 2007
 

I’ve been given a file
1 2 15
1 3 16
2 3 20
and so on…First two values of the input file represents graph nodes and the third one is distance between them. I know the number of nodes(in previous example number of nodes is 4, counting starts from 0)
I need perl code that makes a matrix that looks like this:
0 0 0 0
0 0 15 16
0 15 0 20
0 16 20 0










CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums








Recent Forum Threads
•  byte swapping in Perl
•  close window
•  Passing Variable To js File
•  Re: Compiling JAVA code in .NET?
•  managed nd unmanaged code..
•  Looking for free form submit php script?
•  horizontal scroll of images
•  Re: DHTML : popup slider using image
•  Re: Java question - zoom/selection


Recent Articles
ASP GetTempName
Decode and Encode UTF-8
ASP GetFile
ASP FolderExists
ASP FileExists
ASP OpenTextFile
ASP FilesystemObject
ASP CreateFolder
ASP CreateTextFile
Javascript Get Selected Text


© Copyright codetoad.com 2001-2007