Difference between revisions of "Boost"

From ProgrammingExamples
Jump to: navigation, search
(Boost Graph Library (BGL))
(Boost Graph Library (BGL))
Line 21: Line 21:
  
 
== Boost Graph Library (BGL) ==
 
== Boost Graph Library (BGL) ==
 +
=== Basics ===
 
* [[CPP/Boost/CreateGraph|Create a graph]] - This is the most fundamental process of using BGL - creating a graph. This example explains 3 methods of creating a graph, using adjacency_list directly, and also using the directed_graph and undirected_graph subclasses.
 
* [[CPP/Boost/CreateGraph|Create a graph]] - This is the most fundamental process of using BGL - creating a graph. This example explains 3 methods of creating a graph, using adjacency_list directly, and also using the directed_graph and undirected_graph subclasses.
  
 
* [[CPP/Boost/BGL/EdgeExists|Check if an edge exists]] - If it does, you also get the edge_descriptor
 
* [[CPP/Boost/BGL/EdgeExists|Check if an edge exists]] - If it does, you also get the edge_descriptor
 
* [[CPP/Boost/BGL/Directed/Weighted|Access an edge]]
 
* [[CPP/Boost/BGL/Directed/Weighted|Access an edge]]
* [[CPP/Boost/BGL/DijkstraDirected|Find the shortest path (Dijkstra) from a specified vertex to all other vertices in a directed graph]]
 
* [[CPP/Boost/BGL/DijkstraUndirected|Find the shortest path (Dijkstra) from a specified vertex to all other vertices in an undirected graph]]
 
* [[CPP/Boost/BGL/DijkstraComputePath|Find the shortest path (Dijkstra) from one specified vertex to another specified vertex in a graph]]
 
 
 
* [[CPP/Boost/RemoveVertex|Remove a vertex from a graph]]
 
* [[CPP/Boost/RemoveVertex|Remove a vertex from a graph]]
 
* [[CPP/Boost/RemoveEdge|Remove an edge from a graph]]
 
* [[CPP/Boost/RemoveEdge|Remove an edge from a graph]]
Line 43: Line 40:
 
* [[CPP/Boost/BGL/MakeBFSVisitor|Breadth first search with make_bfs_visitor]]
 
* [[CPP/Boost/BGL/MakeBFSVisitor|Breadth first search with make_bfs_visitor]]
 
* [[CPP/Boost/BGL/DepthFirstSearch|Depth first search (DFS)]]
 
* [[CPP/Boost/BGL/DepthFirstSearch|Depth first search (DFS)]]
 +
 +
=== Algorithms ===
 +
 +
* [[CPP/Boost/BGL/DijkstraDirected|Find the shortest path (Dijkstra) from a specified vertex to all other vertices in a directed graph]]
 +
* [[CPP/Boost/BGL/DijkstraUndirected|Find the shortest path (Dijkstra) from a specified vertex to all other vertices in an undirected graph]]
 +
* [[CPP/Boost/BGL/DijkstraComputePath|Find the shortest path (Dijkstra) from one specified vertex to another specified vertex in a graph]]
 +
* [[CPP/Boost/BGL/BetweennessCentralityClustering|Cluster a graph using betweenness centrality]]

Revision as of 17:14, 14 June 2011

The following examples are frequent use cases of parts of the Boost (http://www.boost.org/) library. Each example includes a CMakeLists.txt file so it can be easily compiled.

Boost Graph Library (BGL)

Basics

  • Create a graph - This is the most fundamental process of using BGL - creating a graph. This example explains 3 methods of creating a graph, using adjacency_list directly, and also using the directed_graph and undirected_graph subclasses.

Algorithms