Do you know a good online tutorial detailing solving graph problems using PHP, I'm also very interested in optimal graph data type representation in PHP (I assume that would be multidimensional arrays)?
I'm talking about mathematical graph theory (yes, vertices and edges). Google spits out loads of stuff, just not the PHP implementation of the basic theory. I'm interested in the data types of choice, methods to walk the graph and solve graph problems. I need to apply it mainly for hierarchic data (as trees) and interrelation definitions between entities (such as web user communities).
I have started developing my own scripts looking at code in other languages. Still, all your suggestions are more than welcome.