Use optional third argument as edge attribute.