dendrogram option added. function to write the cid -> edge.