added ports information and moved weight field in Edge