Hi, the documentation describes that GraphView can be given a unary function to filter vertices or edges. I have tried that and it seems to fail. My GraphView has not the expected vertices and edges. However, my assumption is that the filter is only evaluated one time (at initialization). Let me make an example: ``` g = graph_tool.Graph() a = graph_tool.GraphView(g, vfilt=...) fill_the_graph(g) do_stuff_with(a) # <- here a does not contain any data ```
From the documentation, it seems that graph_tool constructs a property from the filter function and uses this for filtering (therefore also needing O(N)), but fill this property only on construction. Can you mention this in the documentation as a hint or warning?
Maybe also a recalculate function for GraphView is meaningful that evaluates the lambda function again. Best, Gerion