Edge weight is a template parameter now
unique push to vector