// ***************************************************************** // Author: Zhixiang Chen // Class: CSCI/CMPE 3333, Fall 2014 // Lab 8: HeapSort // Date: 08/2014 // Comment: The code here is meant to be revised. //----------------------------------------------------------------- // Description: This program is to implement a generic graph // depth-first search algorithm // ***************************************************************** #include #include #include #include #include #include #include "graphType.h" using namespace std; int main() { /********************************************************** Part A: Testing graphType class and depth-first-search The graph data file is "graphData.txt". **********************************************************/ ifstream inFile; graphType graph; //load graph inFile.open("graphData.txt"); graph.loadGraph(inFile); inFile.close(); graph.print(); //do dfs cout<<" DFS result starting at node 0 ................" <