Added multi graph supports for some algorithms.

This commit is contained in:
Oleg Sh
2020-01-25 13:18:26 +02:00
parent 7f3ae378c9
commit 0059cebea0
8 changed files with 83 additions and 74 deletions

View File

@@ -219,7 +219,11 @@ BaseAlgorithmEx.prototype.CalculateAlgorithm = function(queryString, resultCallb
$edges.each(function(){
var source = $(this).attr('source');
var target = $(this).attr('target');
var edge = graph.FindEdge(source, target);
var edge = graph.FindEdge(source, target);
if (typeof $(this).attr('id') !== 'undefined')
{
edge = graph.FindEdgeById($(this).attr('id'));
}
pathObjects.push(edge);
$data = $(this).find("data");