Add dynamic var holding the default weight of edges