mirror of
https://github.com/UnickSoft/graphonline.git
synced 2025-07-03 00:06:40 +00:00
Fix distance matrix
This commit is contained in:
parent
1eaa035cc5
commit
a60535dd6e
@ -1083,14 +1083,14 @@ ShowDistanceMatrix.prototype.GetIncidenceMatrix = function (rawMatrix)
|
|||||||
{
|
{
|
||||||
for (var j = 0; j < rawMatrix[i].length; j++)
|
for (var j = 0; j < rawMatrix[i].length; j++)
|
||||||
{
|
{
|
||||||
if ((new Graph()).infinity == rawMatrix[i][j])
|
if (i == j)
|
||||||
{
|
|
||||||
matrix += '\u221E';
|
|
||||||
}
|
|
||||||
else if (i == j)
|
|
||||||
{
|
{
|
||||||
matrix += "0";
|
matrix += "0";
|
||||||
}
|
}
|
||||||
|
else if ((new Graph()).infinity == rawMatrix[i][j])
|
||||||
|
{
|
||||||
|
matrix += '\u221E';
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
matrix += rawMatrix[i][j];
|
matrix += rawMatrix[i][j];
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
|
|
||||||
<script src="<?= Root('i/js/dev/jquery-ui.js')?>"></script>
|
<script src="<?= Root('i/js/dev/jquery-ui.js')?>"></script>
|
||||||
<script src="<?= Root('i/js/dev/jquery.feedback_me.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 -->
|
<!-- Yandex.RTB -->
|
||||||
<script>window.yaContextCb=window.yaContextCb||[]</script>
|
<script>window.yaContextCb=window.yaContextCb||[]</script>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user