To achieve graphtml to graphmlz conversion you have to use yEd graph editor, which allows users to transform Graph Markup Language file (.graphml) to Compressed GraphML source file format (.graphmlz).
Open .graphml in the yEd → select File menu → Save As... → Files of type Compressed GraphML (*.graphmlz) → fill the File name box → click on Save button.