PHP Classes

How to use??

Recommend this page to a friend!

      Christofides heuristic  >  All threads  >  How to use??  >  (Un) Subscribe thread alerts  
Subject:How to use??
Summary:documentation?
Messages:2
Author:Paris Charilaou
Date:2011-07-02 10:23:00
Update:2011-07-04 12:02:39
 

  1. How to use??   Reply   Report abuse  
Picture of Paris Charilaou Paris Charilaou - 2011-07-02 10:23:03
Can you please explain a simple usage? how do u add cities and their coordinates?

Thanks

  2. Re: How to use??   Reply   Report abuse  
Picture of Chi H. Chi H. - 2011-07-04 12:02:39 - In reply to message 1 from Paris Charilaou
You cannot add geo coordinates to the app. You can add only city number and distance:

// $points is an Array in the following format: ( city1, city2, distance-between-them)
var $points1 = Array (
Array ( 0, 1, 40 ),
Array ( 0, 2, 2 ),
Array ( 1, 2, 5 ),
Array ( 1, 3, 5 ),
Array ( 2, 3, 5 ),
Array ( 3, 4, 5 ),
Array ( 4, 5, 5 ),
Array ( 2, 10, 30 ),
Array ( 2, 11, 40 ),
Array ( 5, 19, 20 ),
Array ( 10, 11, 20 ),
Array ( 12, 13, 20 ),
);