Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Edge.prototype.matchEdge = function (pEdge){
- //if the indexes match either way round
- if (((this.point0 == pEdge.point0 && this.point1 == pEdge.point1) || (this.point0 == pEdge.point1 && this.point1 == pEdge1.point0 && this.vector == false)) && this.weight == pEdge.weight) {
- return true;
- }else{
- return false;
- }
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement