Hello Levi,
Your statement is fair enough. Use cases I can think about are social, network, geographical, connected flights graphs, work with hierarchical data like corporations structures, products categories, indexing objects tree stored in memory/cache and PHP web applications representing those relations and solving common problems (has connection, shortest path, MST, recommendations in social graph, search). PHP was born for web and should stay on cutting edge, serving needs of web applications. Maybe in a real world, because of PHP performance it probably will not be so effective anyways, but for education purposes it would be great. In general, reason for implementing Graph and Tree is the same as for already existing data structures in SPL. Best regards, Bohdan 2013/7/19 Levi Morrison <morrison.l...@gmail.com> > I would like to ask you what is your opinion about implementing Binary Tree >> and Graph data structures in SPL in addition to existing ones? IMHO it >> would be great because that will prevent from inventing a wheel all the >> time, and prove that PHP is full featured language like C#, Java, ... >> > > Convince me with use-cases; I don't think proving that we're as > "full-featured" as C# is helpful, healthy or necessary.