[graph-tool] Getting all unique values in a vector-valued vertex property map
alexandre.bovet at gmail.com
Fri Feb 10 17:37:58 CET 2017
I agree that the documentation in this case is not easy to understand.
I had a similar situation and get_2d_array() worked.
On Fri, Feb 10, 2017 at 11:26 AM, gogurt <gogurt at gmail.com> wrote:
> This might be a stupid question, but I have a graph with a
> vertex property map. That is, each vertex has a vector containing one or
> more strings encoding some metadata about the vertex.
> I want to get a single 1d-list/array containing all the unique string
> encoded in this property map, over all vertices in the graph. What's the
> best way to do that?
> I know that I'll have to use the get_2d_array() method on the property map,
> but I can't really understand what the documentation means when it says:
> "The parameter pos must be a sequence of integers which specifies the
> *indexes of the property values which will be used.*"
> View this message in context: http://main-discussion-list-
> Sent from the Main discussion list for the graph-tool project mailing list
> archive at Nabble.com.
> graph-tool mailing list
> graph-tool at skewed.de
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the graph-tool