A representation of planar graphs