cleaned up graphml generator