Edge weight setting functions works well now.