Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion example/astar-cities.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ class astar_goal_visitor : public boost::default_astar_visitor
Vertex m_goal;
};

int main(int argc, char** argv)
int main()
{

// specify some types
Expand Down
2 changes: 1 addition & 1 deletion example/bipartite_example.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ template < typename Graph > void print_bipartite(const Graph& g)
}
}

int main(int argc, char** argv)
int main()
{
using vector_graph_t = adjacency_list< vecS, vecS, undirectedS >;
using E = std::pair< int, int >;
Expand Down
2 changes: 1 addition & 1 deletion example/bron_kerbosch_clique_number.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ using Graph = undirected_graph<>;
using Vertex = graph_traits< Graph >::vertex_descriptor;
using Edge = graph_traits< Graph >::edge_descriptor;

int main(int argc, char* argv[])
int main()
{
// Create the graph and read it from standard input.
Graph g;
Expand Down
2 changes: 1 addition & 1 deletion example/bron_kerbosch_print_cliques.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ using Edge = graph_traits< Graph >::edge_descriptor;
// each vertex. This is used during graph creation.
using NameMap = property_map< Graph, string Actor::* >::type;

int main(int argc, char* argv[])
int main()
{
// Create the graph and and its name map accessor.
Graph g;
Expand Down
2 changes: 1 addition & 1 deletion example/canonical_ordering.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

using namespace boost;

int main(int argc, char** argv)
int main()
{

using graph = adjacency_list< vecS, vecS, undirectedS,
Expand Down
2 changes: 1 addition & 1 deletion example/closeness_centrality.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ using ClosenessProperty = boost::exterior_vertex_property< Graph, float >;
using ClosenessContainer = ClosenessProperty::container_type;
using ClosenessMap = ClosenessProperty::map_type;

int main(int argc, char* argv[])
int main()
{
// Create the graph and a property map that provides access to[
// tha actor names.
Expand Down
2 changes: 1 addition & 1 deletion example/clustering_coefficient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ using ClusteringProperty = exterior_vertex_property< Graph, float >;
using ClusteringContainer = ClusteringProperty::container_type;
using ClusteringMap = ClusteringProperty::map_type;

int main(int argc, char* argv[])
int main()
{
// Create the graph and a name map that provides access to
// then actor names.
Expand Down
2 changes: 1 addition & 1 deletion example/cycle_ratio_example.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ template < typename TG > void gen_rand_graph(TG& g, size_t nV, size_t nE)
randomize_property< edge_weight2_t >(g, ew2rg);
}

int main(int argc, char* argv[])
int main()
{
using std::cout;
using std::endl;
Expand Down
2 changes: 1 addition & 1 deletion example/degree_centrality.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ using CentralityProperty = exterior_vertex_property< Graph, unsigned >;
using CentralityContainer = CentralityProperty::container_type;
using CentralityMap = CentralityProperty::map_type;

int main(int argc, char* argv[])
int main()
{
// Create the graph and a property map that provides access
// to the actor names.
Expand Down
2 changes: 1 addition & 1 deletion example/eccentricity.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ using EccentricityProperty = boost::exterior_vertex_property< Graph, int >;
using EccentricityContainer = EccentricityProperty::container_type;
using EccentricityMap = EccentricityProperty::map_type;

int main(int argc, char* argv[])
int main()
{
// Create the graph and a name map that provides access to
// then actor names.
Expand Down
2 changes: 1 addition & 1 deletion example/grid_graph_example.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ void print_vertex(Traits::vertex_descriptor vertex_to_print)
<< vertex_to_print[2] << ")" << std::endl;
}

int main(int argc, char* argv[])
int main()
{

// Define a 3x5x7 grid_graph where the second dimension doesn't wrap
Expand Down
2 changes: 1 addition & 1 deletion example/grid_graph_properties.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#include <boost/array.hpp>
#include <boost/graph/grid_graph.hpp>

int main(int argc, char* argv[])
int main()
{
// A 2D grid graph
using GraphType = boost::grid_graph< 2 >;
Expand Down
2 changes: 1 addition & 1 deletion example/inclusive_mean_geodesic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ using GeodesicMap = GeodesicProperty::map_type;
static float exclusive_geodesics(const Graph&, DistanceMatrixMap, GeodesicMap);
static float inclusive_geodesics(const Graph&, DistanceMatrixMap, GeodesicMap);

int main(int argc, char* argv[])
int main()
{
// Create the graph, a name map that providse abstract access
// to the web page names, and the weight map as an accessor to
Expand Down
2 changes: 1 addition & 1 deletion example/incremental-components-eg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

using namespace boost;

int main(int argc, char* argv[])
int main()
{
using Graph = adjacency_list< vecS, vecS, undirectedS >;
using Vertex = graph_traits< Graph >::vertex_descriptor;
Expand Down
2 changes: 1 addition & 1 deletion example/incremental_components.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@

using namespace boost;

int main(int argc, char* argv[])
int main()
{
using Graph = adjacency_list< vecS, vecS, undirectedS >;
using Vertex = graph_traits< Graph >::vertex_descriptor;
Expand Down
2 changes: 1 addition & 1 deletion example/influence_prestige.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ using CentralityProperty = exterior_vertex_property< Graph, unsigned >;
using CentralityContainer = CentralityProperty::container_type;
using CentralityMap = CentralityProperty::map_type;

int main(int argc, char* argv[])
int main()
{
// Create the graph and a property map that provides
// access to the actor names.
Expand Down
2 changes: 1 addition & 1 deletion example/kuratowski_subgraph.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

using namespace boost;

int main(int argc, char** argv)
int main()
{

using graph = adjacency_list< vecS, vecS, undirectedS,
Expand Down
2 changes: 1 addition & 1 deletion example/make_biconnected_planar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

using namespace boost;

int main(int argc, char** argv)
int main()
{

using graph = adjacency_list< vecS, vecS, undirectedS,
Expand Down
2 changes: 1 addition & 1 deletion example/make_connected.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

using namespace boost;

int main(int argc, char** argv)
int main()
{

using graph = adjacency_list< vecS, vecS, undirectedS,
Expand Down
2 changes: 1 addition & 1 deletion example/make_maximal_planar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ struct face_counter : public planar_face_traversal_visitor
int count;
};

int main(int argc, char** argv)
int main()
{

using graph = adjacency_list< vecS, vecS, undirectedS,
Expand Down
2 changes: 1 addition & 1 deletion example/mcgregor_subgraphs_example.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ template < typename Graph > struct example_callback
VertexSizeFirst m_max_subgraph_size;
};

int main(int argc, char* argv[])
int main()
{

// Using a vecS graph here so that we don't have to mess around with
Expand Down
2 changes: 1 addition & 1 deletion example/mean_geodesic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ using GeodesicProperty = exterior_vertex_property< Graph, float >;
using GeodesicContainer = GeodesicProperty::container_type;
using GeodesicMap = GeodesicProperty::map_type;

int main(int argc, char* argv[])
int main()
{
// Create the graph and a property map that provides access
// to the actor names.
Expand Down
2 changes: 1 addition & 1 deletion example/planar_face_traversal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ struct edge_output_visitor : public output_visitor
template < typename Edge > void next_edge(Edge e) { std::cout << e << " "; }
};

int main(int argc, char** argv)
int main()
{

using graph = adjacency_list< vecS, vecS, undirectedS,
Expand Down
2 changes: 1 addition & 1 deletion example/scaled_closeness_centrality.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ using ClosenessProperty = boost::exterior_vertex_property< Graph, float >;
using ClosenessContainer = ClosenessProperty::container_type;
using ClosenessMap = ClosenessProperty::map_type;

int main(int argc, char* argv[])
int main()
{
// Create the graph and a property map that provides access
// to the actor names.
Expand Down
2 changes: 1 addition & 1 deletion example/simple_planarity_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#include <boost/graph/adjacency_list.hpp>
#include <boost/graph/boyer_myrvold_planar_test.hpp>

int main(int argc, char** argv)
int main()
{

// This program illustrates a simple use of boyer_myrvold_planar_embedding
Expand Down
2 changes: 1 addition & 1 deletion example/straight_line_drawing.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ struct coord_t
std::size_t y;
};

int main(int argc, char** argv)
int main()
{
using graph = adjacency_list< vecS, vecS, undirectedS,
property< vertex_index_t, int > >;
Expand Down
2 changes: 1 addition & 1 deletion example/tiernan_girth_circumference.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ using Graph = directed_graph<>;
using Vertex = graph_traits< Graph >::vertex_descriptor;
using Edge = graph_traits< Graph >::edge_descriptor;

int main(int argc, char* argv[])
int main()
{
// Create the graph and read it from standard input.
Graph g;
Expand Down
2 changes: 1 addition & 1 deletion example/tiernan_print_cycles.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ using Graph = directed_graph<>;
using Vertex = graph_traits< Graph >::vertex_descriptor;
using Edge = graph_traits< Graph >::edge_descriptor;

int main(int argc, char* argv[])
int main()
{
// Create the graph and read it from standard input.
Graph g;
Expand Down
2 changes: 1 addition & 1 deletion example/two_graphs_common_spanning_trees.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ using vertex_iterator = boost::graph_traits< Graph >::vertex_iterator;

using edge_iterator = boost::graph_traits< Graph >::edge_iterator;

int main(int argc, char** argv)
int main()
{
Graph iG, vG;
vector< edge_descriptor > iG_o = { boost::add_edge(0, 1, iG).first,
Expand Down
2 changes: 1 addition & 1 deletion example/weighted_matching_example.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ using EdgeProperty
using my_graph
= adjacency_list< vecS, vecS, undirectedS, no_property, EdgeProperty >;

int main(int argc, const char* argv[])
int main()
{
graph_traits< my_graph >::vertex_iterator vi, vi_end;
const int n_vertices = 18;
Expand Down
2 changes: 1 addition & 1 deletion test/bipartite_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ void check_bipartite(const Graph& g, IndexMap index_map, bool is_bipartite)
}
}

int main(int argc, char** argv)
int main()
{
typedef boost::adjacency_list< boost::vecS, boost::vecS,
boost::undirectedS >
Expand Down
2 changes: 1 addition & 1 deletion test/delete_edge.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

#include <boost/core/lightweight_test.hpp>

int main(int argc, char* argv[])
int main()
{
typedef int Vertex;
typedef int Edge;
Expand Down
2 changes: 1 addition & 1 deletion test/generator_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

using namespace boost;

int main(int argc, char** argv)
int main()
{

typedef rand48 RandomGenerator;
Expand Down
2 changes: 1 addition & 1 deletion test/graphml_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
using namespace std;
using namespace boost;

int main(int argc, char** argv)
int main(int, char** argv)
{
typedef adjacency_list< vecS, vecS, directedS,
property< vertex_color_t, int, property< vertex_name_t, string > >,
Expand Down
2 changes: 1 addition & 1 deletion test/min_degree_empty.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

typedef boost::adjacency_list< boost::vecS, boost::vecS, boost::directedS > G;

int main(int argc, char** argv)
int main()
{
size_t n = 10;
G g(n);
Expand Down
2 changes: 1 addition & 1 deletion test/subgraph_props.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ struct TestBundles
}
};

int main(int argc, char* argv[])
int main()
{
TestProps::run();
TestBundles::run();
Expand Down
2 changes: 1 addition & 1 deletion test/transitive_closure_test2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ using namespace std;
using namespace boost;
typedef adjacency_list<> graph_t;

int main(int argc, char* argv[])
int main()
{
graph_t g(5), g_TC;

Expand Down
2 changes: 1 addition & 1 deletion test/two_graphs_common_spanning_trees_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ void two_graphs_common_spanning_trees_test()

}

int main(int argc, char** argv)
int main()
{
boost::two_graphs_common_spanning_trees_test();
return boost::report_errors();
Expand Down
2 changes: 1 addition & 1 deletion test/vf2_sub_graph_iso_test_2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ BOOST_TEST(!got_hit);
}
}

int main(int argc, char* argv[])
int main()
{
test_empty_graph_cases();
test_return_value();
Expand Down
Loading