<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://www.programmingexamples.net/w/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://www.programmingexamples.net/w/index.php?action=history&amp;feed=atom&amp;title=Boost%2FBGL%2FDirectedGraph</id>
		<title>Boost/BGL/DirectedGraph - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://www.programmingexamples.net/w/index.php?action=history&amp;feed=atom&amp;title=Boost%2FBGL%2FDirectedGraph"/>
		<link rel="alternate" type="text/html" href="http://www.programmingexamples.net/w/index.php?title=Boost/BGL/DirectedGraph&amp;action=history"/>
		<updated>2026-05-25T11:44:50Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.23.5</generator>

	<entry>
		<id>http://www.programmingexamples.net/w/index.php?title=Boost/BGL/DirectedGraph&amp;diff=5037&amp;oldid=prev</id>
		<title>Daviddoria: moved CPP/Boost/BGL/DirectedGraph to Boost/BGL/DirectedGraph</title>
		<link rel="alternate" type="text/html" href="http://www.programmingexamples.net/w/index.php?title=Boost/BGL/DirectedGraph&amp;diff=5037&amp;oldid=prev"/>
				<updated>2011-11-16T12:50:21Z</updated>
		
		<summary type="html">&lt;p&gt;moved &lt;a href=&quot;/wiki/CPP/Boost/BGL/DirectedGraph&quot; class=&quot;mw-redirect&quot; title=&quot;CPP/Boost/BGL/DirectedGraph&quot;&gt;CPP/Boost/BGL/DirectedGraph&lt;/a&gt; to &lt;a href=&quot;/wiki/Boost/BGL/DirectedGraph&quot; title=&quot;Boost/BGL/DirectedGraph&quot;&gt;Boost/BGL/DirectedGraph&lt;/a&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;tr style='vertical-align: top;'&gt;
				&lt;td colspan='1' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='1' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 12:50, 16 November 2011&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan='2' style='text-align: center;'&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Daviddoria</name></author>	</entry>

	<entry>
		<id>http://www.programmingexamples.net/w/index.php?title=Boost/BGL/DirectedGraph&amp;diff=5010&amp;oldid=prev</id>
		<title>Daviddoria at 22:50, 15 November 2011</title>
		<link rel="alternate" type="text/html" href="http://www.programmingexamples.net/w/index.php?title=Boost/BGL/DirectedGraph&amp;diff=5010&amp;oldid=prev"/>
				<updated>2011-11-15T22:50:25Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 22:50, 15 November 2011&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 5:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 5:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#include &amp;lt;boost/graph/adjacency_list.hpp&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#include &amp;lt;boost/graph/adjacency_list.hpp&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;typedef boost::adjacency_list&amp;lt;boost::vecS, boost::vecS, boost::&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;bidirectionalS&lt;/del&gt;&amp;gt; Graph; // only have access to out_edges&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;typedef boost::adjacency_list&amp;lt;boost::vecS, boost::vecS, boost::&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;directedS&lt;/ins&gt;&amp;gt; Graph; // only have access to out_edges&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;int main(int,char*[])&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;int main(int,char*[])&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Daviddoria</name></author>	</entry>

	<entry>
		<id>http://www.programmingexamples.net/w/index.php?title=Boost/BGL/DirectedGraph&amp;diff=588&amp;oldid=prev</id>
		<title>Daviddoria: Created page with '==DirectedGraph.cpp== &lt;source lang=&quot;cpp&quot;&gt; #include &lt;iostream&gt; #include &lt;boost/graph/graph_traits.hpp&gt; #include &lt;boost/graph/adjacency_list.hpp&gt;  typedef boost::adjacency_list&lt;boo…'</title>
		<link rel="alternate" type="text/html" href="http://www.programmingexamples.net/w/index.php?title=Boost/BGL/DirectedGraph&amp;diff=588&amp;oldid=prev"/>
				<updated>2011-01-27T15:43:09Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;#039;==DirectedGraph.cpp== &amp;lt;source lang=&amp;quot;cpp&amp;quot;&amp;gt; #include &amp;lt;iostream&amp;gt; #include &amp;lt;boost/graph/graph_traits.hpp&amp;gt; #include &amp;lt;boost/graph/adjacency_list.hpp&amp;gt;  typedef boost::adjacency_list&amp;lt;boo…&amp;#039;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==DirectedGraph.cpp==&lt;br /&gt;
&amp;lt;source lang=&amp;quot;cpp&amp;quot;&amp;gt;&lt;br /&gt;
#include &amp;lt;iostream&amp;gt;&lt;br /&gt;
#include &amp;lt;boost/graph/graph_traits.hpp&amp;gt;&lt;br /&gt;
#include &amp;lt;boost/graph/adjacency_list.hpp&amp;gt;&lt;br /&gt;
&lt;br /&gt;
typedef boost::adjacency_list&amp;lt;boost::vecS, boost::vecS, boost::bidirectionalS&amp;gt; Graph; // only have access to out_edges&lt;br /&gt;
&lt;br /&gt;
int main(int,char*[])&lt;br /&gt;
{&lt;br /&gt;
  // Create a graph object&lt;br /&gt;
  Graph g(3);&lt;br /&gt;
&lt;br /&gt;
  boost::add_edge(0,1,g);&lt;br /&gt;
  boost::add_edge(1,2,g);&lt;br /&gt;
&lt;br /&gt;
  std::cout &amp;lt;&amp;lt; &amp;quot;Out edges: &amp;quot; &amp;lt;&amp;lt; std::endl;&lt;br /&gt;
  // Get a list of outgoing edges from vertex 1&lt;br /&gt;
  typedef boost::graph_traits &amp;lt; Graph &amp;gt;::out_edge_iterator out_edge_iterator;&lt;br /&gt;
  std::pair&amp;lt;out_edge_iterator, out_edge_iterator&amp;gt; outEdges =&lt;br /&gt;
    boost::out_edges(1, g);&lt;br /&gt;
&lt;br /&gt;
  for(; outEdges.first != outEdges.second; ++outEdges.first)&lt;br /&gt;
    {&lt;br /&gt;
    std::cout &amp;lt;&amp;lt; *outEdges.first &amp;lt;&amp;lt; &amp;quot; &amp;quot;;&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
  std::cout &amp;lt;&amp;lt; std::endl;&lt;br /&gt;
  &lt;br /&gt;
  return 0;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==CMakeLists.txt==&lt;br /&gt;
&amp;lt;source lang=&amp;quot;cmake&amp;quot;&amp;gt;&lt;br /&gt;
cmake_minimum_required(VERSION 2.6)&lt;br /&gt;
&lt;br /&gt;
Project(DirectedGraph)&lt;br /&gt;
&lt;br /&gt;
set(Boost_USE_MULTITHREADED ON)&lt;br /&gt;
FIND_PACKAGE(Boost 1.38 COMPONENTS required)&lt;br /&gt;
&lt;br /&gt;
INCLUDE_DIRECTORIES(${INCLUDE_DIRECTORIES} ${Boost_INCLUDE_DIRS})&lt;br /&gt;
LINK_DIRECTORIES(${LINK_DIRECTORIES} ${Boost_LIBRARY_DIRS})&lt;br /&gt;
&lt;br /&gt;
ADD_EXECUTABLE(DirectedGraph DirectedGraph.cpp)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Daviddoria</name></author>	</entry>

	</feed>