This commit is contained in:
GregorSamsa42 2024-08-01 23:05:04 +02:00
parent 54cef5809d
commit 0785d87519
2 changed files with 4 additions and 1 deletions

View File

@ -6,7 +6,7 @@
#include <vector>
#include <stack>
#include "digraph.h"
#include "../digraph.h"
// push nodes in post-order
void dfs1(Digraph const & G, int n, std::vector<bool> & vis, std::stack<int> & node_order) {

View File

@ -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);