¡@

Home 

c++ Programming Glossary: vertexid

Algorithm for selecting all edges and vertices connected to one vertex

http://stackoverflow.com/questions/5056520/algorithm-for-selecting-all-edges-and-vertices-connected-to-one-vertex

your Vertices and Edges typedef MyGraph vertex_descriptor VertexID typedef MyGraph edge_descriptor EdgeID Instanciate your graph.. your Graphviz data and feed the graph for each Vertex V VertexID vID boost add_vertex graph vID is the index of a new Vertex.. a new Vertex graph vID .name whatever Notice that graph a VertexID gives a Vertex but graph an EdgeID gives an Edge. Here's how..