Fixed the EDGE_CONTRACTION and added --dot-energy option.