Merge pull request #26 from serd2011/master

Fixed missprint in radius and diameter algorithm in Russian
This commit is contained in:
Unick Soft 2021-09-16 10:03:52 +02:00 committed by GitHub
commit b2919829e3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -43,7 +43,7 @@ RadiusAndDiameter.prototype.getMessage = function(local)
return (local == "ru" ? "Граф содержит только одну вершину" : "Graph contains only one vertex");
}
var text = (local == "ru" ? "Радуис граф: " : "Graph radius: ") + this.radius;
var text = (local == "ru" ? "Радиус графа: " : "Graph radius: ") + this.radius;
text = text + " (";
for (i = 0; i < this.radiusSelectedObjects.length; i++)
@ -55,7 +55,7 @@ RadiusAndDiameter.prototype.getMessage = function(local)
}
text = text + ").";
text = text + (local == "ru" ? " Диаметр граф: " : "Graph diameter: ") + this.diameter;
text = text + (local == "ru" ? " Диаметр графа: " : "Graph diameter: ") + this.diameter;
text = text + " (";
for (i = 0; i < this.diameterSelectedObjects.length; i++)