Identify planar graphs (#705)