def _getSparsifiedGraph(self, G, parameter, attribute): gf = GlobalThresholdFilter(G, attribute, parameter, True) return gf.calculate()