mirror of https://github.com/CGAL/cgal
Fixes inside a commented example
This commit is contained in:
parent
3b7754f796
commit
444f347f76
|
|
@ -109,7 +109,7 @@ a minimum cut on the following graph:
|
||||||
|
|
||||||
///////////////////////////////////////////////////
|
///////////////////////////////////////////////////
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <iostream>
|
||||||
#include "graph.h"
|
#include "graph.h"
|
||||||
|
|
||||||
void main()
|
void main()
|
||||||
|
|
@ -125,16 +125,16 @@ void main()
|
||||||
|
|
||||||
Graph::flowtype flow = g -> maxflow();
|
Graph::flowtype flow = g -> maxflow();
|
||||||
|
|
||||||
printf("Flow = %d\n", flow);
|
std::cout << "Flow = " << flow << std::endl;
|
||||||
printf("Minimum cut:\n");
|
printf("Minimum cut:\n");
|
||||||
if (g->what_segment(nodes[0]) == Graph::SOURCE)
|
if (g->what_segment(nodes[0]) == Graph::SOURCE)
|
||||||
printf("node0 is in the SOURCE set\n");
|
std::cout << "node0 is in the SOURCE set\n";
|
||||||
else
|
else
|
||||||
printf("node0 is in the SINK set\n");
|
std::cout << "node0 is in the SINK set\n";
|
||||||
if (g->what_segment(nodes[1]) == Graph::SOURCE)
|
if (g->what_segment(nodes[1]) == Graph::SOURCE)
|
||||||
printf("node1 is in the SOURCE set\n");
|
std::cout << "node1 is in the SOURCE set\n";
|
||||||
else
|
else
|
||||||
printf("node1 is in the SINK set\n");
|
std::cout << "node1 is in the SINK set\n";
|
||||||
|
|
||||||
delete g;
|
delete g;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue