Skip to content

Commit

Permalink
Merge pull request #49 from stasinosntaveas/patch-1
Browse files Browse the repository at this point in the history
fixed weighted  graph visualization mistake
  • Loading branch information
spirosmaggioros authored Apr 9, 2024
2 parents 236b324 + 8e93cc5 commit 533cb63
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/classes/graph/graph.h
Original file line number Diff line number Diff line change
Expand Up @@ -1177,7 +1177,7 @@ template <typename T> void weighted_graph<T>::visualize() {
s += element;
s += "->";
s += x.first;
s += "[weight=";
s += "[label=";
s += std::to_string(x.second);
s += "]";
s += '\n';
Expand All @@ -1192,7 +1192,7 @@ template <typename T> void weighted_graph<T>::visualize() {
s += std::to_string(element);
s += "->";
s += std::to_string(x.first);
s += "[weight=";
s += "[label=";
s += std::to_string(x.second);
s += "]";
s += '\n';
Expand All @@ -1209,7 +1209,7 @@ template <typename T> void weighted_graph<T>::visualize() {
s += element;
s += "--";
s += x.first;
s += "[weight=";
s += "[label=";
s += std::to_string(x.second);
s += "]";
s += '\n';
Expand All @@ -1224,7 +1224,7 @@ template <typename T> void weighted_graph<T>::visualize() {
s += std::to_string(element);
s += "--";
s += std::to_string(x.first);
s += "[weight=";
s += "[label=";
s += std::to_string(x.second);
s += "]";
s += '\n';
Expand Down

0 comments on commit 533cb63

Please sign in to comment.