Email Record: Shape Analysis Based on Depth-Ordering