Various graph representations implemented in PHP