weights and colors of edges