Difference between revisions of "Boost"

From ProgrammingExamples
Jump to: navigation, search
(Wish List)
(Basics)
Line 28: Line 28:
 
* [[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]]
* [[CPP/Boost/BGL/ReadGraph|Read a graph from a file]]
 
* [[CPP/Boost/BGL/WriteGraph|Write a graph to a file]]
 
 
* [[CPP/Boost/BGL/EdgeProperties|Add properties to edges]]
 
* [[CPP/Boost/BGL/EdgeProperties|Add properties to edges]]
 
* [[CPP/Boost/BGL/VertexProperties|Add properties to vertices]]
 
* [[CPP/Boost/BGL/VertexProperties|Add properties to vertices]]
Line 40: Line 38:
 
* [[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)]]
 +
 +
=== I/O ===
 +
* [[CPP/Boost/BGL/ReadGraph|Read a graph from a file]]
 +
* [[CPP/Boost/BGL/WriteGraph|Write a graph to a file]]
 +
* [[CPP/WishList/Boost/BGL/RelabelInputVertices|Relabel input vertices read from a dot file so they match the labels used in the file]]
  
 
=== Algorithms ===
 
=== Algorithms ===

Revision as of 15:17, 26 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.

I/O

Algorithms

Visualization

Wish List

Examples in this section are either shells or something is wrong with them that must be fixed before they can graduate into real examples.