2
0
mirror of https://github.com/boostorg/graph.git synced 2026-01-27 06:52:11 +00:00

removed an unused function (#39)

The C++ standard deprecates use of <stdio.h>, <stdlib.h> etc., and suggests using <cstdio>, <cstdlib> etc.

Some trailing whitespace removed in affected files because of a setting in my editor

dead code surrounded by #if 0 ... #endif removed
This commit is contained in:
Mads Jensen
2016-04-24 18:26:25 +02:00
committed by K. Noel Belcourt
parent 13cea9c32b
commit ecf83843e7
18 changed files with 164 additions and 177 deletions

View File

@@ -7,7 +7,7 @@
// http://www.boost.org/LICENSE_1_0.txt)
//=======================================================================
#include <stdio.h>
#include <cstdio>
#include <iostream>
#include <boost/graph/stanford_graph.hpp>
#include <boost/graph/strong_components.hpp>
@@ -56,10 +56,10 @@ int main(int argc, char* argv[])
// a separate field for marking colors, so we use the w field.
std::vector<int> comp(num_vertices(g));
property_map<Graph*, vertex_index_t>::type
property_map<Graph*, vertex_index_t>::type
index_map = get(vertex_index, g);
property_map<Graph*, v_property<vertex_t> >::type
property_map<Graph*, v_property<vertex_t> >::type
root = get(v_property<vertex_t>(), g);
int num_comp = strong_components