Characterization of Planar Graphs