Program to find the number of region in Planar Graph | Java implementation of the approach ; Function to return the number of regions in a Planar Graph ; Driver code
import java . io . * ; class GFG { static int Regions ( int Vertices , int Edges ) { int R = Edges + 2 - Vertices ; return R ; } public static void main ( String [ ] args ) { int V = 5 , E = 7 ; System . out . println ( Regions ( V , E ) ) ; } }