Implement PlanarGraph and test it