Changed algorithm order

This commit is contained in:
Unick Soft
2019-01-03 14:05:06 +02:00
parent d282e24590
commit db6167921e
12 changed files with 20 additions and 10 deletions

View File

@@ -366,7 +366,7 @@ Coloring.prototype.getObjectSelectedGroup = function(object)
Coloring.prototype.getPriority = function() Coloring.prototype.getPriority = function()
{ {
return -9.7; return -9.0;
} }

View File

@@ -110,7 +110,7 @@ FindConnectedComponentNew.prototype.getObjectSelectedGroup = function(object)
FindConnectedComponentNew.prototype.getPriority = function() FindConnectedComponentNew.prototype.getPriority = function()
{ {
return -9; return 0;
} }

View File

@@ -79,7 +79,7 @@ FindEulerianLoop.prototype.getObjectSelectedGroup = function(object)
FindEulerianLoop.prototype.getPriority = function() FindEulerianLoop.prototype.getPriority = function()
{ {
return -7; return -7.5;
} }
// Factory for connected components. // Factory for connected components.

View File

@@ -79,7 +79,7 @@ FindEulerianPath.prototype.getObjectSelectedGroup = function(object)
FindEulerianPath.prototype.getPriority = function() FindEulerianPath.prototype.getPriority = function()
{ {
return -7; return -7.5;
} }
// Factory for connected components. // Factory for connected components.

View File

@@ -180,7 +180,7 @@ FloidAlgorithm.prototype.changedType = function()
FloidAlgorithm.prototype.getPriority = function() FloidAlgorithm.prototype.getPriority = function()
{ {
return -9.5; return 0;
} }
FloidAlgorithm.prototype.removeAllEdges = function() FloidAlgorithm.prototype.removeAllEdges = function()

View File

@@ -154,6 +154,11 @@ GraphReorder.prototype.getObjectSelectedGroup = function(object)
return 0; return 0;
} }
GraphReorder.prototype.getPriority = function()
{
return -8.5;
}
// Factory for connected components. // Factory for connected components.
function CreateAlgorithmGraphReorder(graph, app) function CreateAlgorithmGraphReorder(graph, app)

View File

@@ -79,7 +79,7 @@ FindHamiltonianLoop.prototype.getObjectSelectedGroup = function(object)
FindHamiltonianLoop.prototype.getPriority = function() FindHamiltonianLoop.prototype.getPriority = function()
{ {
return -7.1; return -5;
} }
// Factory for connected components. // Factory for connected components.

View File

@@ -79,7 +79,7 @@ FindHamiltonianPath.prototype.getObjectSelectedGroup = function(object)
FindHamiltonianPath.prototype.getPriority = function() FindHamiltonianPath.prototype.getPriority = function()
{ {
return -7.1; return -5;
} }
// Factory for connected components. // Factory for connected components.

View File

@@ -179,7 +179,7 @@ FindMaxFlow.prototype.getObjectSelectedGroup = function(object)
FindMaxFlow.prototype.getPriority = function() FindMaxFlow.prototype.getPriority = function()
{ {
return -9.6; return -8.0;
} }
// @return true, if you change resotry graph after use. // @return true, if you change resotry graph after use.

View File

@@ -140,6 +140,11 @@ MinimumSpanningTree.prototype.getObjectSelectedGroup = function(object)
(object instanceof BaseVertex || this.edges.indexOf(object) >= 0) ? 1 : 0; (object instanceof BaseVertex || this.edges.indexOf(object) >= 0) ? 1 : 0;
} }
MinimumSpanningTree.prototype.getPriority = function()
{
return -9.5;
}
// Factory for algorithm. // Factory for algorithm.
function CreateMinimumSpanningTree(graph, app) function CreateMinimumSpanningTree(graph, app)

View File

@@ -212,7 +212,7 @@ RadiusAndDiameter.prototype.getObjectSelectedGroup = function(object)
RadiusAndDiameter.prototype.getPriority = function() RadiusAndDiameter.prototype.getPriority = function()
{ {
return -9.6; return 0;
} }
// Factory for connected components. // Factory for connected components.

View File

@@ -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=11")?>" ></script> <script src="<?= Root("script/example.js?v=12")?>" ></script>
</head> </head>
<!-- <!--
<div class="pull-right"> <div class="pull-right">