From 0785d875195192c1b76ec119a8bea02ab252a600 Mon Sep 17 00:00:00 2001 From: GregorSamsa42 Date: Thu, 1 Aug 2024 23:05:04 +0200 Subject: [PATCH] updates --- Kosaraju/main.cpp | 2 +- min_spanning_tree/prim/prim.cpp | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Kosaraju/main.cpp b/Kosaraju/main.cpp index 9574d8d..1c5b886 100644 --- a/Kosaraju/main.cpp +++ b/Kosaraju/main.cpp @@ -6,7 +6,7 @@ #include #include -#include "digraph.h" +#include "../digraph.h" // push nodes in post-order void dfs1(Digraph const & G, int n, std::vector & vis, std::stack & node_order) { diff --git a/min_spanning_tree/prim/prim.cpp b/min_spanning_tree/prim/prim.cpp index 2ecedbc..409a937 100644 --- a/min_spanning_tree/prim/prim.cpp +++ b/min_spanning_tree/prim/prim.cpp @@ -89,6 +89,9 @@ int main() { G.add_edge(7,3,9); G.add_edge(0,3,1); G.add_edge(3,0,5); + G.add_edge(4,6,3); + G.add_edge(0,7,0.5); + G.add_edge(4,2,1); prim(G);