Fix distance matrix

This commit is contained in:
Oleg Sh 2022-03-06 21:19:17 +02:00
parent 1eaa035cc5
commit a60535dd6e
2 changed files with 6 additions and 6 deletions

View File

@ -1083,14 +1083,14 @@ ShowDistanceMatrix.prototype.GetIncidenceMatrix = function (rawMatrix)
{
for (var j = 0; j < rawMatrix[i].length; j++)
{
if ((new Graph()).infinity == rawMatrix[i][j])
{
matrix += '\u221E';
}
else if (i == j)
if (i == j)
{
matrix += "0";
}
else if ((new Graph()).infinity == rawMatrix[i][j])
{
matrix += '\u221E';
}
else
{
matrix += rawMatrix[i][j];

View File

@ -10,7 +10,7 @@
<script src="<?= Root('i/js/dev/jquery-ui.js')?>"></script>
<script src="<?= Root('i/js/dev/jquery.feedback_me.js')?>"></script>
<script src="<?= Root("script/example.js?v=56")?>" ></script>
<script src="<?= Root("script/example.js?v=57")?>" ></script>
<!-- Yandex.RTB -->
<script>window.yaContextCb=window.yaContextCb||[]</script>