PHP Classes

Graf: Computing routes and distances between two points

Recommend this page to a friend!
  Info   View files View files (3)   DownloadInstall with Composer Download .zip   Reputation   Support forum (5)   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStarStar 62%Total: 3,634 This week: 1All time: 913 This week: 74Up
Version License Categories
graph 1.0.0GNU General Publi...Algorithms, Geography, Math


This class is meant for computing all the possible ways from a point to another and the distance between them.

Innovation Award
PHP Programming Innovation award nominee
May 2004
Number 2

Prize: One copy of the Zend Studio
Computing all possible routes between two points considering the different alternative directions that may be taken in the way has always been an interesting problem.

Depending on the purpose, different solutions may be found that are optimized to cost less in fuel consumed by a transportation vehicle, may take less time to traverse, or may just be a convenient alternative when one or more paths are blocked for some problem that may exist by the time the a certain route is being traversed.

This class provides a solution to compute all the different routes that may be taken to reach one point departing from another.

Although it does not solve a problem that is common in Web programming, it may be useful in specific situations where computing multiple routes is part of a solution of a more specific problem.

Manuel Lemos
Picture of Protung Dragos
Name: Protung Dragos is available for providing paid consulting. Contact Protung Dragos .
Classes: 10 packages by
Country: Romania Romania
Age: 41
All time rank: 281 in Romania Romania
Week rank: 23 Up1 in Romania Romania Equal
Innovation award
Innovation award
Nominee: 3x

  Files folder image Files  
File Role Description
Accessible without login Plain text file example.php Example Example
Accessible without login Plain text file graph.class.php Class the class file
Accessible without login HTML file graph.htm Doc. Example of a graf

 Version Control Unique User Downloads Download Rankings  
This week:1
All time:913
This week:74Up
User Ratings User Comments (1)
 All time
Please upload images as you used in html page
9 years ago (Laukik Patel)