package berack96.sim.util.graph.view.edge; import berack96.sim.util.graph.Edge; import berack96.sim.util.graph.view.vertex.VertexComponent; import java.awt.*; public class EdgeComponent extends Component { private static final long serialVersionUID = 1L; public final VertexComponent source; public final VertexComponent destination; public final W weight; public final Edge edge; public EdgeComponent(VertexComponent source, VertexComponent destination, W weight) { this.source = source; this.destination = destination; this.weight = weight; this.edge = new Edge<>(source.vertex.getValue(), destination.vertex.getValue(), weight); } }