updates
This commit is contained in:
parent
54cef5809d
commit
0785d87519
2 changed files with 4 additions and 1 deletions
|
@ -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) {
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue