[graph-tool] C++ extension: retrieve the filtered graph