#include #include // Graph vertex and edge properties struct EdgeProperties { bool bConnectedBond; EdgeProperties(){bConnectedBond=false;} }; struct VertexProperties{ int index; int spin; bool bOnCluster; VertexProperties(): spin(){ bOnCluster = false;} ~VertexProperties(){ } }; using namespace boost; typedef adjacency_list< vecS, vecS, bidirectionalS, VertexProperties, EdgeProperties > Graph; typedef graph_traits< Graph >::vertex_iterator Vit; int main() { Graph g(9); unsigned int i = 3; Vit vi; vi = vertex(i,g); return 0; }