filter graph primitive