Read a text file. Take name of the input from the user. • Format of file is as follow (also described in Video 2 of Week 13)
First line contain number of vertices. Then after the underscore whether the graph is directed or not(1 for Directed and 0 for Undirected) Second line contains their names. (space delimited) Third line contains the number of edges. Next lines contain the edges • Answer the following questions using Console UI. (UI is upto you. How good you make it) o How many Vertices are there? o How many Edges are there? o Is the graph Directed? o Which are the neighbors of any vertex (lets say for A).