Update algorithm limits and error handling

This commit is contained in:
Oleg Sh
2025-10-04 19:00:08 +02:00
parent e057a2d5ab
commit 46c05d94fd
31 changed files with 225 additions and 29 deletions

View File

@@ -331,4 +331,8 @@ We have added Dutch translation 🇳🇱. Thank you Willie de Wit</a>";
$g_lang['find_all_shortest_pathes'] = "Find all shortest paths between 2 vertices";
$g_lang['number_of_shortest_pathes_from'] = "Number of shortest paths from ";
$g_lang['length_is'] = "length is ";
$g_lang['graph_is_to_large'] = "The graph is too large for this algorithm (<span id=\"current_graph_size\">X</span> vertices, <span id=\"current_edge_number\">X</span> edges).";
$g_lang['algorith_supports_max_limit'] = "The algorithm supports graphs of size no larger than <span id=\"algorithm_max_limit\">X</span> vertices and <span id=\"algorithm_edge_limit\">X</span> edges.";
$g_lang['error'] = "Error";
?>

View File

@@ -333,4 +333,8 @@
$g_lang['find_all_shortest_pathes'] = "Find all shortest paths between 2 vertices";
$g_lang['number_of_shortest_pathes_from'] = "Number of shortest paths from ";
$g_lang['length_is'] = "length is ";
$g_lang['graph_is_to_large'] = "The graph is too large for this algorithm (<span id=\"current_graph_size\">X</span> vertices, <span id=\"current_edge_number\">X</span> edges).";
$g_lang['algorith_supports_max_limit'] = "The algorithm supports graphs of size no larger than <span id=\"algorithm_max_limit\">X</span> vertices and <span id=\"algorithm_edge_limit\">X</span> edges.";
$g_lang['error'] = "Error";
?>

View File

@@ -332,4 +332,8 @@
$g_lang['find_all_shortest_pathes'] = "Find all shortest paths between 2 vertices";
$g_lang['number_of_shortest_pathes_from'] = "Number of shortest paths from ";
$g_lang['length_is'] = "length is ";
$g_lang['graph_is_to_large'] = "The graph is too large for this algorithm (<span id=\"current_graph_size\">X</span> vertices, <span id=\"current_edge_number\">X</span> edges).";
$g_lang['algorith_supports_max_limit'] = "The algorithm supports graphs of size no larger than <span id=\"algorithm_max_limit\">X</span> vertices and <span id=\"algorithm_edge_limit\">X</span> edges.";
$g_lang['error'] = "Error";
?>

View File

@@ -290,4 +290,8 @@
$g_lang['find_all_shortest_pathes'] = "Find all shortest paths between 2 vertices";
$g_lang['number_of_shortest_pathes_from'] = "Number of shortest paths from ";
$g_lang['length_is'] = "length is ";
$g_lang['graph_is_to_large'] = "The graph is too large for this algorithm (<span id=\"current_graph_size\">X</span> vertices, <span id=\"current_edge_number\">X</span> edges).";
$g_lang['algorith_supports_max_limit'] = "The algorithm supports graphs of size no larger than <span id=\"algorithm_max_limit\">X</span> vertices and <span id=\"algorithm_edge_limit\">X</span> edges.";
$g_lang['error'] = "Error";
?>

View File

@@ -329,4 +329,8 @@
$g_lang['find_all_shortest_pathes'] = "Find all shortest paths between 2 vertices";
$g_lang['number_of_shortest_pathes_from'] = "Number of shortest paths from ";
$g_lang['length_is'] = "length is ";
$g_lang['graph_is_to_large'] = "The graph is too large for this algorithm (<span id=\"current_graph_size\">X</span> vertices, <span id=\"current_edge_number\">X</span> edges).";
$g_lang['algorith_supports_max_limit'] = "The algorithm supports graphs of size no larger than <span id=\"algorithm_max_limit\">X</span> vertices and <span id=\"algorithm_edge_limit\">X</span> edges.";
$g_lang['error'] = "Error";
?>

View File

@@ -334,4 +334,8 @@ We have added Dutch translation 🇳🇱. Thank you Willie de Wit</a>";
$g_lang['find_all_shortest_pathes'] = "Find all shortest paths between 2 vertices";
$g_lang['number_of_shortest_pathes_from'] = "Number of shortest paths from ";
$g_lang['length_is'] = "length is ";
$g_lang['graph_is_to_large'] = "The graph is too large for this algorithm (<span id=\"current_graph_size\">X</span> vertices, <span id=\"current_edge_number\">X</span> edges).";
$g_lang['algorith_supports_max_limit'] = "The algorithm supports graphs of size no larger than <span id=\"algorithm_max_limit\">X</span> vertices and <span id=\"algorithm_edge_limit\">X</span> edges.";
$g_lang['error'] = "Error";
?>

View File

@@ -333,4 +333,8 @@ Tenemos traducciones en griego 🇬🇷.</a> <a href=\"https://github.com/UnickS
$g_lang['find_all_shortest_pathes'] = "Find all shortest paths between 2 vertices";
$g_lang['number_of_shortest_pathes_from'] = "Number of shortest paths from ";
$g_lang['length_is'] = "length is ";
$g_lang['graph_is_to_large'] = "The graph is too large for this algorithm (<span id=\"current_graph_size\">X</span> vertices, <span id=\"current_edge_number\">X</span> edges).";
$g_lang['algorith_supports_max_limit'] = "The algorithm supports graphs of size no larger than <span id=\"algorithm_max_limit\">X</span> vertices and <span id=\"algorithm_edge_limit\">X</span> edges.";
$g_lang['error'] = "Error";
?>

