Changed Edge and Label into case classes with default values for weights.