Hi,

when using graph-tool from C++, you can use one or more PropertyMaps. In
the documentation they are always given as an extra argument. Since
graph-tool has internal PropertyMaps, is it possible to extract internal
PropertyMaps out of the GraphInterface object?

In pseudo code (like in the documentation):
```
void kcore_bind(GraphInterface& gi)
{
    // Vertex property map of type int32_t
    typedef typename vprop_map_t<int32_t>::type vprop_t;
    vprop_t c = 
boost::any_cast<vprop_t>(gi.get_internal_vertex_property_map("foo"));

    gt_dispatch<>()
        ([&](auto& g){ kcore_decomposition(g, c.get_unchecked()); },
         all_graph_views()) (gi.get_graph_view());
}
```

Is there a way to simulate the `get_internal_vertex_property_map`
method?

Gerion

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
graph-tool mailing list
[email protected]
https://lists.skewed.de/mailman/listinfo/graph-tool

Reply via email to