Use the Negative node to invert a matte. By inserting the Negative node between the Matte Edge and the GMask nodes in the processing pipeline, the matte is automatically inverted. The Negative node has no settings to configure.
The Negative node is inserted to the schematic and your matte is inverted.