Hi All ,�<div><br></div><div>I&#39;ve been trying to use a custom structure for describing the various edge properties of a graph. I&#39;m defining a graph as the following</div><div><br></div><div>struct edge_properties�{</div>
<div><div>�� �int � � � � capacity ;�</div><div>�� �double � � �weight ;</div><div>�� �typedef struct edge_properties_tag kind ; �// NOT SURE what this does ?�</div><div>};</div></div><div><div><br></div><div>typedef boost::adjacency_list&lt;listS, vecS, bidirectionalS,</div>
<div>�� � � � � � � � � � � � � � �property&lt;vertex_name_t, std::string&gt;,</div><div>�� � � � � � � � � � � � � � �edge_properties &gt; Graph;</div><div><br></div><div><br></div><div>This allows me to create a Graph instance g. I&#39;ve been trying to retrieve the edge properties via a get call, but have not been able to do so.�</div>
<div><br></div><div>To retrieve the vertex properties doing the following works�</div><div><br></div><div><div>property_map&lt;Graph, vertex_name_t&gt;::type �v_names ;�</div><div>v_names = get(vertex_name,g) ;�</div><div>
<br></div><div>But on attempting to do something similar for retrieving the edge properties always fails with the following error message�<br><br></div><div>&quot;test.cpp: 75: error: expected primary-expression before &#39;,&#39; token&quot;</div>
<div><br></div><div>test.cpp</div><div><br></div><div>71: property_map&lt;Graph, edge_properties&gt;::type � �epr;</div><div><div>72: property_map&lt;Graph, vertex_name_t&gt;::type �v_names ;�</div><div><br></div></div><div>
<div>74: v_names = get(vertex_name,g) ;�</div><div>75: �epr = get(edge_properties,g) ;�</div></div></div><div><div><div><div><br></div><div>I&#39;ve tried various variants but seems to me i&#39;m missing something fundamental in the way boost-graph keeps the edge_properties hidden.�</div>
<div>Any pointers will be useful.�</div><div><br></div><div>Thanks in advance</div></div></div></div></div>