Find_vertex and vector property map


Is there any efficient way (better than looping over all vertices) to find every vertex with specific element in vector property map?

I’m trying to create network of citations with authors as nodes, from network of papers, where edges are citations and every node has property vector<int64_t> with IDs of authors.

I tried find_vertex, but:

find_vertex(gcit, v_authors, [145654338])

will return only vertices (papers) written solo by 145654338.


This is a FAQ:

You can use the same idea described there, but use the authors ID for the vertex dictionary.

Thanks once again!

For anyone struggling with dictionaries, I recommend this library