centrality() now also makes weights positive in computing in and out degree.