Fixed edge weight updating, added sample CP4.14, modified the enumeration name