public Connection(Node fromNode, Node toNode, float weight) { FromNode = fromNode; ToNode = toNode; Weight = weight; }