diff --git a/YASI_12/YASI_12.vcxproj b/YASI_12/YASI_12.vcxproj
index e1c21bf..ae46f3d 100644
--- a/YASI_12/YASI_12.vcxproj
+++ b/YASI_12/YASI_12.vcxproj
@@ -73,6 +73,7 @@
+
diff --git a/YASI_12/YASI_12.vcxproj.filters b/YASI_12/YASI_12.vcxproj.filters
index 5367086..445f702 100644
--- a/YASI_12/YASI_12.vcxproj.filters
+++ b/YASI_12/YASI_12.vcxproj.filters
@@ -16,23 +16,29 @@
{e771e66c-6407-4d3a-bd6f-97ad63c60a2d}
-
- {dd3f1d18-aa29-4dd2-b39f-3fee286fb955}
+
+ {d2827f3c-736f-4f2a-891c-9fa2883e5685}
+
+
+ {38bc138b-d5b5-4dea-9c6e-6197d9c01502}
-
+
{c53f92c4-0949-4c57-bebb-d65e28421697}
-
+
+ {dd3f1d18-aa29-4dd2-b39f-3fee286fb955}
+
+
{7c28c024-2e52-4642-b5b0-dd1332b5e474}
-
- {3513b12f-c68b-43a7-8531-76ebdb5b60f7}
+
+ {9d029d58-d806-4503-8f54-cc27d0b9332d}
-
- {d2827f3c-736f-4f2a-891c-9fa2883e5685}
+
+ {3513b12f-c68b-43a7-8531-76ebdb5b60f7}
-
- {9d029d58-d806-4503-8f54-cc27d0b9332d}
+
+ {0f4869ec-8aa0-40e8-bf1a-dc5133ff0b1c}
@@ -51,40 +57,40 @@
Header Files\nonproject
- Header Files\List
+ Header Files\Data Structures\List
- Header Files\List
+ Header Files\Data Structures\List
- Header Files\Tree
+ Header Files\Data Structures\Tree
- Header Files\Tree
+ Header Files\Data Structures\Tree
- Header Files\Tree
+ Header Files\Data Structures\Tree
- Header Files\Tree
+ Header Files\Data Structures\Tree
- Header Files\Tree
+ Header Files\Data Structures\Tree
- Header Files\Heap
+ Header Files\Data Structures\Heap
- Header Files\Heap
+ Header Files\Data Structures\Heap
- Header Files\List
+ Header Files\Data Structures\List
- Header Files\Dictionary
+ Header Files\Data Structures\Dictionary
- Header Files\Dictionary
+ Header Files\Data Structures\Dictionary
Header Files\Common
@@ -117,22 +123,25 @@
Header Files\nonproject
- Header Files\Dictionary
+ Header Files\Data Structures\Dictionary
- Header Files\Dictionary
+ Header Files\Data Structures\Dictionary
- Header Files\Dictionary
+ Header Files\Data Structures\Dictionary
- Header Files\Dictionary
+ Header Files\Data Structures\Dictionary
- Header Files\Dictionary
+ Header Files\Data Structures\Dictionary
- Header Files\Graph
+ Header Files\Data Structures\Graph
+
+
+ Header Files\Algorithms
\ No newline at end of file
diff --git a/YASI_12/ds.graph.h b/YASI_12/ds.graph.h
index fcfd6a9..e628cb5 100644
--- a/YASI_12/ds.graph.h
+++ b/YASI_12/ds.graph.h
@@ -62,8 +62,8 @@ class Graph : public IGraph{
typedef Edge EdgeType;
typedef DoublyLinkedList VertexList;
typedef DoublyLinkedList EdgeList;
- typedef VertexList::iterator VertexIterator;
- typedef EdgeList::iterator EdgeIterator;
+ typedef typename VertexList::iterator VertexIterator;
+ typedef typename EdgeList::iterator EdgeIterator;
protected:
VertexList vertexList;
EdgeList edgeList;
@@ -163,7 +163,7 @@ class Graph : public IGraph{
ppv1 = ht.get(vid1);
if (!ppv1){
pv1 = addVertex(vid1);
- ht.put(vertexId, pv1);
+ ht.put(vid1, pv1);
}
else{
pv1 = *ppv1;
@@ -195,7 +195,7 @@ class Graph : public IGraph{
for (EdgeList::iterator j = v->pOutEdges->begin(); j != v->pOutEdges->end(); j++){
// for each outgoing edge
EdgeType* e = *j;
- str << e->start->id << " " << e->end->id;
+ str << e->start->label << " " << e->end->label;
if (_weighted){
str << " " << e->weight;
}
diff --git a/YASI_12/main.cpp b/YASI_12/main.cpp
index 8ae0255..67808a8 100644
--- a/YASI_12/main.cpp
+++ b/YASI_12/main.cpp
@@ -13,6 +13,7 @@
#include "ds.linearprobinghashtable.h"
#include "ds.hopscotchhashtable.h"
#include "ds.graph.h"
+#include "alg.graph.h"
//#include "Sorter.h"