PHP implementations of various graph algorithms