View File

@@ -300,4 +300,8 @@
$g_lang['find_all_shortest_pathes'] = "Find all shortest paths between 2 vertices";
$g_lang['number_of_shortest_pathes_from'] = "Number of shortest paths from ";
$g_lang['length_is'] = "length is ";
$g_lang['graph_is_to_large'] = "The graph is too large for this algorithm (<span id=\"current_graph_size\">X</span> vertices, <span id=\"current_edge_number\">X</span> edges).";
$g_lang['algorith_supports_max_limit'] = "The algorithm supports graphs of size no larger than <span id=\"algorithm_max_limit\">X</span> vertices and <span id=\"algorithm_edge_limit\">X</span> edges.";
$g_lang['error'] = "Error";
?>

View File

@@ -297,4 +297,8 @@
$g_lang['find_all_shortest_pathes'] = "Find all shortest paths between 2 vertices";
$g_lang['number_of_shortest_pathes_from'] = "Number of shortest paths from ";
$g_lang['length_is'] = "length is ";
$g_lang['graph_is_to_large'] = "The graph is too large for this algorithm (<span id=\"current_graph_size\">X</span> vertices, <span id=\"current_edge_number\">X</span> edges).";
$g_lang['algorith_supports_max_limit'] = "The algorithm supports graphs of size no larger than <span id=\"algorithm_max_limit\">X</span> vertices and <span id=\"algorithm_edge_limit\">X</span> edges.";
$g_lang['error'] = "Error";
?>

View File

@@ -333,4 +333,8 @@ Dodaliśmy polskie tłumaczenie, Patryk</a>";
$g_lang['find_all_shortest_pathes'] = "Find all shortest paths between 2 vertices";
$g_lang['number_of_shortest_pathes_from'] = "Number of shortest paths from ";
$g_lang['length_is'] = "length is ";
$g_lang['graph_is_to_large'] = "The graph is too large for this algorithm (<span id=\"current_graph_size\">X</span> vertices, <span id=\"current_edge_number\">X</span> edges).";
$g_lang['algorith_supports_max_limit'] = "The algorithm supports graphs of size no larger than <span id=\"algorithm_max_limit\">X</span> vertices and <span id=\"algorithm_edge_limit\">X</span> edges.";
$g_lang['error'] = "Error";
?>

View File

@@ -298,4 +298,8 @@
$g_lang['find_all_shortest_pathes'] = "Find all shortest paths between 2 vertices";
$g_lang['number_of_shortest_pathes_from'] = "Number of shortest paths from ";
$g_lang['length_is'] = "length is ";
$g_lang['graph_is_to_large'] = "The graph is too large for this algorithm (<span id=\"current_graph_size\">X</span> vertices, <span id=\"current_edge_number\">X</span> edges).";
$g_lang['algorith_supports_max_limit'] = "The algorithm supports graphs of size no larger than <span id=\"algorithm_max_limit\">X</span> vertices and <span id=\"algorithm_edge_limit\">X</span> edges.";
$g_lang['error'] = "Error";
?>

View File

@@ -339,4 +339,7 @@
$g_lang['number_of_shortest_pathes_from'] = "Количество кратчайших путей из ";
$g_lang['length_is'] = "длина равна ";
$g_lang['graph_is_to_large'] = "Граф слишком большой для этого алгоритма (<span id=\"current_graph_size\">X</span> вершин, <span id=\"current_edge_number\">X</span> дуг).";
$g_lang['algorith_supports_max_limit'] = "Алгоритм поддерживает графы размером не больше <span id=\"algorithm_max_limit\">X</span> вершин и <span id=\"algorithm_edge_limit\">X</span> дуг.";
$g_lang['error'] = "Ошибка";
?>

View File

@@ -294,4 +294,8 @@
$g_lang['find_all_shortest_pathes'] = "Find all shortest paths between 2 vertices";
$g_lang['number_of_shortest_pathes_from'] = "Number of shortest paths from ";
$g_lang['length_is'] = "length is ";
$g_lang['graph_is_to_large'] = "The graph is too large for this algorithm (<span id=\"current_graph_size\">X</span> vertices, <span id=\"current_edge_number\">X</span> edges).";
$g_lang['algorith_supports_max_limit'] = "The algorithm supports graphs of size no larger than <span id=\"algorithm_max_limit\">X</span> vertices and <span id=\"algorithm_edge_limit\">X</span> edges.";
$g_lang['error'] = "Error";
?>

View File

@@ -336,4 +336,8 @@
$g_lang['find_all_shortest_pathes'] = "Знайти всі найкоротші шляхі між вершинами";
$g_lang['number_of_shortest_pathes_from'] = "Кількість найкоротших шляхів з ";
$g_lang['length_is'] = "довжина рівна ";
$g_lang['graph_is_to_large'] = "Граф слишком большой для этого алгоритма (<span id=\"current_graph_size\">X</span> вершин, <span id=\"current_edge_number\">X</span> дуг).";
$g_lang['algorith_supports_max_limit'] = "Алгоритм поддерживает графы размером не больше <span id=\"algorithm_max_limit\">X</span> вершин и <span id=\"algorithm_edge_limit\">X</span> дуг.";
$g_lang['error'] = "Ошибка";
?>