I'm using some code that I got from an online source for my graph theory portion of a chemical modeling project. I'm trying to make sense of this. What does the first line of code mean in regards to the class's decision of which is one overall? One is the first vertex, two is the second vertex of the class. I'm not well versed in Linear Algebra/Discrete Math, so avoid mathematically intense explanations if possible.
public Edge(Vertex one, Vertex two, int length){
this.one = (one.getElement().compareTo(two.getElement()) <= 0) ? one : two;
this.two = (this.one == one) ? two : one;
this.length = length;
}
Thanks!