Skip to content
This repository was archived by the owner on May 27, 2019. It is now read-only.

Commit 94d2e8d

Browse files
committed
Add printing begin and end vertex for dijkstra's alg
1 parent 6094805 commit 94d2e8d

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

DirectedGraph.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,8 @@ void DirectedGraph::test() {
109109
double result = 0;
110110
int beginVertex;
111111
int endVertex;
112+
113+
cout.setf(ios::fixed);
112114

113115
for (int i = 0; i < 5; i++) {
114116
for (int j = 0; j < 4; j++) {
@@ -141,6 +143,8 @@ void DirectedGraph::test() {
141143
beginVertex = randomVertex(mt);
142144
endVertex = randomVertex(mt);
143145

146+
cout << "PW: " << beginVertex << ", KW: " << endVertex << " - ";
147+
144148
if (representationType[k] == 'M') {
145149
try {
146150
counter.startCounter();

UndirectedGraph.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,8 @@ void UndirectedGraph::test() {
110110
Counter counter;
111111
double result = 0;
112112

113+
cout.setf(ios::fixed);
114+
113115
for (int i = 0; i < 5; i++) {
114116
for (int j = 0; j < 4; j++) {
115117
for (int k = 0; k < 2; k++) {

0 commit comments

Comments
 (0)