Hi All ,�<div><br></div><div>I've been trying to use a custom structure for describing the various edge properties of a graph. I'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<listS, vecS, bidirectionalS,</div> <div>�� � � � � � � � � � � � � � �property<vertex_name_t, std::string>,</div><div>�� � � � � � � � � � � � � � �edge_properties > Graph;</div><div><br></div><div><br></div><div>This allows me to create a Graph instance g. I'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<Graph, vertex_name_t>::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>"test.cpp: 75: error: expected primary-expression before ',' token"</div> <div><br></div><div>test.cpp</div><div><br></div><div>71: property_map<Graph, edge_properties>::type � �epr;</div><div><div>72: property_map<Graph, vertex_name_t>::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've tried various variants but seems to me i'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>