<?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%2FInvisibleEdges</id>
		<title>Boost/BGL/InvisibleEdges - 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%2FInvisibleEdges"/>
		<link rel="alternate" type="text/html" href="http://www.programmingexamples.net/w/index.php?title=Boost/BGL/InvisibleEdges&amp;action=history"/>
		<updated>2026-06-13T12:39:07Z</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/InvisibleEdges&amp;diff=5067&amp;oldid=prev</id>
		<title>Daviddoria: moved CPP/Boost/BGL/InvisibleEdges to Boost/BGL/InvisibleEdges</title>
		<link rel="alternate" type="text/html" href="http://www.programmingexamples.net/w/index.php?title=Boost/BGL/InvisibleEdges&amp;diff=5067&amp;oldid=prev"/>
				<updated>2011-11-16T12:53:04Z</updated>
		
		<summary type="html">&lt;p&gt;moved &lt;a href=&quot;/wiki/CPP/Boost/BGL/InvisibleEdges&quot; class=&quot;mw-redirect&quot; title=&quot;CPP/Boost/BGL/InvisibleEdges&quot;&gt;CPP/Boost/BGL/InvisibleEdges&lt;/a&gt; to &lt;a href=&quot;/wiki/Boost/BGL/InvisibleEdges&quot; title=&quot;Boost/BGL/InvisibleEdges&quot;&gt;Boost/BGL/InvisibleEdges&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://www.programmingexamples.net/w/index.php?title=Boost/BGL/InvisibleEdges&amp;diff=5008&amp;oldid=prev</id>
		<title>Daviddoria at 22:22, 15 November 2011</title>
		<link rel="alternate" type="text/html" href="http://www.programmingexamples.net/w/index.php?title=Boost/BGL/InvisibleEdges&amp;diff=5008&amp;oldid=prev"/>
				<updated>2011-11-15T22:22:33Z</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:22, 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 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&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;Note: write_graphviz_dp is not defined &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;in &lt;/del&gt;Boost 1.&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;38, but it is in 1&lt;/del&gt;.&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;46 (I'm not sure when it was introduced)&lt;/del&gt;.&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;Note: write_graphviz_dp is not defined &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;for &lt;/ins&gt;Boost &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;versions less than &lt;/ins&gt;1.&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;44&lt;/ins&gt;.&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;0&lt;/ins&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;&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;==InvisibleEdges.cpp==&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;==InvisibleEdges.cpp==&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/InvisibleEdges&amp;diff=4550&amp;oldid=prev</id>
		<title>Daviddoria: Created page with 'Note: write_graphviz_dp is not defined in Boost 1.38, but it is in 1.46 (I'm not sure when it was introduced).  ==InvisibleEdges.cpp== &lt;source lang=&quot;cpp&quot;&gt; #include &lt;iostream&gt; #in…'</title>
		<link rel="alternate" type="text/html" href="http://www.programmingexamples.net/w/index.php?title=Boost/BGL/InvisibleEdges&amp;diff=4550&amp;oldid=prev"/>
				<updated>2011-06-22T01:02:46Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;#039;Note: write_graphviz_dp is not defined in Boost 1.38, but it is in 1.46 (I&amp;#039;m not sure when it was introduced).  ==InvisibleEdges.cpp== &amp;lt;source lang=&amp;quot;cpp&amp;quot;&amp;gt; #include &amp;lt;iostream&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;Note: write_graphviz_dp is not defined in Boost 1.38, but it is in 1.46 (I'm not sure when it was introduced).&lt;br /&gt;
&lt;br /&gt;
==InvisibleEdges.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;string&amp;gt;&lt;br /&gt;
#include &amp;lt;fstream&amp;gt;&lt;br /&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;
struct StyleProperty&lt;br /&gt;
{&lt;br /&gt;
  std::string style;&lt;br /&gt;
};&lt;br /&gt;
&lt;br /&gt;
typedef boost::undirected_graph&amp;lt;boost::no_property, StyleProperty&amp;gt; Graph;&lt;br /&gt;
&lt;br /&gt;
// Normal edges are written to a graphviz dot file with:&lt;br /&gt;
// 1--2&lt;br /&gt;
// To make an edge invisible, it must be written as:&lt;br /&gt;
// 1--2 [style=invis];&lt;br /&gt;
&lt;br /&gt;
int main(int argc, char*argv[])&lt;br /&gt;
{&lt;br /&gt;
  // Verify arguments&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;
&lt;br /&gt;
  // Parse arguments&lt;br /&gt;
  std::string filename = argv[1];&lt;br /&gt;
  std::ofstream fout(filename.c_str());&lt;br /&gt;
&lt;br /&gt;
  // Create a graph&lt;br /&gt;
  Graph g;&lt;br /&gt;
&lt;br /&gt;
  // Add 3 vertices&lt;br /&gt;
  Graph::vertex_descriptor v0 = g.add_vertex();&lt;br /&gt;
  Graph::vertex_descriptor v1 = g.add_vertex();&lt;br /&gt;
  Graph::vertex_descriptor v2 = g.add_vertex();&lt;br /&gt;
&lt;br /&gt;
  // Setup &amp;quot;styles&amp;quot; for the edges&lt;br /&gt;
  StyleProperty styleInvisible;&lt;br /&gt;
  styleInvisible.style = &amp;quot;invis&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
  StyleProperty styleNormal;&lt;br /&gt;
  styleNormal.style = &amp;quot;normal&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
  // Add two edges. The first will be invisible.&lt;br /&gt;
  boost::add_edge(v0,v1,styleInvisible, g);&lt;br /&gt;
  boost::add_edge(v1,v2,styleNormal, g);&lt;br /&gt;
&lt;br /&gt;
  // Setup the dynamic property which will be used to write the graph with edge properties&lt;br /&gt;
  boost::dynamic_properties dp;&lt;br /&gt;
  dp.property(&amp;quot;style&amp;quot;, get(&amp;amp;StyleProperty::style, g));&lt;br /&gt;
  dp.property(&amp;quot;node_id&amp;quot;, get(boost::vertex_index, g));&lt;br /&gt;
&lt;br /&gt;
  // Write out the graph&lt;br /&gt;
  boost::write_graphviz_dp(std::cout, g, dp);&lt;br /&gt;
  boost::write_graphviz_dp(fout, g, dp);&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(InvisibleEdges)&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(InvisibleEdges InvisibleEdges.cpp)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Daviddoria</name></author>	</entry>

	</feed>