mirror of
https://github.com/boostorg/graph.git
synced 2026-07-21 13:23:42 +00:00
Compare commits
1 Commits
CMake
...
boost-1.20.1
| Author | SHA1 | Date | |
|---|---|---|---|
| 59458e444d |
@@ -95,14 +95,14 @@ the value of the properties can be given.
|
||||
<table border>
|
||||
|
||||
<tr>
|
||||
<TD><TT>add_edge(u, v, ep, g)</TT></TD>
|
||||
<TD><TT>add_edge(g, u, v, ep)</TT></TD>
|
||||
<TD>Inserts the edge <i>(u,v)</i> into the graph, and
|
||||
copies object <TT>ep</TT> into the property property for that edge.<br>
|
||||
Return type: <TT>std::pair<edge_descriptor, bool></TT></TD>
|
||||
</TR>
|
||||
|
||||
<tr>
|
||||
<TD><TT>add_vertex(vp, g)</TT></TD>
|
||||
<TD><TT>add_vertex(g, vp)</TT></TD>
|
||||
<TD>
|
||||
Add a new vertex to the graph and copy <TT>vp</TT> into the property
|
||||
property for the new vertex. The <TT>vertex_descriptor</TT> for the new
|
||||
@@ -130,8 +130,8 @@ Return type: <TT>vertex_descriptor</TT>
|
||||
typedef typename boost::graph_traits<G>::edge_descriptor edge_descriptor;
|
||||
void constraints() {
|
||||
function_requires< MutableGraphConcept<G> >();
|
||||
v = add_vertex(vp, g);
|
||||
p = add_edge(u, v, ep, g);
|
||||
v = add_vertex(g, vp);
|
||||
p = add_edge(g, u, v, ep);
|
||||
}
|
||||
G g;
|
||||
std::pair<edge_descriptor, bool> p;
|
||||
|
||||
Reference in New Issue
Block a user