writeGidPartitionMapForRubyForLastPartition is added for csv generation by ruby for unpartitioned graph