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

	<entry>
		<id>http://programmingexamples.net/w/index.php?title=Boost/BGL/IO/WriteGraph&amp;diff=5069&amp;oldid=prev</id>
		<title>Daviddoria: moved Boost/BGL/WriteGraph to Boost/BGL/IO/WriteGraph</title>
		<link rel="alternate" type="text/html" href="http://programmingexamples.net/w/index.php?title=Boost/BGL/IO/WriteGraph&amp;diff=5069&amp;oldid=prev"/>
				<updated>2011-11-16T12:53:13Z</updated>
		
		<summary type="html">&lt;p&gt;moved &lt;a href=&quot;/wiki/Boost/BGL/WriteGraph&quot; class=&quot;mw-redirect&quot; title=&quot;Boost/BGL/WriteGraph&quot;&gt;Boost/BGL/WriteGraph&lt;/a&gt; to &lt;a href=&quot;/wiki/Boost/BGL/IO/WriteGraph&quot; title=&quot;Boost/BGL/IO/WriteGraph&quot;&gt;Boost/BGL/IO/WriteGraph&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:53, 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://programmingexamples.net/w/index.php?title=Boost/BGL/IO/WriteGraph&amp;diff=5055&amp;oldid=prev</id>
		<title>Daviddoria: moved CPP/Boost/BGL/WriteGraph to Boost/BGL/WriteGraph</title>
		<link rel="alternate" type="text/html" href="http://programmingexamples.net/w/index.php?title=Boost/BGL/IO/WriteGraph&amp;diff=5055&amp;oldid=prev"/>
				<updated>2011-11-16T12:52:01Z</updated>
		
		<summary type="html">&lt;p&gt;moved &lt;a href=&quot;/wiki/CPP/Boost/BGL/WriteGraph&quot; class=&quot;mw-redirect&quot; title=&quot;CPP/Boost/BGL/WriteGraph&quot;&gt;CPP/Boost/BGL/WriteGraph&lt;/a&gt; to &lt;a href=&quot;/wiki/Boost/BGL/WriteGraph&quot; class=&quot;mw-redirect&quot; title=&quot;Boost/BGL/WriteGraph&quot;&gt;Boost/BGL/WriteGraph&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:52, 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://programmingexamples.net/w/index.php?title=Boost/BGL/IO/WriteGraph&amp;diff=4565&amp;oldid=prev</id>
		<title>Daviddoria: /* output.dot */</title>
		<link rel="alternate" type="text/html" href="http://programmingexamples.net/w/index.php?title=Boost/BGL/IO/WriteGraph&amp;diff=4565&amp;oldid=prev"/>
				<updated>2011-06-28T15:29:59Z</updated>
		
		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;output.dot&lt;/span&gt;&lt;/span&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 15:29, 28 June 2011&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 60:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 60:&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;&amp;lt;/source&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;&amp;lt;/source&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&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;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&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;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;You can then convert the graph to an image with:&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&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;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt; neato -Tpng eroded_0.dot &amp;gt; eroded_0.png&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Daviddoria</name></author>	</entry>

	<entry>
		<id>http://programmingexamples.net/w/index.php?title=Boost/BGL/IO/WriteGraph&amp;diff=4505&amp;oldid=prev</id>
		<title>Daviddoria: Created page with '==WriteGraph.cpp== &lt;source lang=&quot;cpp&quot;&gt; // http://www.boost.org/doc/libs/1_38_0/libs/graph/doc/write-graphviz.html  #include &lt;iostream&gt; #include &lt;string&gt; #include &lt;fstream&gt;  //#in…'</title>
		<link rel="alternate" type="text/html" href="http://programmingexamples.net/w/index.php?title=Boost/BGL/IO/WriteGraph&amp;diff=4505&amp;oldid=prev"/>
				<updated>2011-06-08T00:41:53Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;#039;==WriteGraph.cpp== &amp;lt;source lang=&amp;quot;cpp&amp;quot;&amp;gt; // http://www.boost.org/doc/libs/1_38_0/libs/graph/doc/write-graphviz.html  #include &amp;lt;iostream&amp;gt; #include &amp;lt;string&amp;gt; #include &amp;lt;fstream&amp;gt;  //#in…&amp;#039;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==WriteGraph.cpp==&lt;br /&gt;
&amp;lt;source lang=&amp;quot;cpp&amp;quot;&amp;gt;&lt;br /&gt;
// http://www.boost.org/doc/libs/1_38_0/libs/graph/doc/write-graphviz.html&lt;br /&gt;
&lt;br /&gt;
#include &amp;lt;iostream&amp;gt;&lt;br /&gt;
#include &amp;lt;string&amp;gt;&lt;br /&gt;
#include &amp;lt;fstream&amp;gt;&lt;br /&gt;
&lt;br /&gt;
//#include &amp;lt;boost/graph/adjacency_list.hpp&amp;gt;&lt;br /&gt;
#include &amp;lt;boost/graph/undirected_graph.hpp&amp;gt;&lt;br /&gt;
#include &amp;lt;boost/graph/graphviz.hpp&amp;gt;&lt;br /&gt;
&lt;br /&gt;
typedef boost::undirected_graph&amp;lt;boost::no_property&amp;gt; Graph;&lt;br /&gt;
&lt;br /&gt;
int main(int argc, char*argv[])&lt;br /&gt;
{&lt;br /&gt;
  if(argc &amp;lt; 2)&lt;br /&gt;
  {&lt;br /&gt;
    std::cerr &amp;lt;&amp;lt; &amp;quot;Required: filename.dot&amp;quot; &amp;lt;&amp;lt; std::endl;&lt;br /&gt;
    return -1;&lt;br /&gt;
  }&lt;br /&gt;
  std::string filename = argv[1];&lt;br /&gt;
  std::ofstream fout(filename.c_str());&lt;br /&gt;
&lt;br /&gt;
  Graph g;&lt;br /&gt;
  Graph::vertex_descriptor v0 = g.add_vertex();&lt;br /&gt;
  Graph::vertex_descriptor v1 = g.add_vertex();&lt;br /&gt;
  boost::add_edge(v0,v1,g);&lt;br /&gt;
  &lt;br /&gt;
  boost::write_graphviz(fout,g);&lt;br /&gt;
&lt;br /&gt;
  return 0;&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(WriteGraph)&lt;br /&gt;
&lt;br /&gt;
set(Boost_USE_MULTITHREADED ON)&lt;br /&gt;
FIND_PACKAGE(Boost 1.38 COMPONENTS program_options 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(WriteGraph WriteGraph.cpp)&lt;br /&gt;
target_link_libraries(WriteGraph boost_graph)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==output.dot==&lt;br /&gt;
The file that is produced looks like:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
graph G {&lt;br /&gt;
0;&lt;br /&gt;
1;&lt;br /&gt;
0--1 ;&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>