Program to find the number of region in Planar Graph | Function to return the number of regions in a Planar Graph ; Driver code
function Regions ( Vertices , Edges ) { var R = Edges + 2 - Vertices ; return R ; } var V = 5 , E = 7 ; document . write ( Regions ( V , E ) ) ;