Question: Design a class named GraphProcessor. This class will have following constructor. GraphProcessor(String graphData) graphData hold the absolute path of a file that stores a directed
Design a class named GraphProcessor. This class will have following constructor. GraphProcessor(String graphData) graphData hold the absolute path of a file that stores a directed graph. This file will be of the following format: First line indicates number of vertices. Each subsequent line lists a directed edge of the graph. The vertices of this graph are represented as strings.
For example contents of the file may look like 4 Ames Minneapolis Minneapolis Chicago Chicago Ames Ames Omaha Omaha Chicago
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
