<?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%2FEdgeExists</id>
		<title>Boost/BGL/EdgeExists - 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%2FEdgeExists"/>
		<link rel="alternate" type="text/html" href="http://www.programmingexamples.net/w/index.php?title=Boost/BGL/EdgeExists&amp;action=history"/>
		<updated>2026-06-10T11:26:53Z</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/EdgeExists&amp;diff=5019&amp;oldid=prev</id>
		<title>Daviddoria: moved CPP/Boost/BGL/EdgeExists to Boost/BGL/EdgeExists</title>
		<link rel="alternate" type="text/html" href="http://www.programmingexamples.net/w/index.php?title=Boost/BGL/EdgeExists&amp;diff=5019&amp;oldid=prev"/>
				<updated>2011-11-16T12:48:07Z</updated>
		
		<summary type="html">&lt;p&gt;moved &lt;a href=&quot;/wiki/CPP/Boost/BGL/EdgeExists&quot; class=&quot;mw-redirect&quot; title=&quot;CPP/Boost/BGL/EdgeExists&quot;&gt;CPP/Boost/BGL/EdgeExists&lt;/a&gt; to &lt;a href=&quot;/wiki/Boost/BGL/EdgeExists&quot; title=&quot;Boost/BGL/EdgeExists&quot;&gt;Boost/BGL/EdgeExists&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:48, 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/EdgeExists&amp;diff=4540&amp;oldid=prev</id>
		<title>Daviddoria: Created page with '==EdgeExists.cpp== &lt;source lang=&quot;cpp&quot;&gt; #include &lt;iostream&gt; #include &lt;boost/graph/adjacency_list.hpp&gt;  typedef boost::adjacency_list&lt;boost::vecS, boost::vecS, boost::undirectedS&gt; …'</title>
		<link rel="alternate" type="text/html" href="http://www.programmingexamples.net/w/index.php?title=Boost/BGL/EdgeExists&amp;diff=4540&amp;oldid=prev"/>
				<updated>2011-06-14T01:11:26Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;#039;==EdgeExists.cpp== &amp;lt;source lang=&amp;quot;cpp&amp;quot;&amp;gt; #include &amp;lt;iostream&amp;gt; #include &amp;lt;boost/graph/adjacency_list.hpp&amp;gt;  typedef boost::adjacency_list&amp;lt;boost::vecS, boost::vecS, boost::undirectedS&amp;gt; …&amp;#039;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==EdgeExists.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/adjacency_list.hpp&amp;gt;&lt;br /&gt;
&lt;br /&gt;
typedef boost::adjacency_list&amp;lt;boost::vecS, boost::vecS, boost::undirectedS&amp;gt; Graph;&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;&lt;br /&gt;
  Graph::vertex_descriptor v0 = boost::add_vertex(g);&lt;br /&gt;
  Graph::vertex_descriptor v1 = boost::add_vertex(g);&lt;br /&gt;
&lt;br /&gt;
  // Check if an edge between v0 and v1 exists. It should not at this point.&lt;br /&gt;
  std::cout &amp;lt;&amp;lt; &amp;quot;Edge exists?&amp;quot; &amp;lt;&amp;lt; boost::edge(v0, v1, g).second &amp;lt;&amp;lt; std::endl; // false&lt;br /&gt;
&lt;br /&gt;
  // Add an edge between v0 and v1.&lt;br /&gt;
  std::pair&amp;lt;Graph::edge_descriptor, bool&amp;gt; e0 = boost::add_edge(v0, v1, g);&lt;br /&gt;
&lt;br /&gt;
  // Check again if an edge between v0 and v1 exists. It should now.&lt;br /&gt;
  std::cout &amp;lt;&amp;lt; &amp;quot;Edge exists?&amp;quot; &amp;lt;&amp;lt; boost::edge(v0, v1, g).second &amp;lt;&amp;lt; std::endl; // true&lt;br /&gt;
&lt;br /&gt;
  // A demonstration of the full return type of edge(). At this point, retrievedEdge.first&lt;br /&gt;
  // should be exactly equal to e0&lt;br /&gt;
  std::pair&amp;lt;Graph::edge_descriptor, bool&amp;gt; retrievedEdge = boost::edge(v0, v1, g);&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(EdgeExists)&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(EdgeExists EdgeExists.cpp)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Daviddoria</name></author>	</entry>

	</feed>