On 21.09.2016 10:28, Patrick Totzke wrote: > I am toying around with a particular class of graphs for which I wrote a > subclass of `graph_tools.Graph`. It should be great to be able to use > `GraphView` for filtering (I'm implementing a divide-and-conquer > algorithm and want to recur on subgraphs), but it seems that those will > always behave as `Graph`, even if I instantiate them with an object of > my subclass.
Of course, GraphView is a subclass of Graph, not of your subclass. > Is there a better way to filter my graphs than writing a custom > `GraphView` subclass for it? You can just use the set_edge/vertex_filter() methods of Graph. Best, Tiago -- Tiago de Paula Peixoto <[email protected]> _______________________________________________ graph-tool mailing list [email protected] https://lists.skewed.de/mailman/listinfo/graph-tool
