Collection of PIG scripts for analysis and rewriting of graphs