Added support for weighted temporal edges