다익스트라
-
다익스트라 알고리즘@ 16. 1 ~ 17. 1/게임 AI 관련 2015. 5. 24. 23:27
Graph_SearchDijkstra cpp파일 #include"Graph_SearchDijkstra.h" Graph_SearchDijkstra::Graph_SearchDijkstra(string str) : m_fs(str.c_str(), ios::in) { if (!m_fs.is_open()) { cout m_nodeNum; m_fs >> m_edgeNum; m_vW.resize(m_nodeNum); m_vS.resize(m_nodeNum); } Graph_SearchDijkstra::~Graph_SearchDijkstra() { m_vW.clear(); m_vS.clear(); cout from; m_fs >> to; m_fs >> cost; from -= 1; to -= 1; temp.SetFro..