However, the the node id object is not listed as a property map (in my
case it's not the same as the label for all nodes) Is it possible to
access this value?
The id of a vertex is not interpreted to be a property. This is simply
used internally in the graphml format to differentiate between
vertices. In case the file uses "canonical" indexes (indexes go from n0
to nN-1), then the ids correspond to the vertex index used in
graph-tool, otherwise the ids are not visible after the graph is loaded.
If you want the ids to be visible, you have to mirror them as a
an actual property.
Second, what is the optimal method to find the vertice number for a
known property value(ID or label)?
There is a find_vertex() function available, which does what you want,
but it is O(N) (in C++). If you want to do it faster, you have to
build your own dictionary...
Sorry, I meant the functions in the search module.
For the search functions you have to subclass the appropriate visitor
classes in order to do something useful. You do not usually just want to
find a vertex, you want to record something about the search...
Also, with your latest version find_vertex() now works correctly on int but
not for character ID's.
If the ID is a character multiple nodes there are multiple matches
I cannot reproduce this. Would you be able to provide an example?