From 37a7ac699a782788b96ac12787f1a62caeee3c2a Mon Sep 17 00:00:00 2001 From: Rob Rossmiller Date: Wed, 8 May 2024 17:09:09 -0500 Subject: [PATCH 1/9] init tests --- .gitignore | 12 +- tests/Dockerfile | 33 +++ tests/run.sh | 4 + tests/test/pyrightconfig.json | 5 + tests/test/setup.py | 73 +++++ tests/test/test_centrality.py | 274 ++++++++++++++++++ tests/test/test_community.py | 60 ++++ tests/test/test_path_finding.py | 102 +++++++ .../test/test_topological_link_prediction.py | 113 ++++++++ tests/test/util.py | 27 ++ 10 files changed, 697 insertions(+), 6 deletions(-) create mode 100644 tests/Dockerfile create mode 100755 tests/run.sh create mode 100644 tests/test/pyrightconfig.json create mode 100644 tests/test/setup.py create mode 100644 tests/test/test_centrality.py create mode 100644 tests/test/test_community.py create mode 100644 tests/test/test_path_finding.py create mode 100644 tests/test/test_topological_link_prediction.py create mode 100644 tests/test/util.py diff --git a/.gitignore b/.gitignore index 7cdc9dd4..8a80da21 100644 --- a/.gitignore +++ b/.gitignore @@ -1,15 +1,15 @@ **/.DS_Store .vscode/settings.json - - UDF/geographical/* UDF/string/* -UDF/numerical/* - - - +udf/numerical/* automdfiles.env algorithms/automdfiles.py algorithms/.env algorithms/lmao.py algorithms/automd.py +tmp +.pytest_cache +__pycache__ +.env +*.xml diff --git a/tests/Dockerfile b/tests/Dockerfile new file mode 100644 index 00000000..a9403893 --- /dev/null +++ b/tests/Dockerfile @@ -0,0 +1,33 @@ +# Use an official Python runtime as a parent image +FROM python:3.9-slim +# FROM ubuntu:latest + +# Set the working directory in the container +WORKDIR /my_home + +# Copy the current directory contents into the container +COPY ./test /my_home/test +COPY ./requirements.txt /my_home/requirements.txt +# COPY ./script.py /my_home/script.py +# COPY ./hello.sh /home/hello.sh + +# Install any needed packages specified in requirements.txt +# RUN python pip install --no-cache-dir -r /home/requirements.txt +RUN apt update +# RUN apt install python3 python3-pip -y +RUN pip install --no-cache-dir -r /my_home/requirements.txt +# RUN chmod +x hello.sh + +# Make port 80 available to the world outside this container +EXPOSE 80 + +# Define environment variable +# ENV NAME World +ENV LOGLEVEL="INFO" + +# run test1.py +# CMD ["python", "test/setup.py"] +CMD python test/setup.py; pytest --junitxml "output.xml" -n 4 +# CMD ["./hello.sh"] +# RUN python script.py +# CMD ["python", "/script.py"] diff --git a/tests/run.sh b/tests/run.sh new file mode 100755 index 00000000..df88fcc5 --- /dev/null +++ b/tests/run.sh @@ -0,0 +1,4 @@ +clear +python test/setup.py && + pytest +# pytest --junitxml "output.xml" #-n 4 diff --git a/tests/test/pyrightconfig.json b/tests/test/pyrightconfig.json new file mode 100644 index 00000000..54e8a721 --- /dev/null +++ b/tests/test/pyrightconfig.json @@ -0,0 +1,5 @@ +{ + "venvPath": "/Users/robrossmiller/.venv/", + "venv": "wml", + "typeCheckingMode": "off" +} diff --git a/tests/test/setup.py b/tests/test/setup.py new file mode 100644 index 00000000..3c1cf124 --- /dev/null +++ b/tests/test/setup.py @@ -0,0 +1,73 @@ +import json +import os +import re + +import pyTigerGraph as tg +import util +from dotenv import load_dotenv +from pyTigerGraph.datasets import Datasets +from tqdm import tqdm + +load_dotenv() +graph_name = "graph_algorithms_testing" +DEV = os.getenv("DEV", "false").lower() == "true" +pattern = re.compile(r'"name":\s*"tg_.*"') + +if __name__ == "__main__": + host_name = os.getenv("HOST_NAME") + user_name = os.getenv("USER_NAME") + password = os.getenv("PASS") + conn = tg.TigerGraphConnection( + host=host_name, + username=user_name, + password=password, + graphname=graph_name, + ) + print("checking ping") + res = conn.ping() + print(res) + if res["error"]: + exit(1) + # if DEV: + # print("dropping all") + # x = conn.gsql("drop all") + # print(x) + # load the data + dataset = Datasets("graph_algorithms_testing") + conn.ingestDataset(dataset, getToken=True) + + # install the queries + feat = conn.gds.featurizer() + installed_queries = util.get_installed_queries(conn) + algos = json.dumps(feat.algo_dict, indent=1) + queries = [ + m.split(": ")[1].replace('"', "").strip() for m in pattern.findall(algos) + ] + for q in tqdm(queries, desc="installing GDS queries"): + if q not in installed_queries: + print(q) + feat.installAlgorithm(q) + +# print("check if schema is loaded") +# print(conn.getSchema()) +# print("check if data is loaded") +# print(conn.getVertexCount()) + +# def get_baseline(): +# dataset = Datasets() +# dataset.name = "Cora" +# dataset.dataset_url = dataset.get_dataset_url() +# dataset.download_extract() +# print("dataset exists:") +# print(exists("./tmp/Cora/create_graph.gsql")) + + +# current_working_directory = Path.cwd() + +# print(current_working_directory) +# p = Path('.') +# list(p.glob('*')) + +# retcode = pytest.main(["--junitxml", "output.xml"]) +# print("return code: ") +# print(retcode) diff --git a/tests/test/test_centrality.py b/tests/test/test_centrality.py new file mode 100644 index 00000000..1b376db6 --- /dev/null +++ b/tests/test/test_centrality.py @@ -0,0 +1,274 @@ +import json +import os + +import httpx +import pytest +import util + + +class TestCentrality: + feat = util.get_featurizer() + base_url = os.environ["TG_DATA"] + # undirected graphs + graph_types1 = ["Empty", "Line", "Ring", "Hub_Spoke", "Tree"] + # directed graphs + graph_types2 = [ + "Line_Directed", + "Ring_Directed", + "Hub_Spoke_Directed", + "Tree_Directed", + ] + # weighted undirected graphs + graph_types3 = [ + "Line_Weighted", + "Ring_Weighted", + "Hub_Spoke_Weighted", + "Tree_Weighted", + ] + # weighted directed graphs + graph_types4 = [ + "Line_Directed_Weighted", + "Ring_Directed_Weighted", + "Hub_Spoke_Directed_Weighted", + "Tree_Directed_Weighted", + ] + + @pytest.mark.parametrize("test_name", graph_types1) + def test_degree_centrality1(self, test_name): + params = { + "v_type_set": ["V20"], + "e_type_set": [test_name], + "reverse_e_type_set": [test_name], + "in_degree": True, + "out_degree": False, + "top_k": 100, + "print_results": True, + "result_attribute": "", + "file_path": "", + } + url = os.path.join(self.base_url, "degree_centrality/", test_name + ".json") + baseline = httpx.get(url).text + result = json.dumps(self.feat.runAlgorithm("tg_degree_cent", params=params)) + assert sorted(baseline) == sorted(result) + + @pytest.mark.parametrize("test_name", graph_types2) + def test_degree_centrality2(self, test_name): + params = { + "v_type_set": ["V20"], + "e_type_set": [test_name], + "reverse_e_type_set": ["reverse_" + test_name], + "in_degree": True, + "out_degree": False, + "top_k": 100, + "print_results": True, + "result_attribute": "", + "file_path": "", + } + url = os.path.join( + self.base_url, "degree_centrality/in_degree/", test_name + ".json" + ) + baseline = httpx.get(url).text + result = json.dumps(self.feat.runAlgorithm("tg_degree_cent", params=params)) + assert sorted(baseline) == sorted(result) + + @pytest.mark.parametrize("test_name", graph_types2) + def test_degree_centrality3(self, test_name): + params = { + "v_type_set": ["V20"], + "e_type_set": [test_name], + "reverse_e_type_set": ["reverse_" + test_name], + "in_degree": False, + "out_degree": True, + "top_k": 100, + "print_results": True, + "result_attribute": "", + "file_path": "", + } + url = os.path.join( + self.base_url, "degree_centrality/out_degree/", test_name + ".json" + ) + baseline = httpx.get(url).text + result = json.dumps(self.feat.runAlgorithm("tg_degree_cent", params=params)) + assert sorted(baseline) == sorted(result) + + @pytest.mark.parametrize("test_name", graph_types3) + def test_weighted_degree_centrality1(self, test_name): + params = { + "v_type": "V20", + "e_type": test_name, + "reverse_e_type": test_name, + "weight_attribute": "weight", + "in_degree": True, + "out_degree": False, + "top_k": 100, + "print_results": True, + "result_attribute": "", + "file_path": "", + } + url = os.path.join( + self.base_url, "weighted_degree_centrality/", test_name + ".json" + ) + baseline = httpx.get(url).text + result = json.dumps( + self.feat.runAlgorithm("tg_weighted_degree_cent", params=params) + ) + assert sorted(baseline) == sorted(result) + + @pytest.mark.parametrize("test_name", graph_types4) + def test_weighted_degree_centrality2(self, test_name): + params = { + "v_type": "V20", + "e_type": test_name, + "reverse_e_type": "reverse_" + test_name, + "weight_attribute": "weight", + "in_degree": True, + "out_degree": False, + "top_k": 100, + "print_results": True, + "result_attribute": "", + "file_path": "", + } + url = os.path.join( + self.base_url, "weighted_degree_centrality/in_degree/", test_name + ".json" + ) + baseline = httpx.get(url).text + result = json.dumps( + self.feat.runAlgorithm("tg_weighted_degree_cent", params=params) + ) + assert sorted(baseline) == sorted(result) + + @pytest.mark.parametrize("test_name", graph_types4) + def test_weighted_degree_centrality3(self, test_name): + params = { + "v_type": "V20", + "e_type": test_name, + "reverse_e_type": "reverse_" + test_name, + "weight_attribute": "weight", + "in_degree": False, + "out_degree": True, + "top_k": 100, + "print_results": True, + "result_attribute": "", + "file_path": "", + } + url = os.path.join( + self.base_url, "weighted_degree_centrality/out_degree/", test_name + ".json" + ) + baseline = httpx.get(url).text + result = json.dumps( + self.feat.runAlgorithm("tg_weighted_degree_cent", params=params) + ) + assert sorted(baseline) == sorted(result) + + @pytest.mark.parametrize("test_name", graph_types1) + def test_closeness_centrality(self, test_name): + params = { + "v_type_set": ["V20"], + "e_type_set": [test_name], + "reverse_e_type": [test_name], + "max_hops": 100, + "top_k": 100, + "wf": True, + "print_results": True, + "result_attribute": "", + "file_path": "", + "display_edges": False, + } + url = os.path.join(self.base_url, "closeness_centrality/", test_name + ".json") + baseline = httpx.get(url).text + result = json.dumps(self.feat.runAlgorithm("tg_closeness_cent", params=params)) + assert sorted(baseline) == sorted(result) + + @pytest.mark.parametrize("test_name", graph_types2) + def test_closeness_centrality2(self, test_name): + params = { + "v_type_set": ["V20"], + "e_type_set": [test_name], + "reverse_e_type": ["reverse_" + test_name], + "max_hops": 100, + "top_k": 100, + "wf": True, + "print_results": True, + "result_attribute": "", + "file_path": "", + "display_edges": False, + } + url = os.path.join(self.base_url, "closeness_centrality/", test_name + ".json") + baseline = httpx.get(url).text + result = json.dumps(self.feat.runAlgorithm("tg_closeness_cent", params=params)) + assert sorted(baseline) == sorted(result) + + @pytest.mark.parametrize("test_name", graph_types1) + def test_harmonic_centrality(self, test_name): + params = { + "v_type_set": ["V20"], + "e_type_set": [test_name], + "reverse_e_type_set": [test_name], + "max_hops": 100, + "top_k": 100, + "wf": True, + "print_results": True, + "result_attribute": "", + "file_path": "", + "display_edges": False, + } + url = os.path.join(self.base_url, "harmonic_centrality/", test_name + ".json") + baseline = httpx.get(url).text + result = json.dumps(self.feat.runAlgorithm("tg_harmonic_cent", params=params)) + assert sorted(baseline) == sorted(result) + + @pytest.mark.parametrize("test_name", graph_types2) + def test_harmonic_centrality2(self, test_name): + params = { + "v_type_set": ["V20"], + "e_type_set": [test_name], + "reverse_e_type_set": ["reverse_" + test_name], + "max_hops": 100, + "top_k": 100, + "wf": True, + "print_results": True, + "result_attribute": "", + "file_path": "", + "display_edges": False, + } + url = os.path.join(self.base_url, "harmonic_centrality/", test_name + ".json") + baseline = httpx.get(url).text + result = json.dumps(self.feat.runAlgorithm("tg_harmonic_cent", params=params)) + assert sorted(baseline) == sorted(result) + + @pytest.mark.parametrize("test_name", graph_types1 + graph_types2) + def test_article_rank(self, test_name): + params = { + "v_type": "V20", + "e_type": test_name, + "max_change": 0.001, + "maximum_iteration": 25, + "damping": 0.85, + "top_k": 100, + "print_results": True, + "result_attribute": "", + "file_path": "", + } + url = os.path.join(self.base_url, "article_rank/", test_name + ".json") + baseline = httpx.get(url).text + result = json.dumps(self.feat.runAlgorithm("tg_article_rank", params=params)) + assert sorted(baseline) == sorted(result) + + @pytest.mark.parametrize("test_name", graph_types1 + graph_types2) + def test_pagerank(self, test_name): + params = { + "v_type": "V20", + "e_type": test_name, + "max_change": 0.001, + "maximum_iteration": 10, + "damping": 0.85, + "top_k": 100, + "print_results": True, + "result_attribute": "", + "file_path": "", + "display_edges": False, + } + url = os.path.join(self.base_url, "pagerank/", test_name + ".json") + baseline = httpx.get(url).text + result = json.dumps(self.feat.runAlgorithm("tg_pagerank", params=params)) + assert sorted(baseline) == sorted(result) diff --git a/tests/test/test_community.py b/tests/test/test_community.py new file mode 100644 index 00000000..b8af4b1a --- /dev/null +++ b/tests/test/test_community.py @@ -0,0 +1,60 @@ +import json +import os + +import pytest +import requests +import util + + +class TestCommunity: + pass + # feat = util.get_featurizer() + # base_url = os.environ["TG_DATA"] + # graph_types1 = [ + # "Empty", + # "Empty_Directed", + # "Line", + # "Line_Directed", + # "Ring", + # "Ring_Directed", + # "Hub_Spoke", + # "Hub_Spoke_Directed", + # "Hub_Connected_Hub_Spoke", + # "Tree", + # "Tree_Directed", + # "DAG_Directed", + # "Line_Weighted", + # ] + # graph_types2 = ["Complete", "Complete_Directed"] + # + # @pytest.mark.parametrize("test_name", graph_types1) + # def test_lcc1(self, test_name): + # params = { + # "v_type": "V20", + # "e_type": test_name, + # "top_k": 100, + # "print_results": True, + # "result_attribute": "", + # "file_path": "", + # "display_edges": False, + # } + # url = os.path.join(self.base_url, "lcc", test_name + ".json") + # baseline = requests.get(url).text + # result = json.dumps(self.feat.runAlgorithm("tg_lcc", params=params)) + # assert sorted(baseline) == sorted(result) + # + # @pytest.mark.parametrize("test_name", graph_types2) + # def test_lcc2(self, test_name): + # params = { + # "v_type": "V8", + # "e_type": test_name, + # "top_k": 100, + # "print_results": True, + # "result_attribute": "", + # "file_path": "", + # "display_edges": False, + # } + # url = os.path.join(self.base_url, "lcc", test_name + ".json") + # baseline = requests.get(url).text + # result = json.dumps(self.feat.runAlgorithm("tg_lcc", params=params)) + # assert sorted(baseline) == sorted(result) diff --git a/tests/test/test_path_finding.py b/tests/test/test_path_finding.py new file mode 100644 index 00000000..038e6c8d --- /dev/null +++ b/tests/test/test_path_finding.py @@ -0,0 +1,102 @@ +import json +import os + +import pytest +import requests +import util + + +class TestPathFinding: + pass + # feat = util.get_featurizer() + # base_url = os.environ["TG_DATA"] + # + # # includes unweighted directed and undirected graphs, as well as one weighted graph (Line_Weighted) + # test_graphs1 = [ + # "Empty", + # "Empty_Directed", + # "Line", + # "Line_Directed", + # "Ring", + # "Ring_Directed", + # "Hub_Spoke", + # "Hub_Spoke_Directed", + # "Hub_Connected_Hub_Spoke", + # "Tree", + # "Tree_Directed", + # "DAG_Directed", + # "Line_Weighted", + # ] + # complete = ["Complete", "Complete_Directed"] + # + # @pytest.mark.parametrize("test_name", test_graphs1) + # def test_bfs1(self, test_name): + # params = { + # "v_type_set": ["V20"], + # "e_type_set": [test_name], + # "max_hops": 10, + # "v_start": {"id": "A", "type": "V20"}, + # "print_results": True, + # "result_attribute": "", + # "file_path": "", + # "display_edges": True, + # } + # url = os.path.join(self.base_url, "bfs/", test_name + ".json") + # baseline = requests.get(url).text + # result = json.dumps(self.feat.runAlgorithm("tg_bfs", params=params)) + # assert sorted(baseline) == sorted(result) + # + # @pytest.mark.parametrize("test_name", complete) + # def test_bfs2(self, test_name): + # params = { + # "v_type_set": ["V8"], + # "e_type_set": [test_name], + # "max_hops": 10, + # "v_start": {"id": "A", "type": "V8"}, + # "print_results": True, + # "result_attribute": "", + # "file_path": "", + # "display_edges": True, + # } + # url = os.path.join(self.base_url, "bfs/", test_name + ".json") + # baseline = requests.get(url).text + # result = json.dumps(self.feat.runAlgorithm("tg_bfs", params=params)) + # assert sorted(baseline) == sorted(result) + # + # @pytest.mark.parametrize("test_name", test_graphs1) + # def test_shortest_ss_no_wt(self, test_name): + # params = { + # "source": {"id": "A", "type": "V20"}, + # "v_type_set": ["V20"], + # "e_type_set": [test_name], + # "print_limit": -1, + # "print_results": True, + # "result_attribute": "", + # "file_path": "", + # "display_edges": True, + # } + # url = os.path.join(self.base_url, "shortest_ss_no_wt/", test_name + ".json") + # baseline = requests.get(url).text + # result = json.dumps( + # self.feat.runAlgorithm("tg_shortest_ss_no_wt", params=params) + # ) + # assert sorted(baseline) == sorted(result) + # + # @pytest.mark.parametrize("test_name", complete) + # def test_shortest_ss_no_wt2(self, test_name): + # params = { + # "source": {"id": "A", "type": "V8"}, + # "v_type_set": ["V8"], + # "e_type_set": [test_name], + # "print_limit": -1, + # "print_results": True, + # "result_attribute": "", + # "file_path": "", + # "display_edges": True, + # } + # url = os.path.join(self.base_url, "shortest_ss_no_wt/", test_name + ".json") + # baseline = requests.get(url).text + # result = json.dumps( + # self.feat.runAlgorithm("tg_shortest_ss_no_wt", params=params) + # ) + # assert sorted(baseline) == sorted(result) diff --git a/tests/test/test_topological_link_prediction.py b/tests/test/test_topological_link_prediction.py new file mode 100644 index 00000000..06e6b169 --- /dev/null +++ b/tests/test/test_topological_link_prediction.py @@ -0,0 +1,113 @@ +import json +import os + +import pytest +import requests +import util + + +class TestTopologicalLinkPrediction: + pass + # feat = util.get_featurizer() + # base_url = os.environ["TG_DATA"] + # + # testdata = [ + # "topo_link1", + # "topo_link2", + # "topo_link3", + # "topo_link4", + # "topo_link5", + # "topo_link6", + # "topo_link_directed", + # ] + # testdata_sc = [ + # ("A", "B", "community_int", "INT", "test1"), + # ("A", "C", "community_int", "INT", "test2"), + # ("A", "B", "community_string", "STRING", "test3"), + # ("A", "C", "community_string", "STRING", "test4"), + # ] + # + # @pytest.mark.parametrize("test_name", testdata) + # def test_adamic_adar(self, test_name): + # params = { + # "v_source": {"id": "A", "type": "V8"}, + # "v_target": {"id": "B", "type": "V8"}, + # "e_type_set": [test_name], + # "print_results": True, + # } + # url = os.path.join(self.base_url, "adamic_adar", test_name + ".json") + # baseline = requests.get(url).text + # result = json.dumps(self.feat.runAlgorithm("tg_adamic_adar", params=params)) + # assert sorted(baseline) == sorted(result) + # + # @pytest.mark.parametrize("test_name", testdata) + # def test_common_neighbors(self, test_name): + # params = { + # "v_source": {"id": "A", "type": "V8"}, + # "v_target": {"id": "B", "type": "V8"}, + # "e_type_set": [test_name], + # "print_results": True, + # } + # url = os.path.join(self.base_url, "common_neighbors/", test_name + ".json") + # baseline = requests.get(url).text + # result = json.dumps( + # self.feat.runAlgorithm("tg_common_neighbors", params=params) + # ) + # assert sorted(baseline) == sorted(result) + # + # @pytest.mark.parametrize("test_name", testdata) + # def test_preferential_attachment(self, test_name): + # params = { + # "v_source": {"id": "A", "type": "V8"}, + # "v_target": {"id": "B", "type": "V8"}, + # "e_type_set": [test_name], + # "print_results": True, + # } + # url = os.path.join(self.base_url, "preferential_attachment/", test_name + ".json") + # baseline = requests.get(url).text + # result = json.dumps( + # self.feat.runAlgorithm("tg_preferential_attachment", params=params) + # ) + # assert sorted(baseline) == sorted(result) + # + # @pytest.mark.parametrize("test_name", testdata) + # def test_resource_allocation(self, test_name): + # params = { + # "v_source": {"id": "A", "type": "V8"}, + # "v_target": {"id": "B", "type": "V8"}, + # "e_type_set": [test_name], + # "print_results": True, + # } + # url = os.path.join(self.base_url, "resource_allocation/", test_name + ".json") + # baseline = requests.get(url).text + # result = json.dumps( + # self.feat.runAlgorithm("tg_resource_allocation", params=params) + # ) + # assert sorted(baseline) == sorted(result) + # + # @pytest.mark.parametrize("test_name", testdata) + # def test_total_neighbors(self, test_name): + # params = { + # "v_source": {"id": "A", "type": "V8"}, + # "v_target": {"id": "B", "type": "V8"}, + # "e_type_set": [test_name], + # "print_results": True, + # } + # url = os.path.join(self.base_url, "total_neighbors/", test_name + ".json") + # baseline = requests.get(url).text + # result = json.dumps(self.feat.runAlgorithm("tg_total_neighbors", params=params)) + # assert sorted(baseline) == sorted(result) + # + # @pytest.mark.parametrize("source, target, attr, attr_type, test_name", testdata_sc) + # def test_same_community(self, source, target, attr, attr_type, test_name): + # params = { + # "v_source": {"id": source, "type": "V4"}, + # "v_target": {"id": target, "type": "V4"}, + # "community_attribute": attr, + # "community_attr_type": attr_type, + # "print_results": True, + # } + # result = json.dumps(self.feat.runAlgorithm("tg_same_community", params=params)) + # url = os.path.join(self.base_url, "same_community/", test_name + ".json") + # baseline = requests.get(url).text + # assert sorted(baseline) == sorted(result) diff --git a/tests/test/util.py b/tests/test/util.py new file mode 100644 index 00000000..8eba76f1 --- /dev/null +++ b/tests/test/util.py @@ -0,0 +1,27 @@ +import os + +import pyTigerGraph as tg +from dotenv import load_dotenv + +load_dotenv() + + +def get_featurizer(): + graph_name = "graph_algorithms_testing" + + host_name = os.getenv("HOST_NAME") + user_name = os.getenv("USER_NAME") + password = os.getenv("PASS") + conn = tg.TigerGraphConnection( + host=host_name, + username=user_name, + password=password, + graphname=graph_name, + tgCloud=True, + ) + conn.getToken() + return conn.gds.featurizer() + + +def get_installed_queries(conn: tg.TigerGraphConnection): + return [k.split("/")[-1].strip() for k in conn.getInstalledQueries()] From 34cefccdc528d3a6d5663eb8f78cb12707d87066 Mon Sep 17 00:00:00 2001 From: Rob Rossmiller Date: Wed, 8 May 2024 17:10:32 -0500 Subject: [PATCH 2/9] rm pyrightconfig --- tests/test/pyrightconfig.json | 5 ----- 1 file changed, 5 deletions(-) delete mode 100644 tests/test/pyrightconfig.json diff --git a/tests/test/pyrightconfig.json b/tests/test/pyrightconfig.json deleted file mode 100644 index 54e8a721..00000000 --- a/tests/test/pyrightconfig.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "venvPath": "/Users/robrossmiller/.venv/", - "venv": "wml", - "typeCheckingMode": "off" -} From 78b93b01dd9ac257bb2f834855d7db74157c24d9 Mon Sep 17 00:00:00 2001 From: Rob Rossmiller Date: Wed, 8 May 2024 17:12:02 -0500 Subject: [PATCH 3/9] rm comments --- tests/test/setup.py | 27 --------------------------- 1 file changed, 27 deletions(-) diff --git a/tests/test/setup.py b/tests/test/setup.py index 3c1cf124..71fb8421 100644 --- a/tests/test/setup.py +++ b/tests/test/setup.py @@ -28,10 +28,6 @@ print(res) if res["error"]: exit(1) - # if DEV: - # print("dropping all") - # x = conn.gsql("drop all") - # print(x) # load the data dataset = Datasets("graph_algorithms_testing") conn.ingestDataset(dataset, getToken=True) @@ -48,26 +44,3 @@ print(q) feat.installAlgorithm(q) -# print("check if schema is loaded") -# print(conn.getSchema()) -# print("check if data is loaded") -# print(conn.getVertexCount()) - -# def get_baseline(): -# dataset = Datasets() -# dataset.name = "Cora" -# dataset.dataset_url = dataset.get_dataset_url() -# dataset.download_extract() -# print("dataset exists:") -# print(exists("./tmp/Cora/create_graph.gsql")) - - -# current_working_directory = Path.cwd() - -# print(current_working_directory) -# p = Path('.') -# list(p.glob('*')) - -# retcode = pytest.main(["--junitxml", "output.xml"]) -# print("return code: ") -# print(retcode) From 7e6dc376e66ab7a10477529c91b00148703286da Mon Sep 17 00:00:00 2001 From: Rob Rossmiller Date: Wed, 8 May 2024 17:13:18 -0500 Subject: [PATCH 4/9] rm unused dev switch --- tests/test/setup.py | 1 - 1 file changed, 1 deletion(-) diff --git a/tests/test/setup.py b/tests/test/setup.py index 71fb8421..406077c3 100644 --- a/tests/test/setup.py +++ b/tests/test/setup.py @@ -10,7 +10,6 @@ load_dotenv() graph_name = "graph_algorithms_testing" -DEV = os.getenv("DEV", "false").lower() == "true" pattern = re.compile(r'"name":\s*"tg_.*"') if __name__ == "__main__": From 8afe81f8f0cdf048a8b38f75afb80352699a0f29 Mon Sep 17 00:00:00 2001 From: Rob Rossmiller Date: Thu, 9 May 2024 16:48:23 -0500 Subject: [PATCH 5/9] use data from local storage --- .gitignore | 1 + tests/data/baseline/get_data.py | 68 +++++ .../centrality/article_rank/Empty.json | 1 + .../centrality/article_rank/Hub_Spoke.json | 1 + .../article_rank/Hub_Spoke_Directed.json | 1 + .../centrality/article_rank/Line.json | 1 + .../article_rank/Line_Directed.json | 1 + .../centrality/article_rank/Ring.json | 1 + .../article_rank/Ring_Directed.json | 1 + .../centrality/article_rank/Tree.json | 1 + .../article_rank/Tree_Directed.json | 1 + .../closeness_centrality/Empty.json | 1 + .../closeness_centrality/Hub_Spoke.json | 1 + .../Hub_Spoke_Directed.json | 1 + .../centrality/closeness_centrality/Line.json | 1 + .../closeness_centrality/Line_Directed.json | 1 + .../centrality/closeness_centrality/Ring.json | 1 + .../closeness_centrality/Ring_Directed.json | 1 + .../centrality/closeness_centrality/Tree.json | 1 + .../closeness_centrality/Tree_Directed.json | 1 + .../centrality/degree_centrality/Empty.json | 1 + .../degree_centrality/Hub_Spoke.json | 1 + .../centrality/degree_centrality/Line.json | 1 + .../centrality/degree_centrality/Ring.json | 1 + .../centrality/degree_centrality/Tree.json | 1 + .../in_degree/Hub_Spoke_Directed.json | 1 + .../in_degree/Line_Directed.json | 1 + .../in_degree/Ring_Directed.json | 1 + .../in_degree/Tree_Directed.json | 1 + .../out_degree/Hub_Spoke_Directed.json | 1 + .../out_degree/Line_Directed.json | 1 + .../out_degree/Ring_Directed.json | 1 + .../out_degree/Tree_Directed.json | 1 + .../centrality/harmonic_centrality/Empty.json | 1 + .../harmonic_centrality/Hub_Spoke.json | 1 + .../Hub_Spoke_Directed.json | 1 + .../centrality/harmonic_centrality/Line.json | 1 + .../harmonic_centrality/Line_Directed.json | 1 + .../centrality/harmonic_centrality/Ring.json | 1 + .../harmonic_centrality/Ring_Directed.json | 1 + .../centrality/harmonic_centrality/Tree.json | 1 + .../harmonic_centrality/Tree_Directed.json | 1 + .../centrality/pagerank/Empty.json | 1 + .../centrality/pagerank/Hub_Spoke.json | 1 + .../pagerank/Hub_Spoke_Directed.json | 1 + .../centrality/pagerank/Line.json | 1 + .../centrality/pagerank/Line_Directed.json | 1 + .../centrality/pagerank/Ring.json | 1 + .../centrality/pagerank/Ring_Directed.json | 1 + .../centrality/pagerank/Tree.json | 1 + .../centrality/pagerank/Tree_Directed.json | 1 + .../Hub_Spoke_Weighted.json | 1 + .../Line_Weighted.json | 1 + .../Ring_Weighted.json | 1 + .../Tree_Weighted.json | 1 + .../Hub_Spoke_Directed_Weighted.json | 1 + .../in_degree/Line_Directed_Weighted.json | 1 + .../in_degree/Ring_Directed_Weighted.json | 1 + .../in_degree/Tree_Directed_Weighted.json | 1 + .../Hub_Spoke_Directed_Weighted.json | 1 + .../out_degree/Line_Directed_Weighted.json | 1 + .../out_degree/Ring_Directed_Weighted.json | 1 + .../out_degree/Tree_Directed_Weighted.json | 1 + .../community/lcc/Complete.json | 1 + .../community/lcc/Complete_Directed.json | 1 + .../community/lcc/DAG_Directed.json | 1 + .../community/lcc/Empty.json | 1 + .../community/lcc/Empty_Directed.json | 1 + .../lcc/Hub_Connected_Hub_Spoke.json | 1 + .../community/lcc/Hub_Spoke.json | 1 + .../community/lcc/Hub_Spoke_Directed.json | 1 + .../community/lcc/Line.json | 1 + .../community/lcc/Line_Directed.json | 1 + .../community/lcc/Line_Weighted.json | 1 + .../community/lcc/Ring.json | 1 + .../community/lcc/Ring_Directed.json | 1 + .../community/lcc/Tree.json | 1 + .../community/lcc/Tree_Directed.json | 1 + .../path_finding/bfs/Complete.json | 1 + .../path_finding/bfs/Complete_Directed.json | 1 + .../path_finding/bfs/DAG_Directed.json | 1 + .../path_finding/bfs/Empty.json | 1 + .../path_finding/bfs/Empty_Directed.json | 1 + .../bfs/Hub_Connected_Hub_Spoke.json | 1 + .../path_finding/bfs/Hub_Spoke.json | 1 + .../path_finding/bfs/Hub_Spoke_Directed.json | 1 + .../path_finding/bfs/Line.json | 1 + .../path_finding/bfs/Line_Directed.json | 1 + .../path_finding/bfs/Line_Weighted.json | 1 + .../path_finding/bfs/Ring.json | 1 + .../path_finding/bfs/Ring_Directed.json | 1 + .../path_finding/bfs/Tree.json | 1 + .../path_finding/bfs/Tree_Directed.json | 1 + .../shortest_ss_no_wt/Complete.json | 1 + .../shortest_ss_no_wt/Complete_Directed.json | 1 + .../shortest_ss_no_wt/DAG_Directed.json | 1 + .../path_finding/shortest_ss_no_wt/Empty.json | 1 + .../shortest_ss_no_wt/Empty_Directed.json | 1 + .../Hub_Connected_Hub_Spoke.json | 1 + .../shortest_ss_no_wt/Hub_Spoke.json | 1 + .../shortest_ss_no_wt/Hub_Spoke_Directed.json | 1 + .../path_finding/shortest_ss_no_wt/Line.json | 1 + .../shortest_ss_no_wt/Line_Directed.json | 1 + .../shortest_ss_no_wt/Line_Weighted.json | 1 + .../path_finding/shortest_ss_no_wt/Ring.json | 1 + .../shortest_ss_no_wt/Ring_Directed.json | 1 + .../path_finding/shortest_ss_no_wt/Tree.json | 1 + .../shortest_ss_no_wt/Tree_Directed.json | 1 + .../adamic_adar/topo_link1.json | 1 + .../adamic_adar/topo_link2.json | 1 + .../adamic_adar/topo_link3.json | 1 + .../adamic_adar/topo_link4.json | 1 + .../adamic_adar/topo_link5.json | 1 + .../adamic_adar/topo_link6.json | 1 + .../adamic_adar/topo_link_directed.json | 1 + .../common_neighbors/topo_link1.json | 1 + .../common_neighbors/topo_link2.json | 1 + .../common_neighbors/topo_link3.json | 1 + .../common_neighbors/topo_link4.json | 1 + .../common_neighbors/topo_link5.json | 1 + .../common_neighbors/topo_link6.json | 1 + .../common_neighbors/topo_link_directed.json | 1 + .../preferential_attachment/topo_link1.json | 1 + .../preferential_attachment/topo_link2.json | 1 + .../preferential_attachment/topo_link3.json | 1 + .../preferential_attachment/topo_link4.json | 1 + .../preferential_attachment/topo_link5.json | 1 + .../preferential_attachment/topo_link6.json | 1 + .../topo_link_directed.json | 1 + .../resource_allocation/topo_link1.json | 1 + .../resource_allocation/topo_link2.json | 1 + .../resource_allocation/topo_link3.json | 1 + .../resource_allocation/topo_link4.json | 1 + .../resource_allocation/topo_link5.json | 1 + .../resource_allocation/topo_link6.json | 1 + .../topo_link_directed.json | 1 + .../same_community/test1.json | 1 + .../same_community/test2.json | 1 + .../same_community/test3.json | 1 + .../same_community/test4.json | 1 + .../total_neighbors/topo_link1.json | 1 + .../total_neighbors/topo_link2.json | 1 + .../total_neighbors/topo_link3.json | 1 + .../total_neighbors/topo_link4.json | 1 + .../total_neighbors/topo_link5.json | 1 + .../total_neighbors/topo_link6.json | 1 + .../total_neighbors/topo_link_directed.json | 1 + tests/run.sh | 2 +- tests/test/test_centrality.py | 252 +++++++++++++----- 149 files changed, 400 insertions(+), 68 deletions(-) create mode 100644 tests/data/baseline/get_data.py create mode 100644 tests/data/baseline/graph_algorithms_baselines/centrality/article_rank/Empty.json create mode 100644 tests/data/baseline/graph_algorithms_baselines/centrality/article_rank/Hub_Spoke.json create mode 100644 tests/data/baseline/graph_algorithms_baselines/centrality/article_rank/Hub_Spoke_Directed.json create mode 100644 tests/data/baseline/graph_algorithms_baselines/centrality/article_rank/Line.json create mode 100644 tests/data/baseline/graph_algorithms_baselines/centrality/article_rank/Line_Directed.json create mode 100644 tests/data/baseline/graph_algorithms_baselines/centrality/article_rank/Ring.json create mode 100644 tests/data/baseline/graph_algorithms_baselines/centrality/article_rank/Ring_Directed.json create mode 100644 tests/data/baseline/graph_algorithms_baselines/centrality/article_rank/Tree.json create mode 100644 tests/data/baseline/graph_algorithms_baselines/centrality/article_rank/Tree_Directed.json create mode 100644 tests/data/baseline/graph_algorithms_baselines/centrality/closeness_centrality/Empty.json create mode 100644 tests/data/baseline/graph_algorithms_baselines/centrality/closeness_centrality/Hub_Spoke.json create mode 100644 tests/data/baseline/graph_algorithms_baselines/centrality/closeness_centrality/Hub_Spoke_Directed.json create mode 100644 tests/data/baseline/graph_algorithms_baselines/centrality/closeness_centrality/Line.json create mode 100644 tests/data/baseline/graph_algorithms_baselines/centrality/closeness_centrality/Line_Directed.json create mode 100644 tests/data/baseline/graph_algorithms_baselines/centrality/closeness_centrality/Ring.json create mode 100644 tests/data/baseline/graph_algorithms_baselines/centrality/closeness_centrality/Ring_Directed.json create mode 100644 tests/data/baseline/graph_algorithms_baselines/centrality/closeness_centrality/Tree.json create mode 100644 tests/data/baseline/graph_algorithms_baselines/centrality/closeness_centrality/Tree_Directed.json create mode 100644 tests/data/baseline/graph_algorithms_baselines/centrality/degree_centrality/Empty.json create mode 100644 tests/data/baseline/graph_algorithms_baselines/centrality/degree_centrality/Hub_Spoke.json create mode 100644 tests/data/baseline/graph_algorithms_baselines/centrality/degree_centrality/Line.json create mode 100644 tests/data/baseline/graph_algorithms_baselines/centrality/degree_centrality/Ring.json create mode 100644 tests/data/baseline/graph_algorithms_baselines/centrality/degree_centrality/Tree.json create mode 100644 tests/data/baseline/graph_algorithms_baselines/centrality/degree_centrality/in_degree/Hub_Spoke_Directed.json create mode 100644 tests/data/baseline/graph_algorithms_baselines/centrality/degree_centrality/in_degree/Line_Directed.json create mode 100644 tests/data/baseline/graph_algorithms_baselines/centrality/degree_centrality/in_degree/Ring_Directed.json create mode 100644 tests/data/baseline/graph_algorithms_baselines/centrality/degree_centrality/in_degree/Tree_Directed.json create mode 100644 tests/data/baseline/graph_algorithms_baselines/centrality/degree_centrality/out_degree/Hub_Spoke_Directed.json create mode 100644 tests/data/baseline/graph_algorithms_baselines/centrality/degree_centrality/out_degree/Line_Directed.json create mode 100644 tests/data/baseline/graph_algorithms_baselines/centrality/degree_centrality/out_degree/Ring_Directed.json create mode 100644 tests/data/baseline/graph_algorithms_baselines/centrality/degree_centrality/out_degree/Tree_Directed.json create mode 100644 tests/data/baseline/graph_algorithms_baselines/centrality/harmonic_centrality/Empty.json create mode 100644 tests/data/baseline/graph_algorithms_baselines/centrality/harmonic_centrality/Hub_Spoke.json create mode 100644 tests/data/baseline/graph_algorithms_baselines/centrality/harmonic_centrality/Hub_Spoke_Directed.json create mode 100644 tests/data/baseline/graph_algorithms_baselines/centrality/harmonic_centrality/Line.json create mode 100644 tests/data/baseline/graph_algorithms_baselines/centrality/harmonic_centrality/Line_Directed.json create mode 100644 tests/data/baseline/graph_algorithms_baselines/centrality/harmonic_centrality/Ring.json create mode 100644 tests/data/baseline/graph_algorithms_baselines/centrality/harmonic_centrality/Ring_Directed.json create mode 100644 tests/data/baseline/graph_algorithms_baselines/centrality/harmonic_centrality/Tree.json create mode 100644 tests/data/baseline/graph_algorithms_baselines/centrality/harmonic_centrality/Tree_Directed.json create mode 100644 tests/data/baseline/graph_algorithms_baselines/centrality/pagerank/Empty.json create mode 100644 tests/data/baseline/graph_algorithms_baselines/centrality/pagerank/Hub_Spoke.json create mode 100644 tests/data/baseline/graph_algorithms_baselines/centrality/pagerank/Hub_Spoke_Directed.json create mode 100644 tests/data/baseline/graph_algorithms_baselines/centrality/pagerank/Line.json create mode 100644 tests/data/baseline/graph_algorithms_baselines/centrality/pagerank/Line_Directed.json create mode 100644 tests/data/baseline/graph_algorithms_baselines/centrality/pagerank/Ring.json create mode 100644 tests/data/baseline/graph_algorithms_baselines/centrality/pagerank/Ring_Directed.json create mode 100644 tests/data/baseline/graph_algorithms_baselines/centrality/pagerank/Tree.json create mode 100644 tests/data/baseline/graph_algorithms_baselines/centrality/pagerank/Tree_Directed.json create mode 100644 tests/data/baseline/graph_algorithms_baselines/centrality/weighted_degree_centrality/Hub_Spoke_Weighted.json create mode 100644 tests/data/baseline/graph_algorithms_baselines/centrality/weighted_degree_centrality/Line_Weighted.json create mode 100644 tests/data/baseline/graph_algorithms_baselines/centrality/weighted_degree_centrality/Ring_Weighted.json create mode 100644 tests/data/baseline/graph_algorithms_baselines/centrality/weighted_degree_centrality/Tree_Weighted.json create mode 100644 tests/data/baseline/graph_algorithms_baselines/centrality/weighted_degree_centrality/in_degree/Hub_Spoke_Directed_Weighted.json create mode 100644 tests/data/baseline/graph_algorithms_baselines/centrality/weighted_degree_centrality/in_degree/Line_Directed_Weighted.json create mode 100644 tests/data/baseline/graph_algorithms_baselines/centrality/weighted_degree_centrality/in_degree/Ring_Directed_Weighted.json create mode 100644 tests/data/baseline/graph_algorithms_baselines/centrality/weighted_degree_centrality/in_degree/Tree_Directed_Weighted.json create mode 100644 tests/data/baseline/graph_algorithms_baselines/centrality/weighted_degree_centrality/out_degree/Hub_Spoke_Directed_Weighted.json create mode 100644 tests/data/baseline/graph_algorithms_baselines/centrality/weighted_degree_centrality/out_degree/Line_Directed_Weighted.json create mode 100644 tests/data/baseline/graph_algorithms_baselines/centrality/weighted_degree_centrality/out_degree/Ring_Directed_Weighted.json create mode 100644 tests/data/baseline/graph_algorithms_baselines/centrality/weighted_degree_centrality/out_degree/Tree_Directed_Weighted.json create mode 100644 tests/data/baseline/graph_algorithms_baselines/community/lcc/Complete.json create mode 100644 tests/data/baseline/graph_algorithms_baselines/community/lcc/Complete_Directed.json create mode 100644 tests/data/baseline/graph_algorithms_baselines/community/lcc/DAG_Directed.json create mode 100644 tests/data/baseline/graph_algorithms_baselines/community/lcc/Empty.json create mode 100644 tests/data/baseline/graph_algorithms_baselines/community/lcc/Empty_Directed.json create mode 100644 tests/data/baseline/graph_algorithms_baselines/community/lcc/Hub_Connected_Hub_Spoke.json create mode 100644 tests/data/baseline/graph_algorithms_baselines/community/lcc/Hub_Spoke.json create mode 100644 tests/data/baseline/graph_algorithms_baselines/community/lcc/Hub_Spoke_Directed.json create mode 100644 tests/data/baseline/graph_algorithms_baselines/community/lcc/Line.json create mode 100644 tests/data/baseline/graph_algorithms_baselines/community/lcc/Line_Directed.json create mode 100644 tests/data/baseline/graph_algorithms_baselines/community/lcc/Line_Weighted.json create mode 100644 tests/data/baseline/graph_algorithms_baselines/community/lcc/Ring.json create mode 100644 tests/data/baseline/graph_algorithms_baselines/community/lcc/Ring_Directed.json create mode 100644 tests/data/baseline/graph_algorithms_baselines/community/lcc/Tree.json create mode 100644 tests/data/baseline/graph_algorithms_baselines/community/lcc/Tree_Directed.json create mode 100644 tests/data/baseline/graph_algorithms_baselines/path_finding/bfs/Complete.json create mode 100644 tests/data/baseline/graph_algorithms_baselines/path_finding/bfs/Complete_Directed.json create mode 100644 tests/data/baseline/graph_algorithms_baselines/path_finding/bfs/DAG_Directed.json create mode 100644 tests/data/baseline/graph_algorithms_baselines/path_finding/bfs/Empty.json create mode 100644 tests/data/baseline/graph_algorithms_baselines/path_finding/bfs/Empty_Directed.json create mode 100644 tests/data/baseline/graph_algorithms_baselines/path_finding/bfs/Hub_Connected_Hub_Spoke.json create mode 100644 tests/data/baseline/graph_algorithms_baselines/path_finding/bfs/Hub_Spoke.json create mode 100644 tests/data/baseline/graph_algorithms_baselines/path_finding/bfs/Hub_Spoke_Directed.json create mode 100644 tests/data/baseline/graph_algorithms_baselines/path_finding/bfs/Line.json create mode 100644 tests/data/baseline/graph_algorithms_baselines/path_finding/bfs/Line_Directed.json create mode 100644 tests/data/baseline/graph_algorithms_baselines/path_finding/bfs/Line_Weighted.json create mode 100644 tests/data/baseline/graph_algorithms_baselines/path_finding/bfs/Ring.json create mode 100644 tests/data/baseline/graph_algorithms_baselines/path_finding/bfs/Ring_Directed.json create mode 100644 tests/data/baseline/graph_algorithms_baselines/path_finding/bfs/Tree.json create mode 100644 tests/data/baseline/graph_algorithms_baselines/path_finding/bfs/Tree_Directed.json create mode 100644 tests/data/baseline/graph_algorithms_baselines/path_finding/shortest_ss_no_wt/Complete.json create mode 100644 tests/data/baseline/graph_algorithms_baselines/path_finding/shortest_ss_no_wt/Complete_Directed.json create mode 100644 tests/data/baseline/graph_algorithms_baselines/path_finding/shortest_ss_no_wt/DAG_Directed.json create mode 100644 tests/data/baseline/graph_algorithms_baselines/path_finding/shortest_ss_no_wt/Empty.json create mode 100644 tests/data/baseline/graph_algorithms_baselines/path_finding/shortest_ss_no_wt/Empty_Directed.json create mode 100644 tests/data/baseline/graph_algorithms_baselines/path_finding/shortest_ss_no_wt/Hub_Connected_Hub_Spoke.json create mode 100644 tests/data/baseline/graph_algorithms_baselines/path_finding/shortest_ss_no_wt/Hub_Spoke.json create mode 100644 tests/data/baseline/graph_algorithms_baselines/path_finding/shortest_ss_no_wt/Hub_Spoke_Directed.json create mode 100644 tests/data/baseline/graph_algorithms_baselines/path_finding/shortest_ss_no_wt/Line.json create mode 100644 tests/data/baseline/graph_algorithms_baselines/path_finding/shortest_ss_no_wt/Line_Directed.json create mode 100644 tests/data/baseline/graph_algorithms_baselines/path_finding/shortest_ss_no_wt/Line_Weighted.json create mode 100644 tests/data/baseline/graph_algorithms_baselines/path_finding/shortest_ss_no_wt/Ring.json create mode 100644 tests/data/baseline/graph_algorithms_baselines/path_finding/shortest_ss_no_wt/Ring_Directed.json create mode 100644 tests/data/baseline/graph_algorithms_baselines/path_finding/shortest_ss_no_wt/Tree.json create mode 100644 tests/data/baseline/graph_algorithms_baselines/path_finding/shortest_ss_no_wt/Tree_Directed.json create mode 100644 tests/data/baseline/graph_algorithms_baselines/topological_link_prediction/adamic_adar/topo_link1.json create mode 100644 tests/data/baseline/graph_algorithms_baselines/topological_link_prediction/adamic_adar/topo_link2.json create mode 100644 tests/data/baseline/graph_algorithms_baselines/topological_link_prediction/adamic_adar/topo_link3.json create mode 100644 tests/data/baseline/graph_algorithms_baselines/topological_link_prediction/adamic_adar/topo_link4.json create mode 100644 tests/data/baseline/graph_algorithms_baselines/topological_link_prediction/adamic_adar/topo_link5.json create mode 100644 tests/data/baseline/graph_algorithms_baselines/topological_link_prediction/adamic_adar/topo_link6.json create mode 100644 tests/data/baseline/graph_algorithms_baselines/topological_link_prediction/adamic_adar/topo_link_directed.json create mode 100644 tests/data/baseline/graph_algorithms_baselines/topological_link_prediction/common_neighbors/topo_link1.json create mode 100644 tests/data/baseline/graph_algorithms_baselines/topological_link_prediction/common_neighbors/topo_link2.json create mode 100644 tests/data/baseline/graph_algorithms_baselines/topological_link_prediction/common_neighbors/topo_link3.json create mode 100644 tests/data/baseline/graph_algorithms_baselines/topological_link_prediction/common_neighbors/topo_link4.json create mode 100644 tests/data/baseline/graph_algorithms_baselines/topological_link_prediction/common_neighbors/topo_link5.json create mode 100644 tests/data/baseline/graph_algorithms_baselines/topological_link_prediction/common_neighbors/topo_link6.json create mode 100644 tests/data/baseline/graph_algorithms_baselines/topological_link_prediction/common_neighbors/topo_link_directed.json create mode 100644 tests/data/baseline/graph_algorithms_baselines/topological_link_prediction/preferential_attachment/topo_link1.json create mode 100644 tests/data/baseline/graph_algorithms_baselines/topological_link_prediction/preferential_attachment/topo_link2.json create mode 100644 tests/data/baseline/graph_algorithms_baselines/topological_link_prediction/preferential_attachment/topo_link3.json create mode 100644 tests/data/baseline/graph_algorithms_baselines/topological_link_prediction/preferential_attachment/topo_link4.json create mode 100644 tests/data/baseline/graph_algorithms_baselines/topological_link_prediction/preferential_attachment/topo_link5.json create mode 100644 tests/data/baseline/graph_algorithms_baselines/topological_link_prediction/preferential_attachment/topo_link6.json create mode 100644 tests/data/baseline/graph_algorithms_baselines/topological_link_prediction/preferential_attachment/topo_link_directed.json create mode 100644 tests/data/baseline/graph_algorithms_baselines/topological_link_prediction/resource_allocation/topo_link1.json create mode 100644 tests/data/baseline/graph_algorithms_baselines/topological_link_prediction/resource_allocation/topo_link2.json create mode 100644 tests/data/baseline/graph_algorithms_baselines/topological_link_prediction/resource_allocation/topo_link3.json create mode 100644 tests/data/baseline/graph_algorithms_baselines/topological_link_prediction/resource_allocation/topo_link4.json create mode 100644 tests/data/baseline/graph_algorithms_baselines/topological_link_prediction/resource_allocation/topo_link5.json create mode 100644 tests/data/baseline/graph_algorithms_baselines/topological_link_prediction/resource_allocation/topo_link6.json create mode 100644 tests/data/baseline/graph_algorithms_baselines/topological_link_prediction/resource_allocation/topo_link_directed.json create mode 100644 tests/data/baseline/graph_algorithms_baselines/topological_link_prediction/same_community/test1.json create mode 100644 tests/data/baseline/graph_algorithms_baselines/topological_link_prediction/same_community/test2.json create mode 100644 tests/data/baseline/graph_algorithms_baselines/topological_link_prediction/same_community/test3.json create mode 100644 tests/data/baseline/graph_algorithms_baselines/topological_link_prediction/same_community/test4.json create mode 100644 tests/data/baseline/graph_algorithms_baselines/topological_link_prediction/total_neighbors/topo_link1.json create mode 100644 tests/data/baseline/graph_algorithms_baselines/topological_link_prediction/total_neighbors/topo_link2.json create mode 100644 tests/data/baseline/graph_algorithms_baselines/topological_link_prediction/total_neighbors/topo_link3.json create mode 100644 tests/data/baseline/graph_algorithms_baselines/topological_link_prediction/total_neighbors/topo_link4.json create mode 100644 tests/data/baseline/graph_algorithms_baselines/topological_link_prediction/total_neighbors/topo_link5.json create mode 100644 tests/data/baseline/graph_algorithms_baselines/topological_link_prediction/total_neighbors/topo_link6.json create mode 100644 tests/data/baseline/graph_algorithms_baselines/topological_link_prediction/total_neighbors/topo_link_directed.json diff --git a/.gitignore b/.gitignore index 8a80da21..5a18bc11 100644 --- a/.gitignore +++ b/.gitignore @@ -13,3 +13,4 @@ tmp __pycache__ .env *.xml +pyrightconfig.json diff --git a/tests/data/baseline/get_data.py b/tests/data/baseline/get_data.py new file mode 100644 index 00000000..88e91682 --- /dev/null +++ b/tests/data/baseline/get_data.py @@ -0,0 +1,68 @@ +import os + +import boto3 +from dotenv import load_dotenv +from tqdm import tqdm + +load_dotenv() +pth = os.environ["PATH"] +aws_access_key_id = os.environ["AWS_ACCESS_KEY_ID"] +aws_secret_access_key = os.environ["AWS_SECRET_ACCESS_KEY"] + +s3_client = boto3.client( + "s3", + aws_access_key_id=aws_access_key_id, + aws_secret_access_key=aws_secret_access_key, +) + + +def download_dir(prefix, local, bucket, client=s3_client): + """ + params: + - prefix: pattern to match in s3 + - local: local path to folder in which to place files + - bucket: s3 bucket with target contents + - client: initialized s3 client object + """ + keys = [] + dirs = [] + next_token = "" + base_kwargs = { + "Bucket": bucket, + "Prefix": prefix, + } + t = tqdm() + while next_token is not None: + kwargs = base_kwargs.copy() + if next_token != "": + kwargs.update({"ContinuationToken": next_token}) + results = client.list_objects_v2(**kwargs) + contents = results.get("Contents") + for i in contents: + k = i.get("Key") + if k[-1] != "/": + keys.append(k) + else: + dirs.append(k) + next_token = results.get("NextContinuationToken") + t.update() + t.close() + for d in tqdm(dirs): + if "graph_algorithms_baselines" in d: + dest_pathname = os.path.join(local, d) + if not os.path.exists(os.path.dirname(dest_pathname)): + os.makedirs(os.path.dirname(dest_pathname)) + for k in tqdm(keys): + if "graph_algorithms_baselines" in k: + dest_pathname = os.path.join(local, k) + if not os.path.exists(os.path.dirname(dest_pathname)): + os.makedirs(os.path.dirname(dest_pathname)) + client.download_file(bucket, k, dest_pathname) + + +if __name__ == "__main__": + download_dir( + prefix="", + local=".", + bucket="tigergraph-public-data", + ) diff --git a/tests/data/baseline/graph_algorithms_baselines/centrality/article_rank/Empty.json b/tests/data/baseline/graph_algorithms_baselines/centrality/article_rank/Empty.json new file mode 100644 index 00000000..3b9b08e9 --- /dev/null +++ b/tests/data/baseline/graph_algorithms_baselines/centrality/article_rank/Empty.json @@ -0,0 +1 @@ +[{"@@top_scores_heap": [{"Vertex_ID": "P", "score": 0.15}, {"Vertex_ID": "H", "score": 0.15}, {"Vertex_ID": "D", "score": 0.15}, {"Vertex_ID": "R", "score": 0.15}, {"Vertex_ID": "E", "score": 0.15}, {"Vertex_ID": "A", "score": 0.15}, {"Vertex_ID": "M", "score": 0.15}, {"Vertex_ID": "N", "score": 0.15}, {"Vertex_ID": "K", "score": 0.15}, {"Vertex_ID": "F", "score": 0.15}, {"Vertex_ID": "L", "score": 0.15}, {"Vertex_ID": "J", "score": 0.15}, {"Vertex_ID": "I", "score": 0.15}, {"Vertex_ID": "O", "score": 0.15}, {"Vertex_ID": "C", "score": 0.15}, {"Vertex_ID": "B", "score": 0.15}, {"Vertex_ID": "Q", "score": 0.15}, {"Vertex_ID": "S", "score": 0.15}, {"Vertex_ID": "G", "score": 0.15}, {"Vertex_ID": "T", "score": 0.15}]}] \ No newline at end of file diff --git a/tests/data/baseline/graph_algorithms_baselines/centrality/article_rank/Hub_Spoke.json b/tests/data/baseline/graph_algorithms_baselines/centrality/article_rank/Hub_Spoke.json new file mode 100644 index 00000000..dfc7abd3 --- /dev/null +++ b/tests/data/baseline/graph_algorithms_baselines/centrality/article_rank/Hub_Spoke.json @@ -0,0 +1 @@ +[{"@@top_scores_heap": [{"Vertex_ID": "A", "score": 8.830046}, {"Vertex_ID": "S", "score": 0.8213751}, {"Vertex_ID": "L", "score": 0.8213751}, {"Vertex_ID": "P", "score": 0.8213751}, {"Vertex_ID": "N", "score": 0.8213751}, {"Vertex_ID": "K", "score": 0.8213751}, {"Vertex_ID": "H", "score": 0.8213751}, {"Vertex_ID": "G", "score": 0.8213751}, {"Vertex_ID": "R", "score": 0.8213751}, {"Vertex_ID": "B", "score": 0.8213751}, {"Vertex_ID": "I", "score": 0.8213751}, {"Vertex_ID": "O", "score": 0.8213751}, {"Vertex_ID": "F", "score": 0.8213751}, {"Vertex_ID": "J", "score": 0.8213751}, {"Vertex_ID": "D", "score": 0.8213751}, {"Vertex_ID": "E", "score": 0.8213751}, {"Vertex_ID": "C", "score": 0.8213751}, {"Vertex_ID": "M", "score": 0.8213751}, {"Vertex_ID": "Q", "score": 0.8213751}, {"Vertex_ID": "T", "score": 0.8213751}]}] \ No newline at end of file diff --git a/tests/data/baseline/graph_algorithms_baselines/centrality/article_rank/Hub_Spoke_Directed.json b/tests/data/baseline/graph_algorithms_baselines/centrality/article_rank/Hub_Spoke_Directed.json new file mode 100644 index 00000000..dc2a0964 --- /dev/null +++ b/tests/data/baseline/graph_algorithms_baselines/centrality/article_rank/Hub_Spoke_Directed.json @@ -0,0 +1 @@ +[{"@@top_scores_heap": [{"Vertex_ID": "K", "score": 0.15}, {"Vertex_ID": "M", "score": 0.15}, {"Vertex_ID": "I", "score": 0.15}, {"Vertex_ID": "P", "score": 0.15}, {"Vertex_ID": "N", "score": 0.15}, {"Vertex_ID": "D", "score": 0.15}, {"Vertex_ID": "E", "score": 0.15}, {"Vertex_ID": "B", "score": 0.15}, {"Vertex_ID": "F", "score": 0.15}, {"Vertex_ID": "L", "score": 0.15}, {"Vertex_ID": "G", "score": 0.15}, {"Vertex_ID": "Q", "score": 0.15}, {"Vertex_ID": "R", "score": 0.15}, {"Vertex_ID": "T", "score": 0.15}, {"Vertex_ID": "O", "score": 0.15}, {"Vertex_ID": "C", "score": 0.15}, {"Vertex_ID": "H", "score": 0.15}, {"Vertex_ID": "J", "score": 0.15}, {"Vertex_ID": "S", "score": 0.15}, {"Vertex_ID": "A", "score": 0.15}]}] \ No newline at end of file diff --git a/tests/data/baseline/graph_algorithms_baselines/centrality/article_rank/Line.json b/tests/data/baseline/graph_algorithms_baselines/centrality/article_rank/Line.json new file mode 100644 index 00000000..b49f2872 --- /dev/null +++ b/tests/data/baseline/graph_algorithms_baselines/centrality/article_rank/Line.json @@ -0,0 +1 @@ +[{"@@top_scores_heap": [{"Vertex_ID": "K", "score": 0.8658459}, {"Vertex_ID": "J", "score": 0.8658459}, {"Vertex_ID": "L", "score": 0.8653695}, {"Vertex_ID": "I", "score": 0.8653695}, {"Vertex_ID": "M", "score": 0.8642026}, {"Vertex_ID": "H", "score": 0.8642026}, {"Vertex_ID": "G", "score": 0.8617622}, {"Vertex_ID": "N", "score": 0.8617622}, {"Vertex_ID": "O", "score": 0.8569765}, {"Vertex_ID": "F", "score": 0.8569765}, {"Vertex_ID": "E", "score": 0.8476561}, {"Vertex_ID": "P", "score": 0.8476561}, {"Vertex_ID": "D", "score": 0.8298068}, {"Vertex_ID": "Q", "score": 0.8298068}, {"Vertex_ID": "R", "score": 0.7957162}, {"Vertex_ID": "C", "score": 0.7957162}, {"Vertex_ID": "B", "score": 0.7310206}, {"Vertex_ID": "S", "score": 0.7310206}, {"Vertex_ID": "A", "score": 0.4524694}, {"Vertex_ID": "T", "score": 0.4524694}]}] \ No newline at end of file diff --git a/tests/data/baseline/graph_algorithms_baselines/centrality/article_rank/Line_Directed.json b/tests/data/baseline/graph_algorithms_baselines/centrality/article_rank/Line_Directed.json new file mode 100644 index 00000000..bdbdb40f --- /dev/null +++ b/tests/data/baseline/graph_algorithms_baselines/centrality/article_rank/Line_Directed.json @@ -0,0 +1 @@ +[{"@@top_scores_heap": [{"Vertex_ID": "G", "score": 0.2554829}, {"Vertex_ID": "J", "score": 0.2554829}, {"Vertex_ID": "L", "score": 0.2554829}, {"Vertex_ID": "Q", "score": 0.2554829}, {"Vertex_ID": "M", "score": 0.2554829}, {"Vertex_ID": "I", "score": 0.2554829}, {"Vertex_ID": "R", "score": 0.2554829}, {"Vertex_ID": "O", "score": 0.2554829}, {"Vertex_ID": "H", "score": 0.2554829}, {"Vertex_ID": "N", "score": 0.2554829}, {"Vertex_ID": "K", "score": 0.2554829}, {"Vertex_ID": "P", "score": 0.2554829}, {"Vertex_ID": "S", "score": 0.2554829}, {"Vertex_ID": "F", "score": 0.2547265}, {"Vertex_ID": "E", "score": 0.2528999}, {"Vertex_ID": "D", "score": 0.2484891}, {"Vertex_ID": "C", "score": 0.2378375}, {"Vertex_ID": "B", "score": 0.2121153}, {"Vertex_ID": "T", "score": 0.15}, {"Vertex_ID": "A", "score": 0.15}]}] \ No newline at end of file diff --git a/tests/data/baseline/graph_algorithms_baselines/centrality/article_rank/Ring.json b/tests/data/baseline/graph_algorithms_baselines/centrality/article_rank/Ring.json new file mode 100644 index 00000000..dc243157 --- /dev/null +++ b/tests/data/baseline/graph_algorithms_baselines/centrality/article_rank/Ring.json @@ -0,0 +1 @@ +[{"@@top_scores_heap": [{"Vertex_ID": "D", "score": 0.9853819}, {"Vertex_ID": "J", "score": 0.9853819}, {"Vertex_ID": "E", "score": 0.9853819}, {"Vertex_ID": "K", "score": 0.9853819}, {"Vertex_ID": "M", "score": 0.9853819}, {"Vertex_ID": "R", "score": 0.9853819}, {"Vertex_ID": "A", "score": 0.9853819}, {"Vertex_ID": "I", "score": 0.9853819}, {"Vertex_ID": "P", "score": 0.9853819}, {"Vertex_ID": "H", "score": 0.9853819}, {"Vertex_ID": "Q", "score": 0.9853819}, {"Vertex_ID": "G", "score": 0.9853819}, {"Vertex_ID": "L", "score": 0.9853819}, {"Vertex_ID": "O", "score": 0.9853819}, {"Vertex_ID": "C", "score": 0.9853819}, {"Vertex_ID": "B", "score": 0.9853819}, {"Vertex_ID": "S", "score": 0.9853819}, {"Vertex_ID": "N", "score": 0.9853819}, {"Vertex_ID": "T", "score": 0.9853819}, {"Vertex_ID": "F", "score": 0.9853819}]}] \ No newline at end of file diff --git a/tests/data/baseline/graph_algorithms_baselines/centrality/article_rank/Ring_Directed.json b/tests/data/baseline/graph_algorithms_baselines/centrality/article_rank/Ring_Directed.json new file mode 100644 index 00000000..ce95b708 --- /dev/null +++ b/tests/data/baseline/graph_algorithms_baselines/centrality/article_rank/Ring_Directed.json @@ -0,0 +1 @@ +[{"@@top_scores_heap": [{"Vertex_ID": "F", "score": 0.2602162}, {"Vertex_ID": "N", "score": 0.2602162}, {"Vertex_ID": "J", "score": 0.2602162}, {"Vertex_ID": "G", "score": 0.2602162}, {"Vertex_ID": "P", "score": 0.2602162}, {"Vertex_ID": "T", "score": 0.2602162}, {"Vertex_ID": "B", "score": 0.2602162}, {"Vertex_ID": "D", "score": 0.2602162}, {"Vertex_ID": "E", "score": 0.2602162}, {"Vertex_ID": "Q", "score": 0.2602162}, {"Vertex_ID": "R", "score": 0.2602162}, {"Vertex_ID": "L", "score": 0.2602162}, {"Vertex_ID": "A", "score": 0.2602162}, {"Vertex_ID": "O", "score": 0.2602162}, {"Vertex_ID": "C", "score": 0.2602162}, {"Vertex_ID": "I", "score": 0.2602162}, {"Vertex_ID": "S", "score": 0.2602162}, {"Vertex_ID": "H", "score": 0.2602162}, {"Vertex_ID": "K", "score": 0.2602162}, {"Vertex_ID": "M", "score": 0.2602162}]}] \ No newline at end of file diff --git a/tests/data/baseline/graph_algorithms_baselines/centrality/article_rank/Tree.json b/tests/data/baseline/graph_algorithms_baselines/centrality/article_rank/Tree.json new file mode 100644 index 00000000..cbfe15ae --- /dev/null +++ b/tests/data/baseline/graph_algorithms_baselines/centrality/article_rank/Tree.json @@ -0,0 +1 @@ +[{"@@top_scores_heap": [{"Vertex_ID": "B", "score": 1.551343}, {"Vertex_ID": "D", "score": 1.495024}, {"Vertex_ID": "C", "score": 1.430164}, {"Vertex_ID": "E", "score": 1.352458}, {"Vertex_ID": "H", "score": 1.271843}, {"Vertex_ID": "I", "score": 1.271843}, {"Vertex_ID": "G", "score": 1.238859}, {"Vertex_ID": "F", "score": 1.238859}, {"Vertex_ID": "A", "score": 1.129263}, {"Vertex_ID": "J", "score": 0.8793647}, {"Vertex_ID": "K", "score": 0.5942969}, {"Vertex_ID": "Q", "score": 0.5678098}, {"Vertex_ID": "R", "score": 0.5678098}, {"Vertex_ID": "P", "score": 0.5678098}, {"Vertex_ID": "S", "score": 0.5678098}, {"Vertex_ID": "L", "score": 0.5570923}, {"Vertex_ID": "N", "score": 0.5570923}, {"Vertex_ID": "M", "score": 0.5570923}, {"Vertex_ID": "O", "score": 0.5570923}, {"Vertex_ID": "T", "score": 0.5130787}]}] \ No newline at end of file diff --git a/tests/data/baseline/graph_algorithms_baselines/centrality/article_rank/Tree_Directed.json b/tests/data/baseline/graph_algorithms_baselines/centrality/article_rank/Tree_Directed.json new file mode 100644 index 00000000..4bda8edf --- /dev/null +++ b/tests/data/baseline/graph_algorithms_baselines/centrality/article_rank/Tree_Directed.json @@ -0,0 +1 @@ +[{"@@top_scores_heap": [{"Vertex_ID": "J", "score": 0.2053749}, {"Vertex_ID": "H", "score": 0.2053749}, {"Vertex_ID": "I", "score": 0.2053749}, {"Vertex_ID": "G", "score": 0.2022984}, {"Vertex_ID": "D", "score": 0.2022984}, {"Vertex_ID": "E", "score": 0.2022984}, {"Vertex_ID": "F", "score": 0.2022984}, {"Vertex_ID": "B", "score": 0.1910593}, {"Vertex_ID": "C", "score": 0.1910593}, {"Vertex_ID": "N", "score": 0.15}, {"Vertex_ID": "Q", "score": 0.15}, {"Vertex_ID": "S", "score": 0.15}, {"Vertex_ID": "O", "score": 0.15}, {"Vertex_ID": "L", "score": 0.15}, {"Vertex_ID": "K", "score": 0.15}, {"Vertex_ID": "T", "score": 0.15}, {"Vertex_ID": "R", "score": 0.15}, {"Vertex_ID": "P", "score": 0.15}, {"Vertex_ID": "M", "score": 0.15}, {"Vertex_ID": "A", "score": 0.15}]}] \ No newline at end of file diff --git a/tests/data/baseline/graph_algorithms_baselines/centrality/closeness_centrality/Empty.json b/tests/data/baseline/graph_algorithms_baselines/centrality/closeness_centrality/Empty.json new file mode 100644 index 00000000..6d4f4057 --- /dev/null +++ b/tests/data/baseline/graph_algorithms_baselines/centrality/closeness_centrality/Empty.json @@ -0,0 +1 @@ +[{"top_scores": [{"Vertex_ID": "T", "score": -1}, {"Vertex_ID": "Q", "score": -1}, {"Vertex_ID": "I", "score": -1}, {"Vertex_ID": "H", "score": -1}, {"Vertex_ID": "B", "score": -1}, {"Vertex_ID": "G", "score": -1}, {"Vertex_ID": "R", "score": -1}, {"Vertex_ID": "A", "score": -1}, {"Vertex_ID": "M", "score": -1}, {"Vertex_ID": "N", "score": -1}, {"Vertex_ID": "J", "score": -1}, {"Vertex_ID": "K", "score": -1}, {"Vertex_ID": "D", "score": -1}, {"Vertex_ID": "E", "score": -1}, {"Vertex_ID": "O", "score": -1}, {"Vertex_ID": "C", "score": -1}, {"Vertex_ID": "F", "score": -1}, {"Vertex_ID": "P", "score": -1}, {"Vertex_ID": "L", "score": -1}, {"Vertex_ID": "S", "score": -1}]}] \ No newline at end of file diff --git a/tests/data/baseline/graph_algorithms_baselines/centrality/closeness_centrality/Hub_Spoke.json b/tests/data/baseline/graph_algorithms_baselines/centrality/closeness_centrality/Hub_Spoke.json new file mode 100644 index 00000000..0ba41c94 --- /dev/null +++ b/tests/data/baseline/graph_algorithms_baselines/centrality/closeness_centrality/Hub_Spoke.json @@ -0,0 +1 @@ +[{"top_scores": [{"Vertex_ID": "A", "score": 1}, {"Vertex_ID": "Q", "score": 0.5135135}, {"Vertex_ID": "G", "score": 0.5135135}, {"Vertex_ID": "T", "score": 0.5135135}, {"Vertex_ID": "B", "score": 0.5135135}, {"Vertex_ID": "R", "score": 0.5135135}, {"Vertex_ID": "E", "score": 0.5135135}, {"Vertex_ID": "F", "score": 0.5135135}, {"Vertex_ID": "I", "score": 0.5135135}, {"Vertex_ID": "J", "score": 0.5135135}, {"Vertex_ID": "L", "score": 0.5135135}, {"Vertex_ID": "M", "score": 0.5135135}, {"Vertex_ID": "N", "score": 0.5135135}, {"Vertex_ID": "K", "score": 0.5135135}, {"Vertex_ID": "D", "score": 0.5135135}, {"Vertex_ID": "O", "score": 0.5135135}, {"Vertex_ID": "C", "score": 0.5135135}, {"Vertex_ID": "S", "score": 0.5135135}, {"Vertex_ID": "H", "score": 0.5135135}, {"Vertex_ID": "P", "score": 0.5135135}]}] \ No newline at end of file diff --git a/tests/data/baseline/graph_algorithms_baselines/centrality/closeness_centrality/Hub_Spoke_Directed.json b/tests/data/baseline/graph_algorithms_baselines/centrality/closeness_centrality/Hub_Spoke_Directed.json new file mode 100644 index 00000000..c4a7c065 --- /dev/null +++ b/tests/data/baseline/graph_algorithms_baselines/centrality/closeness_centrality/Hub_Spoke_Directed.json @@ -0,0 +1 @@ +[{"top_scores": [{"Vertex_ID": "A", "score": 1}, {"Vertex_ID": "S", "score": -1}, {"Vertex_ID": "H", "score": -1}, {"Vertex_ID": "K", "score": -1}, {"Vertex_ID": "D", "score": -1}, {"Vertex_ID": "G", "score": -1}, {"Vertex_ID": "T", "score": -1}, {"Vertex_ID": "Q", "score": -1}, {"Vertex_ID": "I", "score": -1}, {"Vertex_ID": "L", "score": -1}, {"Vertex_ID": "F", "score": -1}, {"Vertex_ID": "O", "score": -1}, {"Vertex_ID": "E", "score": -1}, {"Vertex_ID": "P", "score": -1}, {"Vertex_ID": "R", "score": -1}, {"Vertex_ID": "B", "score": -1}, {"Vertex_ID": "C", "score": -1}, {"Vertex_ID": "J", "score": -1}, {"Vertex_ID": "N", "score": -1}, {"Vertex_ID": "M", "score": -1}]}] \ No newline at end of file diff --git a/tests/data/baseline/graph_algorithms_baselines/centrality/closeness_centrality/Line.json b/tests/data/baseline/graph_algorithms_baselines/centrality/closeness_centrality/Line.json new file mode 100644 index 00000000..d4dfe131 --- /dev/null +++ b/tests/data/baseline/graph_algorithms_baselines/centrality/closeness_centrality/Line.json @@ -0,0 +1 @@ +[{"top_scores": [{"Vertex_ID": "J", "score": 0.19}, {"Vertex_ID": "K", "score": 0.19}, {"Vertex_ID": "L", "score": 0.1862745}, {"Vertex_ID": "I", "score": 0.1862745}, {"Vertex_ID": "H", "score": 0.1792453}, {"Vertex_ID": "M", "score": 0.1792453}, {"Vertex_ID": "N", "score": 0.1696429}, {"Vertex_ID": "G", "score": 0.1696429}, {"Vertex_ID": "F", "score": 0.1583333}, {"Vertex_ID": "O", "score": 0.1583333}, {"Vertex_ID": "P", "score": 0.1461539}, {"Vertex_ID": "E", "score": 0.1461539}, {"Vertex_ID": "D", "score": 0.1338028}, {"Vertex_ID": "Q", "score": 0.1338028}, {"Vertex_ID": "C", "score": 0.1217949}, {"Vertex_ID": "R", "score": 0.1217949}, {"Vertex_ID": "S", "score": 0.1104651}, {"Vertex_ID": "B", "score": 0.1104651}, {"Vertex_ID": "A", "score": 0.1}, {"Vertex_ID": "T", "score": 0.1}]}] \ No newline at end of file diff --git a/tests/data/baseline/graph_algorithms_baselines/centrality/closeness_centrality/Line_Directed.json b/tests/data/baseline/graph_algorithms_baselines/centrality/closeness_centrality/Line_Directed.json new file mode 100644 index 00000000..74d13233 --- /dev/null +++ b/tests/data/baseline/graph_algorithms_baselines/centrality/closeness_centrality/Line_Directed.json @@ -0,0 +1 @@ +[{"top_scores": [{"Vertex_ID": "A", "score": 0.1}, {"Vertex_ID": "B", "score": 0.09972299}, {"Vertex_ID": "C", "score": 0.09941521}, {"Vertex_ID": "D", "score": 0.0990712}, {"Vertex_ID": "E", "score": 0.09868421}, {"Vertex_ID": "F", "score": 0.09824561}, {"Vertex_ID": "G", "score": 0.09774436}, {"Vertex_ID": "H", "score": 0.09716599}, {"Vertex_ID": "I", "score": 0.09649123}, {"Vertex_ID": "J", "score": 0.09569378}, {"Vertex_ID": "K", "score": 0.09473684}, {"Vertex_ID": "L", "score": 0.09356725}, {"Vertex_ID": "M", "score": 0.09210526}, {"Vertex_ID": "N", "score": 0.09022556}, {"Vertex_ID": "O", "score": 0.0877193}, {"Vertex_ID": "P", "score": 0.08421053}, {"Vertex_ID": "Q", "score": 0.07894737}, {"Vertex_ID": "R", "score": 0.07017544}, {"Vertex_ID": "S", "score": 0.05263158}, {"Vertex_ID": "T", "score": -1}]}] \ No newline at end of file diff --git a/tests/data/baseline/graph_algorithms_baselines/centrality/closeness_centrality/Ring.json b/tests/data/baseline/graph_algorithms_baselines/centrality/closeness_centrality/Ring.json new file mode 100644 index 00000000..4c501ff5 --- /dev/null +++ b/tests/data/baseline/graph_algorithms_baselines/centrality/closeness_centrality/Ring.json @@ -0,0 +1 @@ +[{"top_scores": [{"Vertex_ID": "F", "score": 0.19}, {"Vertex_ID": "Q", "score": 0.19}, {"Vertex_ID": "J", "score": 0.19}, {"Vertex_ID": "D", "score": 0.19}, {"Vertex_ID": "I", "score": 0.19}, {"Vertex_ID": "E", "score": 0.19}, {"Vertex_ID": "B", "score": 0.19}, {"Vertex_ID": "M", "score": 0.19}, {"Vertex_ID": "N", "score": 0.19}, {"Vertex_ID": "K", "score": 0.19}, {"Vertex_ID": "H", "score": 0.19}, {"Vertex_ID": "R", "score": 0.19}, {"Vertex_ID": "G", "score": 0.19}, {"Vertex_ID": "S", "score": 0.19}, {"Vertex_ID": "O", "score": 0.19}, {"Vertex_ID": "C", "score": 0.19}, {"Vertex_ID": "A", "score": 0.19}, {"Vertex_ID": "P", "score": 0.19}, {"Vertex_ID": "L", "score": 0.19}, {"Vertex_ID": "T", "score": 0.19}]}] \ No newline at end of file diff --git a/tests/data/baseline/graph_algorithms_baselines/centrality/closeness_centrality/Ring_Directed.json b/tests/data/baseline/graph_algorithms_baselines/centrality/closeness_centrality/Ring_Directed.json new file mode 100644 index 00000000..ce7bc5ae --- /dev/null +++ b/tests/data/baseline/graph_algorithms_baselines/centrality/closeness_centrality/Ring_Directed.json @@ -0,0 +1 @@ +[{"top_scores": [{"Vertex_ID": "Q", "score": 0.1}, {"Vertex_ID": "H", "score": 0.1}, {"Vertex_ID": "L", "score": 0.1}, {"Vertex_ID": "N", "score": 0.1}, {"Vertex_ID": "B", "score": 0.1}, {"Vertex_ID": "K", "score": 0.1}, {"Vertex_ID": "F", "score": 0.1}, {"Vertex_ID": "J", "score": 0.1}, {"Vertex_ID": "T", "score": 0.1}, {"Vertex_ID": "S", "score": 0.1}, {"Vertex_ID": "C", "score": 0.1}, {"Vertex_ID": "I", "score": 0.1}, {"Vertex_ID": "D", "score": 0.1}, {"Vertex_ID": "E", "score": 0.1}, {"Vertex_ID": "R", "score": 0.1}, {"Vertex_ID": "A", "score": 0.1}, {"Vertex_ID": "O", "score": 0.1}, {"Vertex_ID": "M", "score": 0.1}, {"Vertex_ID": "G", "score": 0.1}, {"Vertex_ID": "P", "score": 0.1}]}] \ No newline at end of file diff --git a/tests/data/baseline/graph_algorithms_baselines/centrality/closeness_centrality/Tree.json b/tests/data/baseline/graph_algorithms_baselines/centrality/closeness_centrality/Tree.json new file mode 100644 index 00000000..bd6b84ae --- /dev/null +++ b/tests/data/baseline/graph_algorithms_baselines/centrality/closeness_centrality/Tree.json @@ -0,0 +1 @@ +[{"top_scores": [{"Vertex_ID": "B", "score": 0.38}, {"Vertex_ID": "A", "score": 0.3518519}, {"Vertex_ID": "D", "score": 0.3392857}, {"Vertex_ID": "C", "score": 0.3166667}, {"Vertex_ID": "E", "score": 0.3064516}, {"Vertex_ID": "H", "score": 0.2714286}, {"Vertex_ID": "I", "score": 0.2714286}, {"Vertex_ID": "F", "score": 0.2567568}, {"Vertex_ID": "G", "score": 0.2567568}, {"Vertex_ID": "J", "score": 0.2435897}, {"Vertex_ID": "K", "score": 0.2375}, {"Vertex_ID": "P", "score": 0.2159091}, {"Vertex_ID": "Q", "score": 0.2159091}, {"Vertex_ID": "R", "score": 0.2159091}, {"Vertex_ID": "S", "score": 0.2159091}, {"Vertex_ID": "M", "score": 0.2065217}, {"Vertex_ID": "N", "score": 0.2065217}, {"Vertex_ID": "L", "score": 0.2065217}, {"Vertex_ID": "O", "score": 0.2065217}, {"Vertex_ID": "T", "score": 0.1979167}]}] \ No newline at end of file diff --git a/tests/data/baseline/graph_algorithms_baselines/centrality/closeness_centrality/Tree_Directed.json b/tests/data/baseline/graph_algorithms_baselines/centrality/closeness_centrality/Tree_Directed.json new file mode 100644 index 00000000..372a9a33 --- /dev/null +++ b/tests/data/baseline/graph_algorithms_baselines/centrality/closeness_centrality/Tree_Directed.json @@ -0,0 +1 @@ +[{"top_scores": [{"Vertex_ID": "A", "score": 0.3518519}, {"Vertex_ID": "B", "score": 0.2547368}, {"Vertex_ID": "C", "score": 0.1894737}, {"Vertex_ID": "D", "score": 0.1894737}, {"Vertex_ID": "E", "score": 0.1184211}, {"Vertex_ID": "H", "score": 0.1052632}, {"Vertex_ID": "G", "score": 0.1052632}, {"Vertex_ID": "F", "score": 0.1052632}, {"Vertex_ID": "I", "score": 0.1052632}, {"Vertex_ID": "J", "score": 0.05263158}, {"Vertex_ID": "T", "score": -1}, {"Vertex_ID": "K", "score": -1}, {"Vertex_ID": "O", "score": -1}, {"Vertex_ID": "N", "score": -1}, {"Vertex_ID": "P", "score": -1}, {"Vertex_ID": "R", "score": -1}, {"Vertex_ID": "M", "score": -1}, {"Vertex_ID": "S", "score": -1}, {"Vertex_ID": "L", "score": -1}, {"Vertex_ID": "Q", "score": -1}]}] \ No newline at end of file diff --git a/tests/data/baseline/graph_algorithms_baselines/centrality/degree_centrality/Empty.json b/tests/data/baseline/graph_algorithms_baselines/centrality/degree_centrality/Empty.json new file mode 100644 index 00000000..071ad607 --- /dev/null +++ b/tests/data/baseline/graph_algorithms_baselines/centrality/degree_centrality/Empty.json @@ -0,0 +1 @@ +[{"top_scores": [{"Vertex_ID": "P", "score": 0}, {"Vertex_ID": "N", "score": 0}, {"Vertex_ID": "F", "score": 0}, {"Vertex_ID": "C", "score": 0}, {"Vertex_ID": "J", "score": 0}, {"Vertex_ID": "R", "score": 0}, {"Vertex_ID": "A", "score": 0}, {"Vertex_ID": "T", "score": 0}, {"Vertex_ID": "D", "score": 0}, {"Vertex_ID": "E", "score": 0}, {"Vertex_ID": "L", "score": 0}, {"Vertex_ID": "S", "score": 0}, {"Vertex_ID": "I", "score": 0}, {"Vertex_ID": "H", "score": 0}, {"Vertex_ID": "G", "score": 0}, {"Vertex_ID": "B", "score": 0}, {"Vertex_ID": "Q", "score": 0}, {"Vertex_ID": "O", "score": 0}, {"Vertex_ID": "K", "score": 0}, {"Vertex_ID": "M", "score": 0}]}] \ No newline at end of file diff --git a/tests/data/baseline/graph_algorithms_baselines/centrality/degree_centrality/Hub_Spoke.json b/tests/data/baseline/graph_algorithms_baselines/centrality/degree_centrality/Hub_Spoke.json new file mode 100644 index 00000000..6e10710d --- /dev/null +++ b/tests/data/baseline/graph_algorithms_baselines/centrality/degree_centrality/Hub_Spoke.json @@ -0,0 +1 @@ +[{"top_scores": [{"Vertex_ID": "A", "score": 19}, {"Vertex_ID": "S", "score": 1}, {"Vertex_ID": "B", "score": 1}, {"Vertex_ID": "L", "score": 1}, {"Vertex_ID": "T", "score": 1}, {"Vertex_ID": "H", "score": 1}, {"Vertex_ID": "G", "score": 1}, {"Vertex_ID": "M", "score": 1}, {"Vertex_ID": "K", "score": 1}, {"Vertex_ID": "N", "score": 1}, {"Vertex_ID": "F", "score": 1}, {"Vertex_ID": "D", "score": 1}, {"Vertex_ID": "E", "score": 1}, {"Vertex_ID": "O", "score": 1}, {"Vertex_ID": "C", "score": 1}, {"Vertex_ID": "I", "score": 1}, {"Vertex_ID": "R", "score": 1}, {"Vertex_ID": "J", "score": 1}, {"Vertex_ID": "P", "score": 1}, {"Vertex_ID": "Q", "score": 1}]}] \ No newline at end of file diff --git a/tests/data/baseline/graph_algorithms_baselines/centrality/degree_centrality/Line.json b/tests/data/baseline/graph_algorithms_baselines/centrality/degree_centrality/Line.json new file mode 100644 index 00000000..f52803e2 --- /dev/null +++ b/tests/data/baseline/graph_algorithms_baselines/centrality/degree_centrality/Line.json @@ -0,0 +1 @@ +[{"top_scores": [{"Vertex_ID": "P", "score": 2}, {"Vertex_ID": "N", "score": 2}, {"Vertex_ID": "C", "score": 2}, {"Vertex_ID": "H", "score": 2}, {"Vertex_ID": "B", "score": 2}, {"Vertex_ID": "M", "score": 2}, {"Vertex_ID": "O", "score": 2}, {"Vertex_ID": "R", "score": 2}, {"Vertex_ID": "K", "score": 2}, {"Vertex_ID": "L", "score": 2}, {"Vertex_ID": "J", "score": 2}, {"Vertex_ID": "Q", "score": 2}, {"Vertex_ID": "D", "score": 2}, {"Vertex_ID": "E", "score": 2}, {"Vertex_ID": "G", "score": 2}, {"Vertex_ID": "F", "score": 2}, {"Vertex_ID": "I", "score": 2}, {"Vertex_ID": "S", "score": 2}, {"Vertex_ID": "A", "score": 1}, {"Vertex_ID": "T", "score": 1}]}] \ No newline at end of file diff --git a/tests/data/baseline/graph_algorithms_baselines/centrality/degree_centrality/Ring.json b/tests/data/baseline/graph_algorithms_baselines/centrality/degree_centrality/Ring.json new file mode 100644 index 00000000..6334382b --- /dev/null +++ b/tests/data/baseline/graph_algorithms_baselines/centrality/degree_centrality/Ring.json @@ -0,0 +1 @@ +[{"top_scores": [{"Vertex_ID": "M", "score": 2}, {"Vertex_ID": "Q", "score": 2}, {"Vertex_ID": "N", "score": 2}, {"Vertex_ID": "O", "score": 2}, {"Vertex_ID": "K", "score": 2}, {"Vertex_ID": "C", "score": 2}, {"Vertex_ID": "B", "score": 2}, {"Vertex_ID": "D", "score": 2}, {"Vertex_ID": "E", "score": 2}, {"Vertex_ID": "T", "score": 2}, {"Vertex_ID": "R", "score": 2}, {"Vertex_ID": "F", "score": 2}, {"Vertex_ID": "A", "score": 2}, {"Vertex_ID": "H", "score": 2}, {"Vertex_ID": "G", "score": 2}, {"Vertex_ID": "I", "score": 2}, {"Vertex_ID": "J", "score": 2}, {"Vertex_ID": "S", "score": 2}, {"Vertex_ID": "L", "score": 2}, {"Vertex_ID": "P", "score": 2}]}] \ No newline at end of file diff --git a/tests/data/baseline/graph_algorithms_baselines/centrality/degree_centrality/Tree.json b/tests/data/baseline/graph_algorithms_baselines/centrality/degree_centrality/Tree.json new file mode 100644 index 00000000..85d616d3 --- /dev/null +++ b/tests/data/baseline/graph_algorithms_baselines/centrality/degree_centrality/Tree.json @@ -0,0 +1 @@ +[{"top_scores": [{"Vertex_ID": "E", "score": 3}, {"Vertex_ID": "H", "score": 3}, {"Vertex_ID": "B", "score": 3}, {"Vertex_ID": "G", "score": 3}, {"Vertex_ID": "D", "score": 3}, {"Vertex_ID": "F", "score": 3}, {"Vertex_ID": "I", "score": 3}, {"Vertex_ID": "C", "score": 3}, {"Vertex_ID": "J", "score": 2}, {"Vertex_ID": "A", "score": 2}, {"Vertex_ID": "R", "score": 1}, {"Vertex_ID": "T", "score": 1}, {"Vertex_ID": "Q", "score": 1}, {"Vertex_ID": "L", "score": 1}, {"Vertex_ID": "K", "score": 1}, {"Vertex_ID": "N", "score": 1}, {"Vertex_ID": "S", "score": 1}, {"Vertex_ID": "O", "score": 1}, {"Vertex_ID": "M", "score": 1}, {"Vertex_ID": "P", "score": 1}]}] \ No newline at end of file diff --git a/tests/data/baseline/graph_algorithms_baselines/centrality/degree_centrality/in_degree/Hub_Spoke_Directed.json b/tests/data/baseline/graph_algorithms_baselines/centrality/degree_centrality/in_degree/Hub_Spoke_Directed.json new file mode 100644 index 00000000..0527ce44 --- /dev/null +++ b/tests/data/baseline/graph_algorithms_baselines/centrality/degree_centrality/in_degree/Hub_Spoke_Directed.json @@ -0,0 +1 @@ +[{"top_scores": [{"Vertex_ID": "N", "score": 1}, {"Vertex_ID": "B", "score": 1}, {"Vertex_ID": "K", "score": 1}, {"Vertex_ID": "L", "score": 1}, {"Vertex_ID": "I", "score": 1}, {"Vertex_ID": "S", "score": 1}, {"Vertex_ID": "D", "score": 1}, {"Vertex_ID": "E", "score": 1}, {"Vertex_ID": "F", "score": 1}, {"Vertex_ID": "J", "score": 1}, {"Vertex_ID": "G", "score": 1}, {"Vertex_ID": "Q", "score": 1}, {"Vertex_ID": "R", "score": 1}, {"Vertex_ID": "H", "score": 1}, {"Vertex_ID": "O", "score": 1}, {"Vertex_ID": "C", "score": 1}, {"Vertex_ID": "P", "score": 1}, {"Vertex_ID": "M", "score": 1}, {"Vertex_ID": "T", "score": 1}, {"Vertex_ID": "A", "score": 0}]}] \ No newline at end of file diff --git a/tests/data/baseline/graph_algorithms_baselines/centrality/degree_centrality/in_degree/Line_Directed.json b/tests/data/baseline/graph_algorithms_baselines/centrality/degree_centrality/in_degree/Line_Directed.json new file mode 100644 index 00000000..cb2bda6d --- /dev/null +++ b/tests/data/baseline/graph_algorithms_baselines/centrality/degree_centrality/in_degree/Line_Directed.json @@ -0,0 +1 @@ +[{"top_scores": [{"Vertex_ID": "H", "score": 1}, {"Vertex_ID": "L", "score": 1}, {"Vertex_ID": "G", "score": 1}, {"Vertex_ID": "N", "score": 1}, {"Vertex_ID": "S", "score": 1}, {"Vertex_ID": "K", "score": 1}, {"Vertex_ID": "O", "score": 1}, {"Vertex_ID": "C", "score": 1}, {"Vertex_ID": "T", "score": 1}, {"Vertex_ID": "R", "score": 1}, {"Vertex_ID": "B", "score": 1}, {"Vertex_ID": "P", "score": 1}, {"Vertex_ID": "D", "score": 1}, {"Vertex_ID": "E", "score": 1}, {"Vertex_ID": "F", "score": 1}, {"Vertex_ID": "J", "score": 1}, {"Vertex_ID": "I", "score": 1}, {"Vertex_ID": "M", "score": 1}, {"Vertex_ID": "Q", "score": 1}, {"Vertex_ID": "A", "score": 0}]}] \ No newline at end of file diff --git a/tests/data/baseline/graph_algorithms_baselines/centrality/degree_centrality/in_degree/Ring_Directed.json b/tests/data/baseline/graph_algorithms_baselines/centrality/degree_centrality/in_degree/Ring_Directed.json new file mode 100644 index 00000000..18f77d14 --- /dev/null +++ b/tests/data/baseline/graph_algorithms_baselines/centrality/degree_centrality/in_degree/Ring_Directed.json @@ -0,0 +1 @@ +[{"top_scores": [{"Vertex_ID": "Q", "score": 1}, {"Vertex_ID": "J", "score": 1}, {"Vertex_ID": "L", "score": 1}, {"Vertex_ID": "E", "score": 1}, {"Vertex_ID": "T", "score": 1}, {"Vertex_ID": "M", "score": 1}, {"Vertex_ID": "N", "score": 1}, {"Vertex_ID": "K", "score": 1}, {"Vertex_ID": "I", "score": 1}, {"Vertex_ID": "P", "score": 1}, {"Vertex_ID": "B", "score": 1}, {"Vertex_ID": "O", "score": 1}, {"Vertex_ID": "H", "score": 1}, {"Vertex_ID": "G", "score": 1}, {"Vertex_ID": "R", "score": 1}, {"Vertex_ID": "A", "score": 1}, {"Vertex_ID": "C", "score": 1}, {"Vertex_ID": "D", "score": 1}, {"Vertex_ID": "S", "score": 1}, {"Vertex_ID": "F", "score": 1}]}] \ No newline at end of file diff --git a/tests/data/baseline/graph_algorithms_baselines/centrality/degree_centrality/in_degree/Tree_Directed.json b/tests/data/baseline/graph_algorithms_baselines/centrality/degree_centrality/in_degree/Tree_Directed.json new file mode 100644 index 00000000..a00f147c --- /dev/null +++ b/tests/data/baseline/graph_algorithms_baselines/centrality/degree_centrality/in_degree/Tree_Directed.json @@ -0,0 +1 @@ +[{"top_scores": [{"Vertex_ID": "G", "score": 1}, {"Vertex_ID": "T", "score": 1}, {"Vertex_ID": "P", "score": 1}, {"Vertex_ID": "J", "score": 1}, {"Vertex_ID": "F", "score": 1}, {"Vertex_ID": "O", "score": 1}, {"Vertex_ID": "C", "score": 1}, {"Vertex_ID": "Q", "score": 1}, {"Vertex_ID": "L", "score": 1}, {"Vertex_ID": "I", "score": 1}, {"Vertex_ID": "E", "score": 1}, {"Vertex_ID": "B", "score": 1}, {"Vertex_ID": "M", "score": 1}, {"Vertex_ID": "N", "score": 1}, {"Vertex_ID": "K", "score": 1}, {"Vertex_ID": "S", "score": 1}, {"Vertex_ID": "D", "score": 1}, {"Vertex_ID": "R", "score": 1}, {"Vertex_ID": "H", "score": 1}, {"Vertex_ID": "A", "score": 0}]}] \ No newline at end of file diff --git a/tests/data/baseline/graph_algorithms_baselines/centrality/degree_centrality/out_degree/Hub_Spoke_Directed.json b/tests/data/baseline/graph_algorithms_baselines/centrality/degree_centrality/out_degree/Hub_Spoke_Directed.json new file mode 100644 index 00000000..5bb19d3a --- /dev/null +++ b/tests/data/baseline/graph_algorithms_baselines/centrality/degree_centrality/out_degree/Hub_Spoke_Directed.json @@ -0,0 +1 @@ +[{"top_scores": [{"Vertex_ID": "A", "score": 19}, {"Vertex_ID": "D", "score": 0}, {"Vertex_ID": "K", "score": 0}, {"Vertex_ID": "M", "score": 0}, {"Vertex_ID": "I", "score": 0}, {"Vertex_ID": "F", "score": 0}, {"Vertex_ID": "J", "score": 0}, {"Vertex_ID": "B", "score": 0}, {"Vertex_ID": "R", "score": 0}, {"Vertex_ID": "E", "score": 0}, {"Vertex_ID": "P", "score": 0}, {"Vertex_ID": "Q", "score": 0}, {"Vertex_ID": "H", "score": 0}, {"Vertex_ID": "G", "score": 0}, {"Vertex_ID": "O", "score": 0}, {"Vertex_ID": "C", "score": 0}, {"Vertex_ID": "L", "score": 0}, {"Vertex_ID": "T", "score": 0}, {"Vertex_ID": "N", "score": 0}, {"Vertex_ID": "S", "score": 0}]}] \ No newline at end of file diff --git a/tests/data/baseline/graph_algorithms_baselines/centrality/degree_centrality/out_degree/Line_Directed.json b/tests/data/baseline/graph_algorithms_baselines/centrality/degree_centrality/out_degree/Line_Directed.json new file mode 100644 index 00000000..f939bbc8 --- /dev/null +++ b/tests/data/baseline/graph_algorithms_baselines/centrality/degree_centrality/out_degree/Line_Directed.json @@ -0,0 +1 @@ +[{"top_scores": [{"Vertex_ID": "A", "score": 1}, {"Vertex_ID": "F", "score": 1}, {"Vertex_ID": "J", "score": 1}, {"Vertex_ID": "B", "score": 1}, {"Vertex_ID": "L", "score": 1}, {"Vertex_ID": "H", "score": 1}, {"Vertex_ID": "G", "score": 1}, {"Vertex_ID": "Q", "score": 1}, {"Vertex_ID": "M", "score": 1}, {"Vertex_ID": "K", "score": 1}, {"Vertex_ID": "O", "score": 1}, {"Vertex_ID": "N", "score": 1}, {"Vertex_ID": "C", "score": 1}, {"Vertex_ID": "D", "score": 1}, {"Vertex_ID": "E", "score": 1}, {"Vertex_ID": "S", "score": 1}, {"Vertex_ID": "I", "score": 1}, {"Vertex_ID": "P", "score": 1}, {"Vertex_ID": "R", "score": 1}, {"Vertex_ID": "T", "score": 0}]}] \ No newline at end of file diff --git a/tests/data/baseline/graph_algorithms_baselines/centrality/degree_centrality/out_degree/Ring_Directed.json b/tests/data/baseline/graph_algorithms_baselines/centrality/degree_centrality/out_degree/Ring_Directed.json new file mode 100644 index 00000000..b3ae288a --- /dev/null +++ b/tests/data/baseline/graph_algorithms_baselines/centrality/degree_centrality/out_degree/Ring_Directed.json @@ -0,0 +1 @@ +[{"top_scores": [{"Vertex_ID": "C", "score": 1}, {"Vertex_ID": "I", "score": 1}, {"Vertex_ID": "Q", "score": 1}, {"Vertex_ID": "P", "score": 1}, {"Vertex_ID": "L", "score": 1}, {"Vertex_ID": "R", "score": 1}, {"Vertex_ID": "A", "score": 1}, {"Vertex_ID": "H", "score": 1}, {"Vertex_ID": "G", "score": 1}, {"Vertex_ID": "D", "score": 1}, {"Vertex_ID": "J", "score": 1}, {"Vertex_ID": "E", "score": 1}, {"Vertex_ID": "M", "score": 1}, {"Vertex_ID": "N", "score": 1}, {"Vertex_ID": "K", "score": 1}, {"Vertex_ID": "B", "score": 1}, {"Vertex_ID": "F", "score": 1}, {"Vertex_ID": "S", "score": 1}, {"Vertex_ID": "O", "score": 1}, {"Vertex_ID": "T", "score": 1}]}] \ No newline at end of file diff --git a/tests/data/baseline/graph_algorithms_baselines/centrality/degree_centrality/out_degree/Tree_Directed.json b/tests/data/baseline/graph_algorithms_baselines/centrality/degree_centrality/out_degree/Tree_Directed.json new file mode 100644 index 00000000..d3515537 --- /dev/null +++ b/tests/data/baseline/graph_algorithms_baselines/centrality/degree_centrality/out_degree/Tree_Directed.json @@ -0,0 +1 @@ +[{"top_scores": [{"Vertex_ID": "I", "score": 2}, {"Vertex_ID": "F", "score": 2}, {"Vertex_ID": "A", "score": 2}, {"Vertex_ID": "D", "score": 2}, {"Vertex_ID": "G", "score": 2}, {"Vertex_ID": "B", "score": 2}, {"Vertex_ID": "C", "score": 2}, {"Vertex_ID": "H", "score": 2}, {"Vertex_ID": "E", "score": 2}, {"Vertex_ID": "J", "score": 1}, {"Vertex_ID": "P", "score": 0}, {"Vertex_ID": "Q", "score": 0}, {"Vertex_ID": "O", "score": 0}, {"Vertex_ID": "S", "score": 0}, {"Vertex_ID": "L", "score": 0}, {"Vertex_ID": "N", "score": 0}, {"Vertex_ID": "T", "score": 0}, {"Vertex_ID": "R", "score": 0}, {"Vertex_ID": "K", "score": 0}, {"Vertex_ID": "M", "score": 0}]}] \ No newline at end of file diff --git a/tests/data/baseline/graph_algorithms_baselines/centrality/harmonic_centrality/Empty.json b/tests/data/baseline/graph_algorithms_baselines/centrality/harmonic_centrality/Empty.json new file mode 100644 index 00000000..8cd3525c --- /dev/null +++ b/tests/data/baseline/graph_algorithms_baselines/centrality/harmonic_centrality/Empty.json @@ -0,0 +1 @@ +[{"top_scores": []}] \ No newline at end of file diff --git a/tests/data/baseline/graph_algorithms_baselines/centrality/harmonic_centrality/Hub_Spoke.json b/tests/data/baseline/graph_algorithms_baselines/centrality/harmonic_centrality/Hub_Spoke.json new file mode 100644 index 00000000..bb913440 --- /dev/null +++ b/tests/data/baseline/graph_algorithms_baselines/centrality/harmonic_centrality/Hub_Spoke.json @@ -0,0 +1 @@ +[{"top_scores": [{"Vertex_ID": "A", "score": 1}, {"Vertex_ID": "J", "score": 0.5263158}, {"Vertex_ID": "F", "score": 0.5263158}, {"Vertex_ID": "N", "score": 0.5263158}, {"Vertex_ID": "T", "score": 0.5263158}, {"Vertex_ID": "I", "score": 0.5263158}, {"Vertex_ID": "H", "score": 0.5263158}, {"Vertex_ID": "G", "score": 0.5263158}, {"Vertex_ID": "B", "score": 0.5263158}, {"Vertex_ID": "P", "score": 0.5263158}, {"Vertex_ID": "D", "score": 0.5263158}, {"Vertex_ID": "L", "score": 0.5263158}, {"Vertex_ID": "R", "score": 0.5263158}, {"Vertex_ID": "S", "score": 0.5263158}, {"Vertex_ID": "O", "score": 0.5263158}, {"Vertex_ID": "C", "score": 0.5263158}, {"Vertex_ID": "Q", "score": 0.5263158}, {"Vertex_ID": "E", "score": 0.5263158}, {"Vertex_ID": "K", "score": 0.5263158}, {"Vertex_ID": "M", "score": 0.5263158}]}] \ No newline at end of file diff --git a/tests/data/baseline/graph_algorithms_baselines/centrality/harmonic_centrality/Hub_Spoke_Directed.json b/tests/data/baseline/graph_algorithms_baselines/centrality/harmonic_centrality/Hub_Spoke_Directed.json new file mode 100644 index 00000000..506abd78 --- /dev/null +++ b/tests/data/baseline/graph_algorithms_baselines/centrality/harmonic_centrality/Hub_Spoke_Directed.json @@ -0,0 +1 @@ +[{"top_scores": [{"Vertex_ID": "A", "score": 1}]}] \ No newline at end of file diff --git a/tests/data/baseline/graph_algorithms_baselines/centrality/harmonic_centrality/Line.json b/tests/data/baseline/graph_algorithms_baselines/centrality/harmonic_centrality/Line.json new file mode 100644 index 00000000..3ae032de --- /dev/null +++ b/tests/data/baseline/graph_algorithms_baselines/centrality/harmonic_centrality/Line.json @@ -0,0 +1 @@ +[{"top_scores": [{"Vertex_ID": "J", "score": 0.3030492}, {"Vertex_ID": "K", "score": 0.3030492}, {"Vertex_ID": "L", "score": 0.301986}, {"Vertex_ID": "I", "score": 0.301986}, {"Vertex_ID": "M", "score": 0.299793}, {"Vertex_ID": "H", "score": 0.299793}, {"Vertex_ID": "G", "score": 0.2963228}, {"Vertex_ID": "N", "score": 0.2963228}, {"Vertex_ID": "O", "score": 0.2913103}, {"Vertex_ID": "F", "score": 0.2913103}, {"Vertex_ID": "P", "score": 0.2842927}, {"Vertex_ID": "E", "score": 0.2842927}, {"Vertex_ID": "Q", "score": 0.2744243}, {"Vertex_ID": "D", "score": 0.2744243}, {"Vertex_ID": "R", "score": 0.2599765}, {"Vertex_ID": "C", "score": 0.2599765}, {"Vertex_ID": "B", "score": 0.2365846}, {"Vertex_ID": "S", "score": 0.2365846}, {"Vertex_ID": "A", "score": 0.1867231}, {"Vertex_ID": "T", "score": 0.1867231}]}] \ No newline at end of file diff --git a/tests/data/baseline/graph_algorithms_baselines/centrality/harmonic_centrality/Line_Directed.json b/tests/data/baseline/graph_algorithms_baselines/centrality/harmonic_centrality/Line_Directed.json new file mode 100644 index 00000000..fc366528 --- /dev/null +++ b/tests/data/baseline/graph_algorithms_baselines/centrality/harmonic_centrality/Line_Directed.json @@ -0,0 +1 @@ +[{"top_scores": [{"Vertex_ID": "S", "score": 1}, {"Vertex_ID": "R", "score": 0.75}, {"Vertex_ID": "Q", "score": 0.6111111}, {"Vertex_ID": "P", "score": 0.5208334}, {"Vertex_ID": "O", "score": 0.4566667}, {"Vertex_ID": "N", "score": 0.4083334}, {"Vertex_ID": "M", "score": 0.3704082}, {"Vertex_ID": "L", "score": 0.3397322}, {"Vertex_ID": "K", "score": 0.3143298}, {"Vertex_ID": "J", "score": 0.2928968}, {"Vertex_ID": "I", "score": 0.2745343}, {"Vertex_ID": "H", "score": 0.2586009}, {"Vertex_ID": "G", "score": 0.2446257}, {"Vertex_ID": "F", "score": 0.2322545}, {"Vertex_ID": "E", "score": 0.2212153}, {"Vertex_ID": "D", "score": 0.2112956}, {"Vertex_ID": "C", "score": 0.2023266}, {"Vertex_ID": "B", "score": 0.1941727}, {"Vertex_ID": "A", "score": 0.1867231}]}] \ No newline at end of file diff --git a/tests/data/baseline/graph_algorithms_baselines/centrality/harmonic_centrality/Ring.json b/tests/data/baseline/graph_algorithms_baselines/centrality/harmonic_centrality/Ring.json new file mode 100644 index 00000000..2dfc9abc --- /dev/null +++ b/tests/data/baseline/graph_algorithms_baselines/centrality/harmonic_centrality/Ring.json @@ -0,0 +1 @@ +[{"top_scores": [{"Vertex_ID": "M", "score": 0.3030492}, {"Vertex_ID": "F", "score": 0.3030492}, {"Vertex_ID": "N", "score": 0.3030492}, {"Vertex_ID": "L", "score": 0.3030492}, {"Vertex_ID": "K", "score": 0.3030492}, {"Vertex_ID": "H", "score": 0.3030492}, {"Vertex_ID": "G", "score": 0.3030492}, {"Vertex_ID": "D", "score": 0.3030492}, {"Vertex_ID": "E", "score": 0.3030492}, {"Vertex_ID": "I", "score": 0.3030492}, {"Vertex_ID": "C", "score": 0.3030492}, {"Vertex_ID": "P", "score": 0.3030492}, {"Vertex_ID": "B", "score": 0.3030492}, {"Vertex_ID": "T", "score": 0.3030492}, {"Vertex_ID": "R", "score": 0.3030492}, {"Vertex_ID": "A", "score": 0.3030492}, {"Vertex_ID": "O", "score": 0.3030492}, {"Vertex_ID": "Q", "score": 0.3030492}, {"Vertex_ID": "J", "score": 0.3030492}, {"Vertex_ID": "S", "score": 0.3030492}]}] \ No newline at end of file diff --git a/tests/data/baseline/graph_algorithms_baselines/centrality/harmonic_centrality/Ring_Directed.json b/tests/data/baseline/graph_algorithms_baselines/centrality/harmonic_centrality/Ring_Directed.json new file mode 100644 index 00000000..4270549e --- /dev/null +++ b/tests/data/baseline/graph_algorithms_baselines/centrality/harmonic_centrality/Ring_Directed.json @@ -0,0 +1 @@ +[{"top_scores": [{"Vertex_ID": "Q", "score": 0.1867231}, {"Vertex_ID": "T", "score": 0.1867231}, {"Vertex_ID": "L", "score": 0.1867231}, {"Vertex_ID": "C", "score": 0.1867231}, {"Vertex_ID": "S", "score": 0.1867231}, {"Vertex_ID": "I", "score": 0.1867231}, {"Vertex_ID": "M", "score": 0.1867231}, {"Vertex_ID": "N", "score": 0.1867231}, {"Vertex_ID": "K", "score": 0.1867231}, {"Vertex_ID": "F", "score": 0.1867231}, {"Vertex_ID": "E", "score": 0.1867231}, {"Vertex_ID": "J", "score": 0.1867231}, {"Vertex_ID": "H", "score": 0.1867231}, {"Vertex_ID": "G", "score": 0.1867231}, {"Vertex_ID": "R", "score": 0.1867231}, {"Vertex_ID": "A", "score": 0.1867231}, {"Vertex_ID": "D", "score": 0.1867231}, {"Vertex_ID": "O", "score": 0.1867231}, {"Vertex_ID": "B", "score": 0.1867231}, {"Vertex_ID": "P", "score": 0.1867231}]}] \ No newline at end of file diff --git a/tests/data/baseline/graph_algorithms_baselines/centrality/harmonic_centrality/Tree.json b/tests/data/baseline/graph_algorithms_baselines/centrality/harmonic_centrality/Tree.json new file mode 100644 index 00000000..9835ffc6 --- /dev/null +++ b/tests/data/baseline/graph_algorithms_baselines/centrality/harmonic_centrality/Tree.json @@ -0,0 +1 @@ +[{"top_scores": [{"Vertex_ID": "B", "score": 0.4649123}, {"Vertex_ID": "D", "score": 0.45}, {"Vertex_ID": "C", "score": 0.4298245}, {"Vertex_ID": "A", "score": 0.4166667}, {"Vertex_ID": "E", "score": 0.4105263}, {"Vertex_ID": "H", "score": 0.3868421}, {"Vertex_ID": "I", "score": 0.3868421}, {"Vertex_ID": "G", "score": 0.3754385}, {"Vertex_ID": "F", "score": 0.3754385}, {"Vertex_ID": "J", "score": 0.3307016}, {"Vertex_ID": "K", "score": 0.2956139}, {"Vertex_ID": "R", "score": 0.2809523}, {"Vertex_ID": "P", "score": 0.2809523}, {"Vertex_ID": "Q", "score": 0.2809523}, {"Vertex_ID": "S", "score": 0.2809523}, {"Vertex_ID": "N", "score": 0.2735589}, {"Vertex_ID": "L", "score": 0.2735589}, {"Vertex_ID": "O", "score": 0.2735589}, {"Vertex_ID": "M", "score": 0.2735589}, {"Vertex_ID": "T", "score": 0.2546366}]}] \ No newline at end of file diff --git a/tests/data/baseline/graph_algorithms_baselines/centrality/harmonic_centrality/Tree_Directed.json b/tests/data/baseline/graph_algorithms_baselines/centrality/harmonic_centrality/Tree_Directed.json new file mode 100644 index 00000000..9f657bf3 --- /dev/null +++ b/tests/data/baseline/graph_algorithms_baselines/centrality/harmonic_centrality/Tree_Directed.json @@ -0,0 +1 @@ +[{"top_scores": [{"Vertex_ID": "G", "score": 1}, {"Vertex_ID": "I", "score": 1}, {"Vertex_ID": "F", "score": 1}, {"Vertex_ID": "J", "score": 1}, {"Vertex_ID": "H", "score": 1}, {"Vertex_ID": "E", "score": 0.8333333}, {"Vertex_ID": "C", "score": 0.6666667}, {"Vertex_ID": "D", "score": 0.6666667}, {"Vertex_ID": "B", "score": 0.5151516}, {"Vertex_ID": "A", "score": 0.4166667}]}] \ No newline at end of file diff --git a/tests/data/baseline/graph_algorithms_baselines/centrality/pagerank/Empty.json b/tests/data/baseline/graph_algorithms_baselines/centrality/pagerank/Empty.json new file mode 100644 index 00000000..5bc65dd7 --- /dev/null +++ b/tests/data/baseline/graph_algorithms_baselines/centrality/pagerank/Empty.json @@ -0,0 +1 @@ +[{"@@top_scores_heap": [{"Vertex_ID": "B", "score": 1}, {"Vertex_ID": "H", "score": 1}, {"Vertex_ID": "I", "score": 1}, {"Vertex_ID": "S", "score": 1}, {"Vertex_ID": "Q", "score": 1}, {"Vertex_ID": "F", "score": 1}, {"Vertex_ID": "J", "score": 1}, {"Vertex_ID": "D", "score": 1}, {"Vertex_ID": "E", "score": 1}, {"Vertex_ID": "P", "score": 1}, {"Vertex_ID": "M", "score": 1}, {"Vertex_ID": "R", "score": 1}, {"Vertex_ID": "N", "score": 1}, {"Vertex_ID": "K", "score": 1}, {"Vertex_ID": "O", "score": 1}, {"Vertex_ID": "C", "score": 1}, {"Vertex_ID": "A", "score": 1}, {"Vertex_ID": "L", "score": 1}, {"Vertex_ID": "G", "score": 1}, {"Vertex_ID": "T", "score": 1}]}] \ No newline at end of file diff --git a/tests/data/baseline/graph_algorithms_baselines/centrality/pagerank/Hub_Spoke.json b/tests/data/baseline/graph_algorithms_baselines/centrality/pagerank/Hub_Spoke.json new file mode 100644 index 00000000..4e3d7335 --- /dev/null +++ b/tests/data/baseline/graph_algorithms_baselines/centrality/pagerank/Hub_Spoke.json @@ -0,0 +1 @@ +[{"@@top_scores_heap": [{"Vertex_ID": "A", "score": 7.642066}, {"Vertex_ID": "I", "score": 0.6504175}, {"Vertex_ID": "C", "score": 0.6504175}, {"Vertex_ID": "T", "score": 0.6504175}, {"Vertex_ID": "Q", "score": 0.6504175}, {"Vertex_ID": "L", "score": 0.6504175}, {"Vertex_ID": "B", "score": 0.6504175}, {"Vertex_ID": "M", "score": 0.6504175}, {"Vertex_ID": "K", "score": 0.6504175}, {"Vertex_ID": "N", "score": 0.6504175}, {"Vertex_ID": "F", "score": 0.6504175}, {"Vertex_ID": "R", "score": 0.6504175}, {"Vertex_ID": "H", "score": 0.6504175}, {"Vertex_ID": "S", "score": 0.6504175}, {"Vertex_ID": "D", "score": 0.6504175}, {"Vertex_ID": "E", "score": 0.6504175}, {"Vertex_ID": "G", "score": 0.6504175}, {"Vertex_ID": "J", "score": 0.6504175}, {"Vertex_ID": "O", "score": 0.6504175}, {"Vertex_ID": "P", "score": 0.6504175}]}] \ No newline at end of file diff --git a/tests/data/baseline/graph_algorithms_baselines/centrality/pagerank/Hub_Spoke_Directed.json b/tests/data/baseline/graph_algorithms_baselines/centrality/pagerank/Hub_Spoke_Directed.json new file mode 100644 index 00000000..f935882b --- /dev/null +++ b/tests/data/baseline/graph_algorithms_baselines/centrality/pagerank/Hub_Spoke_Directed.json @@ -0,0 +1 @@ +[{"@@top_scores_heap": [{"Vertex_ID": "B", "score": 1}, {"Vertex_ID": "N", "score": 1}, {"Vertex_ID": "P", "score": 1}, {"Vertex_ID": "T", "score": 1}, {"Vertex_ID": "H", "score": 1}, {"Vertex_ID": "S", "score": 1}, {"Vertex_ID": "Q", "score": 1}, {"Vertex_ID": "L", "score": 1}, {"Vertex_ID": "D", "score": 1}, {"Vertex_ID": "E", "score": 1}, {"Vertex_ID": "I", "score": 1}, {"Vertex_ID": "G", "score": 1}, {"Vertex_ID": "O", "score": 1}, {"Vertex_ID": "C", "score": 1}, {"Vertex_ID": "F", "score": 1}, {"Vertex_ID": "J", "score": 1}, {"Vertex_ID": "R", "score": 1}, {"Vertex_ID": "K", "score": 1}, {"Vertex_ID": "M", "score": 1}, {"Vertex_ID": "A", "score": 0.15}]}] \ No newline at end of file diff --git a/tests/data/baseline/graph_algorithms_baselines/centrality/pagerank/Line.json b/tests/data/baseline/graph_algorithms_baselines/centrality/pagerank/Line.json new file mode 100644 index 00000000..a9051460 --- /dev/null +++ b/tests/data/baseline/graph_algorithms_baselines/centrality/pagerank/Line.json @@ -0,0 +1 @@ +[{"@@top_scores_heap": [{"Vertex_ID": "S", "score": 1.140792}, {"Vertex_ID": "B", "score": 1.140792}, {"Vertex_ID": "C", "score": 1.109244}, {"Vertex_ID": "R", "score": 1.109244}, {"Vertex_ID": "E", "score": 1.037739}, {"Vertex_ID": "P", "score": 1.037739}, {"Vertex_ID": "Q", "score": 1.035503}, {"Vertex_ID": "D", "score": 1.035503}, {"Vertex_ID": "N", "score": 1.010813}, {"Vertex_ID": "G", "score": 1.010813}, {"Vertex_ID": "F", "score": 1.007152}, {"Vertex_ID": "O", "score": 1.007152}, {"Vertex_ID": "I", "score": 1.002082}, {"Vertex_ID": "L", "score": 1.002082}, {"Vertex_ID": "H", "score": 1.000986}, {"Vertex_ID": "M", "score": 1.000986}, {"Vertex_ID": "J", "score": 1.00026}, {"Vertex_ID": "K", "score": 1.00026}, {"Vertex_ID": "T", "score": 0.6554276}, {"Vertex_ID": "A", "score": 0.6554276}]}] \ No newline at end of file diff --git a/tests/data/baseline/graph_algorithms_baselines/centrality/pagerank/Line_Directed.json b/tests/data/baseline/graph_algorithms_baselines/centrality/pagerank/Line_Directed.json new file mode 100644 index 00000000..a7fc1e02 --- /dev/null +++ b/tests/data/baseline/graph_algorithms_baselines/centrality/pagerank/Line_Directed.json @@ -0,0 +1 @@ +[{"@@top_scores_heap": [{"Vertex_ID": "K", "score": 1}, {"Vertex_ID": "P", "score": 1}, {"Vertex_ID": "S", "score": 1}, {"Vertex_ID": "T", "score": 1}, {"Vertex_ID": "O", "score": 1}, {"Vertex_ID": "R", "score": 1}, {"Vertex_ID": "Q", "score": 1}, {"Vertex_ID": "M", "score": 1}, {"Vertex_ID": "L", "score": 1}, {"Vertex_ID": "N", "score": 1}, {"Vertex_ID": "J", "score": 0.8031256}, {"Vertex_ID": "I", "score": 0.768383}, {"Vertex_ID": "H", "score": 0.7275094}, {"Vertex_ID": "G", "score": 0.6794229}, {"Vertex_ID": "F", "score": 0.6228504}, {"Vertex_ID": "E", "score": 0.5562946}, {"Vertex_ID": "D", "score": 0.4779937}, {"Vertex_ID": "C", "score": 0.385875}, {"Vertex_ID": "B", "score": 0.2775}, {"Vertex_ID": "A", "score": 0.15}]}] \ No newline at end of file diff --git a/tests/data/baseline/graph_algorithms_baselines/centrality/pagerank/Ring.json b/tests/data/baseline/graph_algorithms_baselines/centrality/pagerank/Ring.json new file mode 100644 index 00000000..f5af141a --- /dev/null +++ b/tests/data/baseline/graph_algorithms_baselines/centrality/pagerank/Ring.json @@ -0,0 +1 @@ +[{"@@top_scores_heap": [{"Vertex_ID": "F", "score": 1}, {"Vertex_ID": "L", "score": 1}, {"Vertex_ID": "J", "score": 1}, {"Vertex_ID": "K", "score": 1}, {"Vertex_ID": "M", "score": 1}, {"Vertex_ID": "O", "score": 1}, {"Vertex_ID": "C", "score": 1}, {"Vertex_ID": "T", "score": 1}, {"Vertex_ID": "I", "score": 1}, {"Vertex_ID": "P", "score": 1}, {"Vertex_ID": "G", "score": 1}, {"Vertex_ID": "B", "score": 1}, {"Vertex_ID": "D", "score": 1}, {"Vertex_ID": "E", "score": 1}, {"Vertex_ID": "R", "score": 1}, {"Vertex_ID": "A", "score": 1}, {"Vertex_ID": "H", "score": 1}, {"Vertex_ID": "N", "score": 1}, {"Vertex_ID": "S", "score": 1}, {"Vertex_ID": "Q", "score": 1}]}] \ No newline at end of file diff --git a/tests/data/baseline/graph_algorithms_baselines/centrality/pagerank/Ring_Directed.json b/tests/data/baseline/graph_algorithms_baselines/centrality/pagerank/Ring_Directed.json new file mode 100644 index 00000000..97d9a8f7 --- /dev/null +++ b/tests/data/baseline/graph_algorithms_baselines/centrality/pagerank/Ring_Directed.json @@ -0,0 +1 @@ +[{"@@top_scores_heap": [{"Vertex_ID": "T", "score": 1}, {"Vertex_ID": "L", "score": 1}, {"Vertex_ID": "S", "score": 1}, {"Vertex_ID": "N", "score": 1}, {"Vertex_ID": "P", "score": 1}, {"Vertex_ID": "K", "score": 1}, {"Vertex_ID": "I", "score": 1}, {"Vertex_ID": "F", "score": 1}, {"Vertex_ID": "J", "score": 1}, {"Vertex_ID": "H", "score": 1}, {"Vertex_ID": "A", "score": 1}, {"Vertex_ID": "G", "score": 1}, {"Vertex_ID": "D", "score": 1}, {"Vertex_ID": "E", "score": 1}, {"Vertex_ID": "O", "score": 1}, {"Vertex_ID": "C", "score": 1}, {"Vertex_ID": "R", "score": 1}, {"Vertex_ID": "M", "score": 1}, {"Vertex_ID": "B", "score": 1}, {"Vertex_ID": "Q", "score": 1}]}] \ No newline at end of file diff --git a/tests/data/baseline/graph_algorithms_baselines/centrality/pagerank/Tree.json b/tests/data/baseline/graph_algorithms_baselines/centrality/pagerank/Tree.json new file mode 100644 index 00000000..116d6349 --- /dev/null +++ b/tests/data/baseline/graph_algorithms_baselines/centrality/pagerank/Tree.json @@ -0,0 +1 @@ +[{"@@top_scores_heap": [{"Vertex_ID": "C", "score": 1.507026}, {"Vertex_ID": "E", "score": 1.503473}, {"Vertex_ID": "F", "score": 1.49345}, {"Vertex_ID": "G", "score": 1.49345}, {"Vertex_ID": "I", "score": 1.485403}, {"Vertex_ID": "H", "score": 1.485403}, {"Vertex_ID": "D", "score": 1.483297}, {"Vertex_ID": "B", "score": 1.367901}, {"Vertex_ID": "J", "score": 1.09461}, {"Vertex_ID": "A", "score": 0.9330747}, {"Vertex_ID": "O", "score": 0.6221145}, {"Vertex_ID": "L", "score": 0.6221145}, {"Vertex_ID": "N", "score": 0.6221145}, {"Vertex_ID": "M", "score": 0.6221145}, {"Vertex_ID": "R", "score": 0.6187774}, {"Vertex_ID": "P", "score": 0.6187774}, {"Vertex_ID": "Q", "score": 0.6187774}, {"Vertex_ID": "S", "score": 0.6187774}, {"Vertex_ID": "T", "score": 0.6181464}, {"Vertex_ID": "K", "score": 0.5711977}]}] \ No newline at end of file diff --git a/tests/data/baseline/graph_algorithms_baselines/centrality/pagerank/Tree_Directed.json b/tests/data/baseline/graph_algorithms_baselines/centrality/pagerank/Tree_Directed.json new file mode 100644 index 00000000..58e261d5 --- /dev/null +++ b/tests/data/baseline/graph_algorithms_baselines/centrality/pagerank/Tree_Directed.json @@ -0,0 +1 @@ +[{"@@top_scores_heap": [{"Vertex_ID": "T", "score": 1}, {"Vertex_ID": "S", "score": 1}, {"Vertex_ID": "K", "score": 1}, {"Vertex_ID": "L", "score": 1}, {"Vertex_ID": "O", "score": 1}, {"Vertex_ID": "R", "score": 1}, {"Vertex_ID": "N", "score": 1}, {"Vertex_ID": "M", "score": 1}, {"Vertex_ID": "P", "score": 1}, {"Vertex_ID": "Q", "score": 1}, {"Vertex_ID": "I", "score": 0.2523586}, {"Vertex_ID": "H", "score": 0.2523586}, {"Vertex_ID": "J", "score": 0.2523586}, {"Vertex_ID": "E", "score": 0.2408437}, {"Vertex_ID": "D", "score": 0.2408437}, {"Vertex_ID": "G", "score": 0.2408437}, {"Vertex_ID": "F", "score": 0.2408437}, {"Vertex_ID": "C", "score": 0.21375}, {"Vertex_ID": "B", "score": 0.21375}, {"Vertex_ID": "A", "score": 0.15}]}] \ No newline at end of file diff --git a/tests/data/baseline/graph_algorithms_baselines/centrality/weighted_degree_centrality/Hub_Spoke_Weighted.json b/tests/data/baseline/graph_algorithms_baselines/centrality/weighted_degree_centrality/Hub_Spoke_Weighted.json new file mode 100644 index 00000000..12a7f190 --- /dev/null +++ b/tests/data/baseline/graph_algorithms_baselines/centrality/weighted_degree_centrality/Hub_Spoke_Weighted.json @@ -0,0 +1 @@ +[{"top_scores": [{"Vertex_ID": "A", "score": 190}, {"Vertex_ID": "M", "score": 44}, {"Vertex_ID": "T", "score": 35}, {"Vertex_ID": "I", "score": 31}, {"Vertex_ID": "H", "score": 25}, {"Vertex_ID": "P", "score": 24}, {"Vertex_ID": "N", "score": 17}, {"Vertex_ID": "S", "score": 16}, {"Vertex_ID": "B", "score": 10}, {"Vertex_ID": "G", "score": 8}, {"Vertex_ID": "L", "score": 6}, {"Vertex_ID": "D", "score": 5}, {"Vertex_ID": "J", "score": 4}, {"Vertex_ID": "C", "score": 2}, {"Vertex_ID": "O", "score": 0}, {"Vertex_ID": "E", "score": -3}, {"Vertex_ID": "Q", "score": -7}, {"Vertex_ID": "K", "score": -8}, {"Vertex_ID": "R", "score": -9}, {"Vertex_ID": "F", "score": -10}]}] \ No newline at end of file diff --git a/tests/data/baseline/graph_algorithms_baselines/centrality/weighted_degree_centrality/Line_Weighted.json b/tests/data/baseline/graph_algorithms_baselines/centrality/weighted_degree_centrality/Line_Weighted.json new file mode 100644 index 00000000..7a185704 --- /dev/null +++ b/tests/data/baseline/graph_algorithms_baselines/centrality/weighted_degree_centrality/Line_Weighted.json @@ -0,0 +1 @@ +[{"top_scores": [{"Vertex_ID": "J", "score": 74}, {"Vertex_ID": "E", "score": 71}, {"Vertex_ID": "K", "score": 52}, {"Vertex_ID": "N", "score": 48}, {"Vertex_ID": "F", "score": 47}, {"Vertex_ID": "D", "score": 35}, {"Vertex_ID": "O", "score": 33}, {"Vertex_ID": "I", "score": 30}, {"Vertex_ID": "Q", "score": 26}, {"Vertex_ID": "R", "score": 17}, {"Vertex_ID": "T", "score": 15}, {"Vertex_ID": "S", "score": 7}, {"Vertex_ID": "C", "score": 6}, {"Vertex_ID": "A", "score": 5}, {"Vertex_ID": "M", "score": 5}, {"Vertex_ID": "B", "score": 4}, {"Vertex_ID": "P", "score": 3}, {"Vertex_ID": "H", "score": -2}, {"Vertex_ID": "G", "score": -6}, {"Vertex_ID": "L", "score": -12}]}] \ No newline at end of file diff --git a/tests/data/baseline/graph_algorithms_baselines/centrality/weighted_degree_centrality/Ring_Weighted.json b/tests/data/baseline/graph_algorithms_baselines/centrality/weighted_degree_centrality/Ring_Weighted.json new file mode 100644 index 00000000..de4a4934 --- /dev/null +++ b/tests/data/baseline/graph_algorithms_baselines/centrality/weighted_degree_centrality/Ring_Weighted.json @@ -0,0 +1 @@ +[{"top_scores": [{"Vertex_ID": "I", "score": 21}, {"Vertex_ID": "A", "score": 21}, {"Vertex_ID": "P", "score": 20}, {"Vertex_ID": "E", "score": 18}, {"Vertex_ID": "H", "score": 18}, {"Vertex_ID": "M", "score": 18}, {"Vertex_ID": "T", "score": 18}, {"Vertex_ID": "N", "score": 17}, {"Vertex_ID": "J", "score": 15}, {"Vertex_ID": "O", "score": 14}, {"Vertex_ID": "R", "score": 14}, {"Vertex_ID": "S", "score": 13}, {"Vertex_ID": "Q", "score": 11}, {"Vertex_ID": "G", "score": 11}, {"Vertex_ID": "F", "score": 6}, {"Vertex_ID": "D", "score": 6}, {"Vertex_ID": "B", "score": 3}, {"Vertex_ID": "L", "score": 2}, {"Vertex_ID": "C", "score": -1}, {"Vertex_ID": "K", "score": -7}]}] \ No newline at end of file diff --git a/tests/data/baseline/graph_algorithms_baselines/centrality/weighted_degree_centrality/Tree_Weighted.json b/tests/data/baseline/graph_algorithms_baselines/centrality/weighted_degree_centrality/Tree_Weighted.json new file mode 100644 index 00000000..048f85f0 --- /dev/null +++ b/tests/data/baseline/graph_algorithms_baselines/centrality/weighted_degree_centrality/Tree_Weighted.json @@ -0,0 +1 @@ +[{"top_scores": [{"Vertex_ID": "G", "score": 83}, {"Vertex_ID": "C", "score": 73}, {"Vertex_ID": "I", "score": 59}, {"Vertex_ID": "S", "score": 33}, {"Vertex_ID": "E", "score": 29}, {"Vertex_ID": "D", "score": 29}, {"Vertex_ID": "J", "score": 24}, {"Vertex_ID": "O", "score": 21}, {"Vertex_ID": "F", "score": 17}, {"Vertex_ID": "N", "score": 12}, {"Vertex_ID": "P", "score": 11}, {"Vertex_ID": "B", "score": 8}, {"Vertex_ID": "T", "score": 7}, {"Vertex_ID": "M", "score": 5}, {"Vertex_ID": "H", "score": 5}, {"Vertex_ID": "K", "score": 4}, {"Vertex_ID": "A", "score": 3}, {"Vertex_ID": "R", "score": -5}, {"Vertex_ID": "Q", "score": -6}, {"Vertex_ID": "L", "score": -10}]}] \ No newline at end of file diff --git a/tests/data/baseline/graph_algorithms_baselines/centrality/weighted_degree_centrality/in_degree/Hub_Spoke_Directed_Weighted.json b/tests/data/baseline/graph_algorithms_baselines/centrality/weighted_degree_centrality/in_degree/Hub_Spoke_Directed_Weighted.json new file mode 100644 index 00000000..07d55f27 --- /dev/null +++ b/tests/data/baseline/graph_algorithms_baselines/centrality/weighted_degree_centrality/in_degree/Hub_Spoke_Directed_Weighted.json @@ -0,0 +1 @@ +[{"top_scores": [{"Vertex_ID": "M", "score": 44}, {"Vertex_ID": "T", "score": 35}, {"Vertex_ID": "I", "score": 31}, {"Vertex_ID": "H", "score": 25}, {"Vertex_ID": "P", "score": 24}, {"Vertex_ID": "N", "score": 17}, {"Vertex_ID": "S", "score": 16}, {"Vertex_ID": "B", "score": 10}, {"Vertex_ID": "G", "score": 8}, {"Vertex_ID": "L", "score": 6}, {"Vertex_ID": "D", "score": 5}, {"Vertex_ID": "J", "score": 4}, {"Vertex_ID": "C", "score": 2}, {"Vertex_ID": "O", "score": 0}, {"Vertex_ID": "A", "score": 0}, {"Vertex_ID": "E", "score": -3}, {"Vertex_ID": "Q", "score": -7}, {"Vertex_ID": "K", "score": -8}, {"Vertex_ID": "R", "score": -9}, {"Vertex_ID": "F", "score": -10}]}] \ No newline at end of file diff --git a/tests/data/baseline/graph_algorithms_baselines/centrality/weighted_degree_centrality/in_degree/Line_Directed_Weighted.json b/tests/data/baseline/graph_algorithms_baselines/centrality/weighted_degree_centrality/in_degree/Line_Directed_Weighted.json new file mode 100644 index 00000000..76ae95f2 --- /dev/null +++ b/tests/data/baseline/graph_algorithms_baselines/centrality/weighted_degree_centrality/in_degree/Line_Directed_Weighted.json @@ -0,0 +1 @@ +[{"top_scores": [{"Vertex_ID": "K", "score": 52}, {"Vertex_ID": "F", "score": 43}, {"Vertex_ID": "O", "score": 31}, {"Vertex_ID": "E", "score": 28}, {"Vertex_ID": "R", "score": 25}, {"Vertex_ID": "J", "score": 22}, {"Vertex_ID": "N", "score": 17}, {"Vertex_ID": "T", "score": 15}, {"Vertex_ID": "I", "score": 8}, {"Vertex_ID": "D", "score": 7}, {"Vertex_ID": "B", "score": 5}, {"Vertex_ID": "G", "score": 4}, {"Vertex_ID": "P", "score": 2}, {"Vertex_ID": "Q", "score": 1}, {"Vertex_ID": "A", "score": 0}, {"Vertex_ID": "L", "score": 0}, {"Vertex_ID": "C", "score": -1}, {"Vertex_ID": "S", "score": -8}, {"Vertex_ID": "H", "score": -10}, {"Vertex_ID": "M", "score": -12}]}] \ No newline at end of file diff --git a/tests/data/baseline/graph_algorithms_baselines/centrality/weighted_degree_centrality/in_degree/Ring_Directed_Weighted.json b/tests/data/baseline/graph_algorithms_baselines/centrality/weighted_degree_centrality/in_degree/Ring_Directed_Weighted.json new file mode 100644 index 00000000..7c769c9f --- /dev/null +++ b/tests/data/baseline/graph_algorithms_baselines/centrality/weighted_degree_centrality/in_degree/Ring_Directed_Weighted.json @@ -0,0 +1 @@ +[{"top_scores": [{"Vertex_ID": "A", "score": 19}, {"Vertex_ID": "J", "score": 18}, {"Vertex_ID": "H", "score": 15}, {"Vertex_ID": "S", "score": 14}, {"Vertex_ID": "N", "score": 12}, {"Vertex_ID": "Q", "score": 11}, {"Vertex_ID": "F", "score": 10}, {"Vertex_ID": "P", "score": 9}, {"Vertex_ID": "E", "score": 8}, {"Vertex_ID": "M", "score": 6}, {"Vertex_ID": "O", "score": 5}, {"Vertex_ID": "I", "score": 3}, {"Vertex_ID": "B", "score": 2}, {"Vertex_ID": "C", "score": 1}, {"Vertex_ID": "R", "score": 0}, {"Vertex_ID": "T", "score": -1}, {"Vertex_ID": "D", "score": -2}, {"Vertex_ID": "K", "score": -3}, {"Vertex_ID": "G", "score": -4}, {"Vertex_ID": "L", "score": -4}]}] \ No newline at end of file diff --git a/tests/data/baseline/graph_algorithms_baselines/centrality/weighted_degree_centrality/in_degree/Tree_Directed_Weighted.json b/tests/data/baseline/graph_algorithms_baselines/centrality/weighted_degree_centrality/in_degree/Tree_Directed_Weighted.json new file mode 100644 index 00000000..090c8105 --- /dev/null +++ b/tests/data/baseline/graph_algorithms_baselines/centrality/weighted_degree_centrality/in_degree/Tree_Directed_Weighted.json @@ -0,0 +1 @@ +[{"top_scores": [{"Vertex_ID": "G", "score": 50}, {"Vertex_ID": "S", "score": 33}, {"Vertex_ID": "I", "score": 31}, {"Vertex_ID": "F", "score": 22}, {"Vertex_ID": "O", "score": 21}, {"Vertex_ID": "J", "score": 17}, {"Vertex_ID": "N", "score": 12}, {"Vertex_ID": "P", "score": 11}, {"Vertex_ID": "E", "score": 8}, {"Vertex_ID": "T", "score": 7}, {"Vertex_ID": "M", "score": 5}, {"Vertex_ID": "K", "score": 4}, {"Vertex_ID": "B", "score": 2}, {"Vertex_ID": "C", "score": 1}, {"Vertex_ID": "A", "score": 0}, {"Vertex_ID": "H", "score": 0}, {"Vertex_ID": "D", "score": -2}, {"Vertex_ID": "R", "score": -5}, {"Vertex_ID": "Q", "score": -6}, {"Vertex_ID": "L", "score": -10}]}] \ No newline at end of file diff --git a/tests/data/baseline/graph_algorithms_baselines/centrality/weighted_degree_centrality/out_degree/Hub_Spoke_Directed_Weighted.json b/tests/data/baseline/graph_algorithms_baselines/centrality/weighted_degree_centrality/out_degree/Hub_Spoke_Directed_Weighted.json new file mode 100644 index 00000000..66c5eccd --- /dev/null +++ b/tests/data/baseline/graph_algorithms_baselines/centrality/weighted_degree_centrality/out_degree/Hub_Spoke_Directed_Weighted.json @@ -0,0 +1 @@ +[{"top_scores": [{"Vertex_ID": "A", "score": 190}, {"Vertex_ID": "B", "score": 0}, {"Vertex_ID": "I", "score": 0}, {"Vertex_ID": "N", "score": 0}, {"Vertex_ID": "Q", "score": 0}, {"Vertex_ID": "L", "score": 0}, {"Vertex_ID": "T", "score": 0}, {"Vertex_ID": "F", "score": 0}, {"Vertex_ID": "O", "score": 0}, {"Vertex_ID": "J", "score": 0}, {"Vertex_ID": "P", "score": 0}, {"Vertex_ID": "C", "score": 0}, {"Vertex_ID": "D", "score": 0}, {"Vertex_ID": "E", "score": 0}, {"Vertex_ID": "H", "score": 0}, {"Vertex_ID": "G", "score": 0}, {"Vertex_ID": "R", "score": 0}, {"Vertex_ID": "S", "score": 0}, {"Vertex_ID": "K", "score": 0}, {"Vertex_ID": "M", "score": 0}]}] \ No newline at end of file diff --git a/tests/data/baseline/graph_algorithms_baselines/centrality/weighted_degree_centrality/out_degree/Line_Directed_Weighted.json b/tests/data/baseline/graph_algorithms_baselines/centrality/weighted_degree_centrality/out_degree/Line_Directed_Weighted.json new file mode 100644 index 00000000..1843cdef --- /dev/null +++ b/tests/data/baseline/graph_algorithms_baselines/centrality/weighted_degree_centrality/out_degree/Line_Directed_Weighted.json @@ -0,0 +1 @@ +[{"top_scores": [{"Vertex_ID": "J", "score": 52}, {"Vertex_ID": "E", "score": 43}, {"Vertex_ID": "N", "score": 31}, {"Vertex_ID": "D", "score": 28}, {"Vertex_ID": "Q", "score": 25}, {"Vertex_ID": "I", "score": 22}, {"Vertex_ID": "M", "score": 17}, {"Vertex_ID": "S", "score": 15}, {"Vertex_ID": "H", "score": 8}, {"Vertex_ID": "C", "score": 7}, {"Vertex_ID": "A", "score": 5}, {"Vertex_ID": "F", "score": 4}, {"Vertex_ID": "O", "score": 2}, {"Vertex_ID": "P", "score": 1}, {"Vertex_ID": "K", "score": 0}, {"Vertex_ID": "T", "score": 0}, {"Vertex_ID": "B", "score": -1}, {"Vertex_ID": "R", "score": -8}, {"Vertex_ID": "G", "score": -10}, {"Vertex_ID": "L", "score": -12}]}] \ No newline at end of file diff --git a/tests/data/baseline/graph_algorithms_baselines/centrality/weighted_degree_centrality/out_degree/Ring_Directed_Weighted.json b/tests/data/baseline/graph_algorithms_baselines/centrality/weighted_degree_centrality/out_degree/Ring_Directed_Weighted.json new file mode 100644 index 00000000..cfead7a4 --- /dev/null +++ b/tests/data/baseline/graph_algorithms_baselines/centrality/weighted_degree_centrality/out_degree/Ring_Directed_Weighted.json @@ -0,0 +1 @@ +[{"top_scores": [{"Vertex_ID": "T", "score": 19}, {"Vertex_ID": "I", "score": 18}, {"Vertex_ID": "G", "score": 15}, {"Vertex_ID": "R", "score": 14}, {"Vertex_ID": "M", "score": 12}, {"Vertex_ID": "P", "score": 11}, {"Vertex_ID": "E", "score": 10}, {"Vertex_ID": "O", "score": 9}, {"Vertex_ID": "D", "score": 8}, {"Vertex_ID": "L", "score": 6}, {"Vertex_ID": "N", "score": 5}, {"Vertex_ID": "H", "score": 3}, {"Vertex_ID": "A", "score": 2}, {"Vertex_ID": "B", "score": 1}, {"Vertex_ID": "Q", "score": 0}, {"Vertex_ID": "S", "score": -1}, {"Vertex_ID": "C", "score": -2}, {"Vertex_ID": "J", "score": -3}, {"Vertex_ID": "K", "score": -4}, {"Vertex_ID": "F", "score": -4}]}] \ No newline at end of file diff --git a/tests/data/baseline/graph_algorithms_baselines/centrality/weighted_degree_centrality/out_degree/Tree_Directed_Weighted.json b/tests/data/baseline/graph_algorithms_baselines/centrality/weighted_degree_centrality/out_degree/Tree_Directed_Weighted.json new file mode 100644 index 00000000..7d13d741 --- /dev/null +++ b/tests/data/baseline/graph_algorithms_baselines/centrality/weighted_degree_centrality/out_degree/Tree_Directed_Weighted.json @@ -0,0 +1 @@ +[{"top_scores": [{"Vertex_ID": "C", "score": 72}, {"Vertex_ID": "G", "score": 33}, {"Vertex_ID": "D", "score": 31}, {"Vertex_ID": "I", "score": 28}, {"Vertex_ID": "E", "score": 21}, {"Vertex_ID": "J", "score": 7}, {"Vertex_ID": "B", "score": 6}, {"Vertex_ID": "H", "score": 5}, {"Vertex_ID": "A", "score": 3}, {"Vertex_ID": "Q", "score": 0}, {"Vertex_ID": "T", "score": 0}, {"Vertex_ID": "N", "score": 0}, {"Vertex_ID": "M", "score": 0}, {"Vertex_ID": "L", "score": 0}, {"Vertex_ID": "O", "score": 0}, {"Vertex_ID": "P", "score": 0}, {"Vertex_ID": "R", "score": 0}, {"Vertex_ID": "S", "score": 0}, {"Vertex_ID": "K", "score": 0}, {"Vertex_ID": "F", "score": -5}]}] \ No newline at end of file diff --git a/tests/data/baseline/graph_algorithms_baselines/community/lcc/Complete.json b/tests/data/baseline/graph_algorithms_baselines/community/lcc/Complete.json new file mode 100644 index 00000000..6be0c5b5 --- /dev/null +++ b/tests/data/baseline/graph_algorithms_baselines/community/lcc/Complete.json @@ -0,0 +1 @@ +[{"top_scores": [{"Vertex_ID": "F", "score": 1}, {"Vertex_ID": "H", "score": 1}, {"Vertex_ID": "C", "score": 1}, {"Vertex_ID": "D", "score": 1}, {"Vertex_ID": "A", "score": 1}, {"Vertex_ID": "E", "score": 1}, {"Vertex_ID": "B", "score": 1}, {"Vertex_ID": "G", "score": 1}]}] \ No newline at end of file diff --git a/tests/data/baseline/graph_algorithms_baselines/community/lcc/Complete_Directed.json b/tests/data/baseline/graph_algorithms_baselines/community/lcc/Complete_Directed.json new file mode 100644 index 00000000..3fec22f6 --- /dev/null +++ b/tests/data/baseline/graph_algorithms_baselines/community/lcc/Complete_Directed.json @@ -0,0 +1 @@ +[{"top_scores": [{"Vertex_ID": "F", "score": 1}, {"Vertex_ID": "H", "score": 1}, {"Vertex_ID": "C", "score": 1}, {"Vertex_ID": "A", "score": 1}, {"Vertex_ID": "E", "score": 1}, {"Vertex_ID": "D", "score": 1}, {"Vertex_ID": "B", "score": 1}, {"Vertex_ID": "G", "score": 1}]}] \ No newline at end of file diff --git a/tests/data/baseline/graph_algorithms_baselines/community/lcc/DAG_Directed.json b/tests/data/baseline/graph_algorithms_baselines/community/lcc/DAG_Directed.json new file mode 100644 index 00000000..20dc5eca --- /dev/null +++ b/tests/data/baseline/graph_algorithms_baselines/community/lcc/DAG_Directed.json @@ -0,0 +1 @@ +[{"top_scores": [{"Vertex_ID": "A", "score": 0.5}, {"Vertex_ID": "C", "score": 0.08333334}, {"Vertex_ID": "D", "score": 0}, {"Vertex_ID": "L", "score": 0}]}] \ No newline at end of file diff --git a/tests/data/baseline/graph_algorithms_baselines/community/lcc/Empty.json b/tests/data/baseline/graph_algorithms_baselines/community/lcc/Empty.json new file mode 100644 index 00000000..8cd3525c --- /dev/null +++ b/tests/data/baseline/graph_algorithms_baselines/community/lcc/Empty.json @@ -0,0 +1 @@ +[{"top_scores": []}] \ No newline at end of file diff --git a/tests/data/baseline/graph_algorithms_baselines/community/lcc/Empty_Directed.json b/tests/data/baseline/graph_algorithms_baselines/community/lcc/Empty_Directed.json new file mode 100644 index 00000000..8cd3525c --- /dev/null +++ b/tests/data/baseline/graph_algorithms_baselines/community/lcc/Empty_Directed.json @@ -0,0 +1 @@ +[{"top_scores": []}] \ No newline at end of file diff --git a/tests/data/baseline/graph_algorithms_baselines/community/lcc/Hub_Connected_Hub_Spoke.json b/tests/data/baseline/graph_algorithms_baselines/community/lcc/Hub_Connected_Hub_Spoke.json new file mode 100644 index 00000000..113ebb7d --- /dev/null +++ b/tests/data/baseline/graph_algorithms_baselines/community/lcc/Hub_Connected_Hub_Spoke.json @@ -0,0 +1 @@ +[{"top_scores": [{"Vertex_ID": "A", "score": 0.1428571}, {"Vertex_ID": "D", "score": 0.1428571}, {"Vertex_ID": "C", "score": 0.1428571}, {"Vertex_ID": "B", "score": 0.1428571}]}] \ No newline at end of file diff --git a/tests/data/baseline/graph_algorithms_baselines/community/lcc/Hub_Spoke.json b/tests/data/baseline/graph_algorithms_baselines/community/lcc/Hub_Spoke.json new file mode 100644 index 00000000..00e03d6a --- /dev/null +++ b/tests/data/baseline/graph_algorithms_baselines/community/lcc/Hub_Spoke.json @@ -0,0 +1 @@ +[{"top_scores": [{"Vertex_ID": "A", "score": 0}]}] \ No newline at end of file diff --git a/tests/data/baseline/graph_algorithms_baselines/community/lcc/Hub_Spoke_Directed.json b/tests/data/baseline/graph_algorithms_baselines/community/lcc/Hub_Spoke_Directed.json new file mode 100644 index 00000000..00e03d6a --- /dev/null +++ b/tests/data/baseline/graph_algorithms_baselines/community/lcc/Hub_Spoke_Directed.json @@ -0,0 +1 @@ +[{"top_scores": [{"Vertex_ID": "A", "score": 0}]}] \ No newline at end of file diff --git a/tests/data/baseline/graph_algorithms_baselines/community/lcc/Line.json b/tests/data/baseline/graph_algorithms_baselines/community/lcc/Line.json new file mode 100644 index 00000000..9681b8d5 --- /dev/null +++ b/tests/data/baseline/graph_algorithms_baselines/community/lcc/Line.json @@ -0,0 +1 @@ +[{"top_scores": [{"Vertex_ID": "C", "score": 0}, {"Vertex_ID": "P", "score": 0}, {"Vertex_ID": "M", "score": 0}, {"Vertex_ID": "I", "score": 0}, {"Vertex_ID": "N", "score": 0}, {"Vertex_ID": "Q", "score": 0}, {"Vertex_ID": "L", "score": 0}, {"Vertex_ID": "F", "score": 0}, {"Vertex_ID": "J", "score": 0}, {"Vertex_ID": "D", "score": 0}, {"Vertex_ID": "G", "score": 0}, {"Vertex_ID": "E", "score": 0}, {"Vertex_ID": "R", "score": 0}, {"Vertex_ID": "B", "score": 0}, {"Vertex_ID": "H", "score": 0}, {"Vertex_ID": "K", "score": 0}, {"Vertex_ID": "O", "score": 0}, {"Vertex_ID": "S", "score": 0}]}] \ No newline at end of file diff --git a/tests/data/baseline/graph_algorithms_baselines/community/lcc/Line_Directed.json b/tests/data/baseline/graph_algorithms_baselines/community/lcc/Line_Directed.json new file mode 100644 index 00000000..8cd3525c --- /dev/null +++ b/tests/data/baseline/graph_algorithms_baselines/community/lcc/Line_Directed.json @@ -0,0 +1 @@ +[{"top_scores": []}] \ No newline at end of file diff --git a/tests/data/baseline/graph_algorithms_baselines/community/lcc/Line_Weighted.json b/tests/data/baseline/graph_algorithms_baselines/community/lcc/Line_Weighted.json new file mode 100644 index 00000000..a3601a8a --- /dev/null +++ b/tests/data/baseline/graph_algorithms_baselines/community/lcc/Line_Weighted.json @@ -0,0 +1 @@ +[{"top_scores": [{"Vertex_ID": "F", "score": 0}, {"Vertex_ID": "N", "score": 0}, {"Vertex_ID": "J", "score": 0}, {"Vertex_ID": "S", "score": 0}, {"Vertex_ID": "O", "score": 0}, {"Vertex_ID": "D", "score": 0}, {"Vertex_ID": "E", "score": 0}, {"Vertex_ID": "Q", "score": 0}, {"Vertex_ID": "L", "score": 0}, {"Vertex_ID": "B", "score": 0}, {"Vertex_ID": "G", "score": 0}, {"Vertex_ID": "I", "score": 0}, {"Vertex_ID": "P", "score": 0}, {"Vertex_ID": "R", "score": 0}, {"Vertex_ID": "H", "score": 0}, {"Vertex_ID": "C", "score": 0}, {"Vertex_ID": "K", "score": 0}, {"Vertex_ID": "M", "score": 0}]}] \ No newline at end of file diff --git a/tests/data/baseline/graph_algorithms_baselines/community/lcc/Ring.json b/tests/data/baseline/graph_algorithms_baselines/community/lcc/Ring.json new file mode 100644 index 00000000..bfb1892d --- /dev/null +++ b/tests/data/baseline/graph_algorithms_baselines/community/lcc/Ring.json @@ -0,0 +1 @@ +[{"top_scores": [{"Vertex_ID": "F", "score": 0}, {"Vertex_ID": "L", "score": 0}, {"Vertex_ID": "J", "score": 0}, {"Vertex_ID": "G", "score": 0}, {"Vertex_ID": "P", "score": 0}, {"Vertex_ID": "D", "score": 0}, {"Vertex_ID": "E", "score": 0}, {"Vertex_ID": "M", "score": 0}, {"Vertex_ID": "N", "score": 0}, {"Vertex_ID": "K", "score": 0}, {"Vertex_ID": "O", "score": 0}, {"Vertex_ID": "I", "score": 0}, {"Vertex_ID": "C", "score": 0}, {"Vertex_ID": "B", "score": 0}, {"Vertex_ID": "R", "score": 0}, {"Vertex_ID": "A", "score": 0}, {"Vertex_ID": "S", "score": 0}, {"Vertex_ID": "H", "score": 0}, {"Vertex_ID": "T", "score": 0}, {"Vertex_ID": "Q", "score": 0}]}] \ No newline at end of file diff --git a/tests/data/baseline/graph_algorithms_baselines/community/lcc/Ring_Directed.json b/tests/data/baseline/graph_algorithms_baselines/community/lcc/Ring_Directed.json new file mode 100644 index 00000000..8cd3525c --- /dev/null +++ b/tests/data/baseline/graph_algorithms_baselines/community/lcc/Ring_Directed.json @@ -0,0 +1 @@ +[{"top_scores": []}] \ No newline at end of file diff --git a/tests/data/baseline/graph_algorithms_baselines/community/lcc/Tree.json b/tests/data/baseline/graph_algorithms_baselines/community/lcc/Tree.json new file mode 100644 index 00000000..eb368f65 --- /dev/null +++ b/tests/data/baseline/graph_algorithms_baselines/community/lcc/Tree.json @@ -0,0 +1 @@ +[{"top_scores": [{"Vertex_ID": "I", "score": 0}, {"Vertex_ID": "J", "score": 0}, {"Vertex_ID": "B", "score": 0}, {"Vertex_ID": "D", "score": 0}, {"Vertex_ID": "H", "score": 0}, {"Vertex_ID": "E", "score": 0}, {"Vertex_ID": "A", "score": 0}, {"Vertex_ID": "G", "score": 0}, {"Vertex_ID": "C", "score": 0}, {"Vertex_ID": "F", "score": 0}]}] \ No newline at end of file diff --git a/tests/data/baseline/graph_algorithms_baselines/community/lcc/Tree_Directed.json b/tests/data/baseline/graph_algorithms_baselines/community/lcc/Tree_Directed.json new file mode 100644 index 00000000..e5c58bb7 --- /dev/null +++ b/tests/data/baseline/graph_algorithms_baselines/community/lcc/Tree_Directed.json @@ -0,0 +1 @@ +[{"top_scores": [{"Vertex_ID": "B", "score": 0}, {"Vertex_ID": "C", "score": 0}, {"Vertex_ID": "D", "score": 0}, {"Vertex_ID": "G", "score": 0}, {"Vertex_ID": "E", "score": 0}, {"Vertex_ID": "A", "score": 0}, {"Vertex_ID": "H", "score": 0}, {"Vertex_ID": "F", "score": 0}, {"Vertex_ID": "I", "score": 0}]}] \ No newline at end of file diff --git a/tests/data/baseline/graph_algorithms_baselines/path_finding/bfs/Complete.json b/tests/data/baseline/graph_algorithms_baselines/path_finding/bfs/Complete.json new file mode 100644 index 00000000..8a697cbe --- /dev/null +++ b/tests/data/baseline/graph_algorithms_baselines/path_finding/bfs/Complete.json @@ -0,0 +1 @@ +[{"Start": [{"v_id": "F", "v_type": "V8", "attributes": {"Start.@sum_step": 1}}, {"v_id": "G", "v_type": "V8", "attributes": {"Start.@sum_step": 1}}, {"v_id": "H", "v_type": "V8", "attributes": {"Start.@sum_step": 1}}, {"v_id": "C", "v_type": "V8", "attributes": {"Start.@sum_step": 1}}, {"v_id": "B", "v_type": "V8", "attributes": {"Start.@sum_step": 1}}, {"v_id": "E", "v_type": "V8", "attributes": {"Start.@sum_step": 1}}, {"v_id": "D", "v_type": "V8", "attributes": {"Start.@sum_step": 1}}, {"v_id": "A", "v_type": "V8", "attributes": {"Start.@sum_step": 0}}]}, {"@@edge_set": [{"e_type": "Complete", "from_id": "A", "from_type": "V8", "to_id": "H", "to_type": "V8", "directed": false, "attributes": {}}, {"e_type": "Complete", "from_id": "A", "from_type": "V8", "to_id": "E", "to_type": "V8", "directed": false, "attributes": {}}, {"e_type": "Complete", "from_id": "A", "from_type": "V8", "to_id": "D", "to_type": "V8", "directed": false, "attributes": {}}, {"e_type": "Complete", "from_id": "A", "from_type": "V8", "to_id": "B", "to_type": "V8", "directed": false, "attributes": {}}, {"e_type": "Complete", "from_id": "A", "from_type": "V8", "to_id": "G", "to_type": "V8", "directed": false, "attributes": {}}, {"e_type": "Complete", "from_id": "A", "from_type": "V8", "to_id": "F", "to_type": "V8", "directed": false, "attributes": {}}, {"e_type": "Complete", "from_id": "A", "from_type": "V8", "to_id": "C", "to_type": "V8", "directed": false, "attributes": {}}]}] \ No newline at end of file diff --git a/tests/data/baseline/graph_algorithms_baselines/path_finding/bfs/Complete_Directed.json b/tests/data/baseline/graph_algorithms_baselines/path_finding/bfs/Complete_Directed.json new file mode 100644 index 00000000..4df6e403 --- /dev/null +++ b/tests/data/baseline/graph_algorithms_baselines/path_finding/bfs/Complete_Directed.json @@ -0,0 +1 @@ +[{"Start": [{"v_id": "F", "v_type": "V8", "attributes": {"Start.@sum_step": 1}}, {"v_id": "B", "v_type": "V8", "attributes": {"Start.@sum_step": 1}}, {"v_id": "G", "v_type": "V8", "attributes": {"Start.@sum_step": 1}}, {"v_id": "H", "v_type": "V8", "attributes": {"Start.@sum_step": 1}}, {"v_id": "C", "v_type": "V8", "attributes": {"Start.@sum_step": 1}}, {"v_id": "E", "v_type": "V8", "attributes": {"Start.@sum_step": 1}}, {"v_id": "D", "v_type": "V8", "attributes": {"Start.@sum_step": 1}}, {"v_id": "A", "v_type": "V8", "attributes": {"Start.@sum_step": 0}}]}, {"@@edge_set": [{"e_type": "Complete_Directed", "from_id": "A", "from_type": "V8", "to_id": "H", "to_type": "V8", "directed": true, "attributes": {}}, {"e_type": "Complete_Directed", "from_id": "A", "from_type": "V8", "to_id": "B", "to_type": "V8", "directed": true, "attributes": {}}, {"e_type": "Complete_Directed", "from_id": "A", "from_type": "V8", "to_id": "G", "to_type": "V8", "directed": true, "attributes": {}}, {"e_type": "Complete_Directed", "from_id": "A", "from_type": "V8", "to_id": "F", "to_type": "V8", "directed": true, "attributes": {}}, {"e_type": "Complete_Directed", "from_id": "A", "from_type": "V8", "to_id": "C", "to_type": "V8", "directed": true, "attributes": {}}, {"e_type": "Complete_Directed", "from_id": "A", "from_type": "V8", "to_id": "E", "to_type": "V8", "directed": true, "attributes": {}}, {"e_type": "Complete_Directed", "from_id": "A", "from_type": "V8", "to_id": "D", "to_type": "V8", "directed": true, "attributes": {}}]}] \ No newline at end of file diff --git a/tests/data/baseline/graph_algorithms_baselines/path_finding/bfs/DAG_Directed.json b/tests/data/baseline/graph_algorithms_baselines/path_finding/bfs/DAG_Directed.json new file mode 100644 index 00000000..d5bd8ce5 --- /dev/null +++ b/tests/data/baseline/graph_algorithms_baselines/path_finding/bfs/DAG_Directed.json @@ -0,0 +1 @@ +[{"Start": [{"v_id": "F", "v_type": "V20", "attributes": {"Start.@sum_step": 2}}, {"v_id": "H", "v_type": "V20", "attributes": {"Start.@sum_step": 1}}, {"v_id": "G", "v_type": "V20", "attributes": {"Start.@sum_step": 1}}, {"v_id": "A", "v_type": "V20", "attributes": {"Start.@sum_step": 0}}]}, {"@@edge_set": [{"e_type": "DAG_Directed", "from_id": "A", "from_type": "V20", "to_id": "G", "to_type": "V20", "directed": true, "attributes": {}}, {"e_type": "DAG_Directed", "from_id": "G", "from_type": "V20", "to_id": "F", "to_type": "V20", "directed": true, "attributes": {}}, {"e_type": "DAG_Directed", "from_id": "A", "from_type": "V20", "to_id": "H", "to_type": "V20", "directed": true, "attributes": {}}]}] \ No newline at end of file diff --git a/tests/data/baseline/graph_algorithms_baselines/path_finding/bfs/Empty.json b/tests/data/baseline/graph_algorithms_baselines/path_finding/bfs/Empty.json new file mode 100644 index 00000000..0018c56f --- /dev/null +++ b/tests/data/baseline/graph_algorithms_baselines/path_finding/bfs/Empty.json @@ -0,0 +1 @@ +[{"Start": [{"v_id": "A", "v_type": "V20", "attributes": {"Start.@sum_step": 0}}]}, {"@@edge_set": []}] \ No newline at end of file diff --git a/tests/data/baseline/graph_algorithms_baselines/path_finding/bfs/Empty_Directed.json b/tests/data/baseline/graph_algorithms_baselines/path_finding/bfs/Empty_Directed.json new file mode 100644 index 00000000..0018c56f --- /dev/null +++ b/tests/data/baseline/graph_algorithms_baselines/path_finding/bfs/Empty_Directed.json @@ -0,0 +1 @@ +[{"Start": [{"v_id": "A", "v_type": "V20", "attributes": {"Start.@sum_step": 0}}]}, {"@@edge_set": []}] \ No newline at end of file diff --git a/tests/data/baseline/graph_algorithms_baselines/path_finding/bfs/Hub_Connected_Hub_Spoke.json b/tests/data/baseline/graph_algorithms_baselines/path_finding/bfs/Hub_Connected_Hub_Spoke.json new file mode 100644 index 00000000..c926d425 --- /dev/null +++ b/tests/data/baseline/graph_algorithms_baselines/path_finding/bfs/Hub_Connected_Hub_Spoke.json @@ -0,0 +1 @@ +[{"Start": [{"v_id": "Q", "v_type": "V20", "attributes": {"Start.@sum_step": 2}}, {"v_id": "L", "v_type": "V20", "attributes": {"Start.@sum_step": 2}}, {"v_id": "M", "v_type": "V20", "attributes": {"Start.@sum_step": 2}}, {"v_id": "N", "v_type": "V20", "attributes": {"Start.@sum_step": 2}}, {"v_id": "K", "v_type": "V20", "attributes": {"Start.@sum_step": 2}}, {"v_id": "P", "v_type": "V20", "attributes": {"Start.@sum_step": 2}}, {"v_id": "S", "v_type": "V20", "attributes": {"Start.@sum_step": 2}}, {"v_id": "I", "v_type": "V20", "attributes": {"Start.@sum_step": 2}}, {"v_id": "F", "v_type": "V20", "attributes": {"Start.@sum_step": 1}}, {"v_id": "J", "v_type": "V20", "attributes": {"Start.@sum_step": 2}}, {"v_id": "T", "v_type": "V20", "attributes": {"Start.@sum_step": 2}}, {"v_id": "D", "v_type": "V20", "attributes": {"Start.@sum_step": 1}}, {"v_id": "E", "v_type": "V20", "attributes": {"Start.@sum_step": 1}}, {"v_id": "B", "v_type": "V20", "attributes": {"Start.@sum_step": 1}}, {"v_id": "H", "v_type": "V20", "attributes": {"Start.@sum_step": 1}}, {"v_id": "G", "v_type": "V20", "attributes": {"Start.@sum_step": 1}}, {"v_id": "R", "v_type": "V20", "attributes": {"Start.@sum_step": 2}}, {"v_id": "A", "v_type": "V20", "attributes": {"Start.@sum_step": 0}}, {"v_id": "O", "v_type": "V20", "attributes": {"Start.@sum_step": 2}}, {"v_id": "C", "v_type": "V20", "attributes": {"Start.@sum_step": 1}}]}, {"@@edge_set": [{"e_type": "Hub_Connected_Hub_Spoke", "from_id": "B", "from_type": "V20", "to_id": "K", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Hub_Connected_Hub_Spoke", "from_id": "B", "from_type": "V20", "to_id": "I", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Hub_Connected_Hub_Spoke", "from_id": "B", "from_type": "V20", "to_id": "J", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Hub_Connected_Hub_Spoke", "from_id": "D", "from_type": "V20", "to_id": "T", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Hub_Connected_Hub_Spoke", "from_id": "D", "from_type": "V20", "to_id": "R", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Hub_Connected_Hub_Spoke", "from_id": "C", "from_type": "V20", "to_id": "M", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Hub_Connected_Hub_Spoke", "from_id": "D", "from_type": "V20", "to_id": "Q", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Hub_Connected_Hub_Spoke", "from_id": "C", "from_type": "V20", "to_id": "O", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Hub_Connected_Hub_Spoke", "from_id": "C", "from_type": "V20", "to_id": "N", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Hub_Connected_Hub_Spoke", "from_id": "B", "from_type": "V20", "to_id": "L", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Hub_Connected_Hub_Spoke", "from_id": "D", "from_type": "V20", "to_id": "S", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Hub_Connected_Hub_Spoke", "from_id": "A", "from_type": "V20", "to_id": "E", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Hub_Connected_Hub_Spoke", "from_id": "A", "from_type": "V20", "to_id": "C", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Hub_Connected_Hub_Spoke", "from_id": "C", "from_type": "V20", "to_id": "P", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Hub_Connected_Hub_Spoke", "from_id": "A", "from_type": "V20", "to_id": "F", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Hub_Connected_Hub_Spoke", "from_id": "A", "from_type": "V20", "to_id": "G", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Hub_Connected_Hub_Spoke", "from_id": "A", "from_type": "V20", "to_id": "D", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Hub_Connected_Hub_Spoke", "from_id": "A", "from_type": "V20", "to_id": "H", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Hub_Connected_Hub_Spoke", "from_id": "A", "from_type": "V20", "to_id": "B", "to_type": "V20", "directed": false, "attributes": {}}]}] \ No newline at end of file diff --git a/tests/data/baseline/graph_algorithms_baselines/path_finding/bfs/Hub_Spoke.json b/tests/data/baseline/graph_algorithms_baselines/path_finding/bfs/Hub_Spoke.json new file mode 100644 index 00000000..0ae37717 --- /dev/null +++ b/tests/data/baseline/graph_algorithms_baselines/path_finding/bfs/Hub_Spoke.json @@ -0,0 +1 @@ +[{"Start": [{"v_id": "Q", "v_type": "V20", "attributes": {"Start.@sum_step": 1}}, {"v_id": "L", "v_type": "V20", "attributes": {"Start.@sum_step": 1}}, {"v_id": "M", "v_type": "V20", "attributes": {"Start.@sum_step": 1}}, {"v_id": "N", "v_type": "V20", "attributes": {"Start.@sum_step": 1}}, {"v_id": "K", "v_type": "V20", "attributes": {"Start.@sum_step": 1}}, {"v_id": "F", "v_type": "V20", "attributes": {"Start.@sum_step": 1}}, {"v_id": "B", "v_type": "V20", "attributes": {"Start.@sum_step": 1}}, {"v_id": "D", "v_type": "V20", "attributes": {"Start.@sum_step": 1}}, {"v_id": "E", "v_type": "V20", "attributes": {"Start.@sum_step": 1}}, {"v_id": "S", "v_type": "V20", "attributes": {"Start.@sum_step": 1}}, {"v_id": "H", "v_type": "V20", "attributes": {"Start.@sum_step": 1}}, {"v_id": "G", "v_type": "V20", "attributes": {"Start.@sum_step": 1}}, {"v_id": "J", "v_type": "V20", "attributes": {"Start.@sum_step": 1}}, {"v_id": "O", "v_type": "V20", "attributes": {"Start.@sum_step": 1}}, {"v_id": "C", "v_type": "V20", "attributes": {"Start.@sum_step": 1}}, {"v_id": "P", "v_type": "V20", "attributes": {"Start.@sum_step": 1}}, {"v_id": "T", "v_type": "V20", "attributes": {"Start.@sum_step": 1}}, {"v_id": "I", "v_type": "V20", "attributes": {"Start.@sum_step": 1}}, {"v_id": "R", "v_type": "V20", "attributes": {"Start.@sum_step": 1}}, {"v_id": "A", "v_type": "V20", "attributes": {"Start.@sum_step": 0}}]}, {"@@edge_set": [{"e_type": "Hub_Spoke", "from_id": "A", "from_type": "V20", "to_id": "I", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Hub_Spoke", "from_id": "A", "from_type": "V20", "to_id": "T", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Hub_Spoke", "from_id": "A", "from_type": "V20", "to_id": "S", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Hub_Spoke", "from_id": "A", "from_type": "V20", "to_id": "B", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Hub_Spoke", "from_id": "A", "from_type": "V20", "to_id": "C", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Hub_Spoke", "from_id": "A", "from_type": "V20", "to_id": "P", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Hub_Spoke", "from_id": "A", "from_type": "V20", "to_id": "E", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Hub_Spoke", "from_id": "A", "from_type": "V20", "to_id": "K", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Hub_Spoke", "from_id": "A", "from_type": "V20", "to_id": "Q", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Hub_Spoke", "from_id": "A", "from_type": "V20", "to_id": "F", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Hub_Spoke", "from_id": "A", "from_type": "V20", "to_id": "L", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Hub_Spoke", "from_id": "A", "from_type": "V20", "to_id": "M", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Hub_Spoke", "from_id": "A", "from_type": "V20", "to_id": "N", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Hub_Spoke", "from_id": "A", "from_type": "V20", "to_id": "J", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Hub_Spoke", "from_id": "A", "from_type": "V20", "to_id": "H", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Hub_Spoke", "from_id": "A", "from_type": "V20", "to_id": "G", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Hub_Spoke", "from_id": "A", "from_type": "V20", "to_id": "O", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Hub_Spoke", "from_id": "A", "from_type": "V20", "to_id": "R", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Hub_Spoke", "from_id": "A", "from_type": "V20", "to_id": "D", "to_type": "V20", "directed": false, "attributes": {}}]}] \ No newline at end of file diff --git a/tests/data/baseline/graph_algorithms_baselines/path_finding/bfs/Hub_Spoke_Directed.json b/tests/data/baseline/graph_algorithms_baselines/path_finding/bfs/Hub_Spoke_Directed.json new file mode 100644 index 00000000..12d1bea2 --- /dev/null +++ b/tests/data/baseline/graph_algorithms_baselines/path_finding/bfs/Hub_Spoke_Directed.json @@ -0,0 +1 @@ +[{"Start": [{"v_id": "Q", "v_type": "V20", "attributes": {"Start.@sum_step": 1}}, {"v_id": "L", "v_type": "V20", "attributes": {"Start.@sum_step": 1}}, {"v_id": "M", "v_type": "V20", "attributes": {"Start.@sum_step": 1}}, {"v_id": "N", "v_type": "V20", "attributes": {"Start.@sum_step": 1}}, {"v_id": "K", "v_type": "V20", "attributes": {"Start.@sum_step": 1}}, {"v_id": "P", "v_type": "V20", "attributes": {"Start.@sum_step": 1}}, {"v_id": "F", "v_type": "V20", "attributes": {"Start.@sum_step": 1}}, {"v_id": "B", "v_type": "V20", "attributes": {"Start.@sum_step": 1}}, {"v_id": "S", "v_type": "V20", "attributes": {"Start.@sum_step": 1}}, {"v_id": "I", "v_type": "V20", "attributes": {"Start.@sum_step": 1}}, {"v_id": "T", "v_type": "V20", "attributes": {"Start.@sum_step": 1}}, {"v_id": "D", "v_type": "V20", "attributes": {"Start.@sum_step": 1}}, {"v_id": "E", "v_type": "V20", "attributes": {"Start.@sum_step": 1}}, {"v_id": "O", "v_type": "V20", "attributes": {"Start.@sum_step": 1}}, {"v_id": "C", "v_type": "V20", "attributes": {"Start.@sum_step": 1}}, {"v_id": "J", "v_type": "V20", "attributes": {"Start.@sum_step": 1}}, {"v_id": "H", "v_type": "V20", "attributes": {"Start.@sum_step": 1}}, {"v_id": "G", "v_type": "V20", "attributes": {"Start.@sum_step": 1}}, {"v_id": "R", "v_type": "V20", "attributes": {"Start.@sum_step": 1}}, {"v_id": "A", "v_type": "V20", "attributes": {"Start.@sum_step": 0}}]}, {"@@edge_set": [{"e_type": "Hub_Spoke_Directed", "from_id": "A", "from_type": "V20", "to_id": "F", "to_type": "V20", "directed": true, "attributes": {}}, {"e_type": "Hub_Spoke_Directed", "from_id": "A", "from_type": "V20", "to_id": "I", "to_type": "V20", "directed": true, "attributes": {}}, {"e_type": "Hub_Spoke_Directed", "from_id": "A", "from_type": "V20", "to_id": "K", "to_type": "V20", "directed": true, "attributes": {}}, {"e_type": "Hub_Spoke_Directed", "from_id": "A", "from_type": "V20", "to_id": "G", "to_type": "V20", "directed": true, "attributes": {}}, {"e_type": "Hub_Spoke_Directed", "from_id": "A", "from_type": "V20", "to_id": "S", "to_type": "V20", "directed": true, "attributes": {}}, {"e_type": "Hub_Spoke_Directed", "from_id": "A", "from_type": "V20", "to_id": "L", "to_type": "V20", "directed": true, "attributes": {}}, {"e_type": "Hub_Spoke_Directed", "from_id": "A", "from_type": "V20", "to_id": "T", "to_type": "V20", "directed": true, "attributes": {}}, {"e_type": "Hub_Spoke_Directed", "from_id": "A", "from_type": "V20", "to_id": "P", "to_type": "V20", "directed": true, "attributes": {}}, {"e_type": "Hub_Spoke_Directed", "from_id": "A", "from_type": "V20", "to_id": "H", "to_type": "V20", "directed": true, "attributes": {}}, {"e_type": "Hub_Spoke_Directed", "from_id": "A", "from_type": "V20", "to_id": "Q", "to_type": "V20", "directed": true, "attributes": {}}, {"e_type": "Hub_Spoke_Directed", "from_id": "A", "from_type": "V20", "to_id": "M", "to_type": "V20", "directed": true, "attributes": {}}, {"e_type": "Hub_Spoke_Directed", "from_id": "A", "from_type": "V20", "to_id": "O", "to_type": "V20", "directed": true, "attributes": {}}, {"e_type": "Hub_Spoke_Directed", "from_id": "A", "from_type": "V20", "to_id": "R", "to_type": "V20", "directed": true, "attributes": {}}, {"e_type": "Hub_Spoke_Directed", "from_id": "A", "from_type": "V20", "to_id": "N", "to_type": "V20", "directed": true, "attributes": {}}, {"e_type": "Hub_Spoke_Directed", "from_id": "A", "from_type": "V20", "to_id": "C", "to_type": "V20", "directed": true, "attributes": {}}, {"e_type": "Hub_Spoke_Directed", "from_id": "A", "from_type": "V20", "to_id": "D", "to_type": "V20", "directed": true, "attributes": {}}, {"e_type": "Hub_Spoke_Directed", "from_id": "A", "from_type": "V20", "to_id": "J", "to_type": "V20", "directed": true, "attributes": {}}, {"e_type": "Hub_Spoke_Directed", "from_id": "A", "from_type": "V20", "to_id": "B", "to_type": "V20", "directed": true, "attributes": {}}, {"e_type": "Hub_Spoke_Directed", "from_id": "A", "from_type": "V20", "to_id": "E", "to_type": "V20", "directed": true, "attributes": {}}]}] \ No newline at end of file diff --git a/tests/data/baseline/graph_algorithms_baselines/path_finding/bfs/Line.json b/tests/data/baseline/graph_algorithms_baselines/path_finding/bfs/Line.json new file mode 100644 index 00000000..35800e0b --- /dev/null +++ b/tests/data/baseline/graph_algorithms_baselines/path_finding/bfs/Line.json @@ -0,0 +1 @@ +[{"Start": [{"v_id": "K", "v_type": "V20", "attributes": {"Start.@sum_step": 10}}, {"v_id": "F", "v_type": "V20", "attributes": {"Start.@sum_step": 5}}, {"v_id": "J", "v_type": "V20", "attributes": {"Start.@sum_step": 9}}, {"v_id": "I", "v_type": "V20", "attributes": {"Start.@sum_step": 8}}, {"v_id": "H", "v_type": "V20", "attributes": {"Start.@sum_step": 7}}, {"v_id": "G", "v_type": "V20", "attributes": {"Start.@sum_step": 6}}, {"v_id": "B", "v_type": "V20", "attributes": {"Start.@sum_step": 1}}, {"v_id": "C", "v_type": "V20", "attributes": {"Start.@sum_step": 2}}, {"v_id": "A", "v_type": "V20", "attributes": {"Start.@sum_step": 0}}, {"v_id": "D", "v_type": "V20", "attributes": {"Start.@sum_step": 3}}, {"v_id": "E", "v_type": "V20", "attributes": {"Start.@sum_step": 4}}]}, {"@@edge_set": [{"e_type": "Line", "from_id": "J", "from_type": "V20", "to_id": "K", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Line", "from_id": "H", "from_type": "V20", "to_id": "I", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Line", "from_id": "G", "from_type": "V20", "to_id": "H", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Line", "from_id": "F", "from_type": "V20", "to_id": "G", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Line", "from_id": "E", "from_type": "V20", "to_id": "F", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Line", "from_id": "B", "from_type": "V20", "to_id": "C", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Line", "from_id": "C", "from_type": "V20", "to_id": "D", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Line", "from_id": "I", "from_type": "V20", "to_id": "J", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Line", "from_id": "A", "from_type": "V20", "to_id": "B", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Line", "from_id": "D", "from_type": "V20", "to_id": "E", "to_type": "V20", "directed": false, "attributes": {}}]}] \ No newline at end of file diff --git a/tests/data/baseline/graph_algorithms_baselines/path_finding/bfs/Line_Directed.json b/tests/data/baseline/graph_algorithms_baselines/path_finding/bfs/Line_Directed.json new file mode 100644 index 00000000..5cc223fd --- /dev/null +++ b/tests/data/baseline/graph_algorithms_baselines/path_finding/bfs/Line_Directed.json @@ -0,0 +1 @@ +[{"Start": [{"v_id": "K", "v_type": "V20", "attributes": {"Start.@sum_step": 10}}, {"v_id": "I", "v_type": "V20", "attributes": {"Start.@sum_step": 8}}, {"v_id": "H", "v_type": "V20", "attributes": {"Start.@sum_step": 7}}, {"v_id": "G", "v_type": "V20", "attributes": {"Start.@sum_step": 6}}, {"v_id": "F", "v_type": "V20", "attributes": {"Start.@sum_step": 5}}, {"v_id": "J", "v_type": "V20", "attributes": {"Start.@sum_step": 9}}, {"v_id": "B", "v_type": "V20", "attributes": {"Start.@sum_step": 1}}, {"v_id": "C", "v_type": "V20", "attributes": {"Start.@sum_step": 2}}, {"v_id": "D", "v_type": "V20", "attributes": {"Start.@sum_step": 3}}, {"v_id": "E", "v_type": "V20", "attributes": {"Start.@sum_step": 4}}, {"v_id": "A", "v_type": "V20", "attributes": {"Start.@sum_step": 0}}]}, {"@@edge_set": [{"e_type": "Line_Directed", "from_id": "J", "from_type": "V20", "to_id": "K", "to_type": "V20", "directed": true, "attributes": {}}, {"e_type": "Line_Directed", "from_id": "I", "from_type": "V20", "to_id": "J", "to_type": "V20", "directed": true, "attributes": {}}, {"e_type": "Line_Directed", "from_id": "G", "from_type": "V20", "to_id": "H", "to_type": "V20", "directed": true, "attributes": {}}, {"e_type": "Line_Directed", "from_id": "F", "from_type": "V20", "to_id": "G", "to_type": "V20", "directed": true, "attributes": {}}, {"e_type": "Line_Directed", "from_id": "A", "from_type": "V20", "to_id": "B", "to_type": "V20", "directed": true, "attributes": {}}, {"e_type": "Line_Directed", "from_id": "H", "from_type": "V20", "to_id": "I", "to_type": "V20", "directed": true, "attributes": {}}, {"e_type": "Line_Directed", "from_id": "E", "from_type": "V20", "to_id": "F", "to_type": "V20", "directed": true, "attributes": {}}, {"e_type": "Line_Directed", "from_id": "B", "from_type": "V20", "to_id": "C", "to_type": "V20", "directed": true, "attributes": {}}, {"e_type": "Line_Directed", "from_id": "D", "from_type": "V20", "to_id": "E", "to_type": "V20", "directed": true, "attributes": {}}, {"e_type": "Line_Directed", "from_id": "C", "from_type": "V20", "to_id": "D", "to_type": "V20", "directed": true, "attributes": {}}]}] \ No newline at end of file diff --git a/tests/data/baseline/graph_algorithms_baselines/path_finding/bfs/Line_Weighted.json b/tests/data/baseline/graph_algorithms_baselines/path_finding/bfs/Line_Weighted.json new file mode 100644 index 00000000..cdee5601 --- /dev/null +++ b/tests/data/baseline/graph_algorithms_baselines/path_finding/bfs/Line_Weighted.json @@ -0,0 +1 @@ +[{"Start": [{"v_id": "K", "v_type": "V20", "attributes": {"Start.@sum_step": 10}}, {"v_id": "I", "v_type": "V20", "attributes": {"Start.@sum_step": 8}}, {"v_id": "F", "v_type": "V20", "attributes": {"Start.@sum_step": 5}}, {"v_id": "J", "v_type": "V20", "attributes": {"Start.@sum_step": 9}}, {"v_id": "B", "v_type": "V20", "attributes": {"Start.@sum_step": 1}}, {"v_id": "A", "v_type": "V20", "attributes": {"Start.@sum_step": 0}}, {"v_id": "D", "v_type": "V20", "attributes": {"Start.@sum_step": 3}}, {"v_id": "E", "v_type": "V20", "attributes": {"Start.@sum_step": 4}}, {"v_id": "H", "v_type": "V20", "attributes": {"Start.@sum_step": 7}}, {"v_id": "G", "v_type": "V20", "attributes": {"Start.@sum_step": 6}}, {"v_id": "C", "v_type": "V20", "attributes": {"Start.@sum_step": 2}}]}, {"@@edge_set": [{"e_type": "Line_Weighted", "from_id": "I", "from_type": "V20", "to_id": "J", "to_type": "V20", "directed": false, "attributes": {"weight": 22, "size": 22}}, {"e_type": "Line_Weighted", "from_id": "H", "from_type": "V20", "to_id": "I", "to_type": "V20", "directed": false, "attributes": {"weight": 8, "size": 8}}, {"e_type": "Line_Weighted", "from_id": "F", "from_type": "V20", "to_id": "G", "to_type": "V20", "directed": false, "attributes": {"weight": 4, "size": 4}}, {"e_type": "Line_Weighted", "from_id": "J", "from_type": "V20", "to_id": "K", "to_type": "V20", "directed": false, "attributes": {"weight": 52, "size": 52}}, {"e_type": "Line_Weighted", "from_id": "E", "from_type": "V20", "to_id": "F", "to_type": "V20", "directed": false, "attributes": {"weight": 43, "size": 43}}, {"e_type": "Line_Weighted", "from_id": "G", "from_type": "V20", "to_id": "H", "to_type": "V20", "directed": false, "attributes": {"weight": -10, "size": -10}}, {"e_type": "Line_Weighted", "from_id": "D", "from_type": "V20", "to_id": "E", "to_type": "V20", "directed": false, "attributes": {"weight": 28, "size": 28}}, {"e_type": "Line_Weighted", "from_id": "A", "from_type": "V20", "to_id": "B", "to_type": "V20", "directed": false, "attributes": {"weight": 5, "size": 5}}, {"e_type": "Line_Weighted", "from_id": "B", "from_type": "V20", "to_id": "C", "to_type": "V20", "directed": false, "attributes": {"weight": -1, "size": -1}}, {"e_type": "Line_Weighted", "from_id": "C", "from_type": "V20", "to_id": "D", "to_type": "V20", "directed": false, "attributes": {"weight": 7, "size": 7}}]}] \ No newline at end of file diff --git a/tests/data/baseline/graph_algorithms_baselines/path_finding/bfs/Ring.json b/tests/data/baseline/graph_algorithms_baselines/path_finding/bfs/Ring.json new file mode 100644 index 00000000..ab2646cd --- /dev/null +++ b/tests/data/baseline/graph_algorithms_baselines/path_finding/bfs/Ring.json @@ -0,0 +1 @@ +[{"Start": [{"v_id": "Q", "v_type": "V20", "attributes": {"Start.@sum_step": 4}}, {"v_id": "L", "v_type": "V20", "attributes": {"Start.@sum_step": 9}}, {"v_id": "M", "v_type": "V20", "attributes": {"Start.@sum_step": 8}}, {"v_id": "N", "v_type": "V20", "attributes": {"Start.@sum_step": 7}}, {"v_id": "K", "v_type": "V20", "attributes": {"Start.@sum_step": 10}}, {"v_id": "T", "v_type": "V20", "attributes": {"Start.@sum_step": 1}}, {"v_id": "I", "v_type": "V20", "attributes": {"Start.@sum_step": 8}}, {"v_id": "H", "v_type": "V20", "attributes": {"Start.@sum_step": 7}}, {"v_id": "D", "v_type": "V20", "attributes": {"Start.@sum_step": 3}}, {"v_id": "E", "v_type": "V20", "attributes": {"Start.@sum_step": 4}}, {"v_id": "P", "v_type": "V20", "attributes": {"Start.@sum_step": 5}}, {"v_id": "B", "v_type": "V20", "attributes": {"Start.@sum_step": 1}}, {"v_id": "S", "v_type": "V20", "attributes": {"Start.@sum_step": 2}}, {"v_id": "O", "v_type": "V20", "attributes": {"Start.@sum_step": 6}}, {"v_id": "C", "v_type": "V20", "attributes": {"Start.@sum_step": 2}}, {"v_id": "G", "v_type": "V20", "attributes": {"Start.@sum_step": 6}}, {"v_id": "F", "v_type": "V20", "attributes": {"Start.@sum_step": 5}}, {"v_id": "J", "v_type": "V20", "attributes": {"Start.@sum_step": 9}}, {"v_id": "R", "v_type": "V20", "attributes": {"Start.@sum_step": 3}}, {"v_id": "A", "v_type": "V20", "attributes": {"Start.@sum_step": 0}}]}, {"@@edge_set": [{"e_type": "Ring", "from_id": "L", "from_type": "V20", "to_id": "K", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Ring", "from_id": "M", "from_type": "V20", "to_id": "L", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Ring", "from_id": "S", "from_type": "V20", "to_id": "R", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Ring", "from_id": "P", "from_type": "V20", "to_id": "O", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Ring", "from_id": "G", "from_type": "V20", "to_id": "H", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Ring", "from_id": "C", "from_type": "V20", "to_id": "D", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Ring", "from_id": "Q", "from_type": "V20", "to_id": "P", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Ring", "from_id": "T", "from_type": "V20", "to_id": "S", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Ring", "from_id": "D", "from_type": "V20", "to_id": "E", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Ring", "from_id": "B", "from_type": "V20", "to_id": "C", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Ring", "from_id": "I", "from_type": "V20", "to_id": "J", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Ring", "from_id": "O", "from_type": "V20", "to_id": "N", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Ring", "from_id": "J", "from_type": "V20", "to_id": "K", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Ring", "from_id": "A", "from_type": "V20", "to_id": "B", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Ring", "from_id": "A", "from_type": "V20", "to_id": "T", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Ring", "from_id": "R", "from_type": "V20", "to_id": "Q", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Ring", "from_id": "E", "from_type": "V20", "to_id": "F", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Ring", "from_id": "F", "from_type": "V20", "to_id": "G", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Ring", "from_id": "H", "from_type": "V20", "to_id": "I", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Ring", "from_id": "N", "from_type": "V20", "to_id": "M", "to_type": "V20", "directed": false, "attributes": {}}]}] \ No newline at end of file diff --git a/tests/data/baseline/graph_algorithms_baselines/path_finding/bfs/Ring_Directed.json b/tests/data/baseline/graph_algorithms_baselines/path_finding/bfs/Ring_Directed.json new file mode 100644 index 00000000..6db5d755 --- /dev/null +++ b/tests/data/baseline/graph_algorithms_baselines/path_finding/bfs/Ring_Directed.json @@ -0,0 +1 @@ +[{"Start": [{"v_id": "K", "v_type": "V20", "attributes": {"Start.@sum_step": 10}}, {"v_id": "I", "v_type": "V20", "attributes": {"Start.@sum_step": 8}}, {"v_id": "F", "v_type": "V20", "attributes": {"Start.@sum_step": 5}}, {"v_id": "D", "v_type": "V20", "attributes": {"Start.@sum_step": 3}}, {"v_id": "E", "v_type": "V20", "attributes": {"Start.@sum_step": 4}}, {"v_id": "H", "v_type": "V20", "attributes": {"Start.@sum_step": 7}}, {"v_id": "G", "v_type": "V20", "attributes": {"Start.@sum_step": 6}}, {"v_id": "C", "v_type": "V20", "attributes": {"Start.@sum_step": 2}}, {"v_id": "J", "v_type": "V20", "attributes": {"Start.@sum_step": 9}}, {"v_id": "A", "v_type": "V20", "attributes": {"Start.@sum_step": 0}}, {"v_id": "B", "v_type": "V20", "attributes": {"Start.@sum_step": 1}}]}, {"@@edge_set": [{"e_type": "Ring_Directed", "from_id": "I", "from_type": "V20", "to_id": "J", "to_type": "V20", "directed": true, "attributes": {}}, {"e_type": "Ring_Directed", "from_id": "G", "from_type": "V20", "to_id": "H", "to_type": "V20", "directed": true, "attributes": {}}, {"e_type": "Ring_Directed", "from_id": "J", "from_type": "V20", "to_id": "K", "to_type": "V20", "directed": true, "attributes": {}}, {"e_type": "Ring_Directed", "from_id": "F", "from_type": "V20", "to_id": "G", "to_type": "V20", "directed": true, "attributes": {}}, {"e_type": "Ring_Directed", "from_id": "H", "from_type": "V20", "to_id": "I", "to_type": "V20", "directed": true, "attributes": {}}, {"e_type": "Ring_Directed", "from_id": "E", "from_type": "V20", "to_id": "F", "to_type": "V20", "directed": true, "attributes": {}}, {"e_type": "Ring_Directed", "from_id": "A", "from_type": "V20", "to_id": "B", "to_type": "V20", "directed": true, "attributes": {}}, {"e_type": "Ring_Directed", "from_id": "D", "from_type": "V20", "to_id": "E", "to_type": "V20", "directed": true, "attributes": {}}, {"e_type": "Ring_Directed", "from_id": "B", "from_type": "V20", "to_id": "C", "to_type": "V20", "directed": true, "attributes": {}}, {"e_type": "Ring_Directed", "from_id": "C", "from_type": "V20", "to_id": "D", "to_type": "V20", "directed": true, "attributes": {}}]}] \ No newline at end of file diff --git a/tests/data/baseline/graph_algorithms_baselines/path_finding/bfs/Tree.json b/tests/data/baseline/graph_algorithms_baselines/path_finding/bfs/Tree.json new file mode 100644 index 00000000..22efba93 --- /dev/null +++ b/tests/data/baseline/graph_algorithms_baselines/path_finding/bfs/Tree.json @@ -0,0 +1 @@ +[{"Start": [{"v_id": "Q", "v_type": "V20", "attributes": {"Start.@sum_step": 4}}, {"v_id": "L", "v_type": "V20", "attributes": {"Start.@sum_step": 3}}, {"v_id": "M", "v_type": "V20", "attributes": {"Start.@sum_step": 3}}, {"v_id": "N", "v_type": "V20", "attributes": {"Start.@sum_step": 3}}, {"v_id": "K", "v_type": "V20", "attributes": {"Start.@sum_step": 3}}, {"v_id": "T", "v_type": "V20", "attributes": {"Start.@sum_step": 4}}, {"v_id": "F", "v_type": "V20", "attributes": {"Start.@sum_step": 2}}, {"v_id": "J", "v_type": "V20", "attributes": {"Start.@sum_step": 3}}, {"v_id": "P", "v_type": "V20", "attributes": {"Start.@sum_step": 4}}, {"v_id": "B", "v_type": "V20", "attributes": {"Start.@sum_step": 1}}, {"v_id": "R", "v_type": "V20", "attributes": {"Start.@sum_step": 4}}, {"v_id": "A", "v_type": "V20", "attributes": {"Start.@sum_step": 0}}, {"v_id": "H", "v_type": "V20", "attributes": {"Start.@sum_step": 3}}, {"v_id": "G", "v_type": "V20", "attributes": {"Start.@sum_step": 2}}, {"v_id": "O", "v_type": "V20", "attributes": {"Start.@sum_step": 3}}, {"v_id": "C", "v_type": "V20", "attributes": {"Start.@sum_step": 1}}, {"v_id": "S", "v_type": "V20", "attributes": {"Start.@sum_step": 4}}, {"v_id": "D", "v_type": "V20", "attributes": {"Start.@sum_step": 2}}, {"v_id": "E", "v_type": "V20", "attributes": {"Start.@sum_step": 2}}, {"v_id": "I", "v_type": "V20", "attributes": {"Start.@sum_step": 3}}]}, {"@@edge_set": [{"e_type": "Tree", "from_id": "H", "from_type": "V20", "to_id": "Q", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Tree", "from_id": "H", "from_type": "V20", "to_id": "P", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Tree", "from_id": "I", "from_type": "V20", "to_id": "R", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Tree", "from_id": "B", "from_type": "V20", "to_id": "D", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Tree", "from_id": "E", "from_type": "V20", "to_id": "J", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Tree", "from_id": "J", "from_type": "V20", "to_id": "T", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Tree", "from_id": "E", "from_type": "V20", "to_id": "K", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Tree", "from_id": "B", "from_type": "V20", "to_id": "E", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Tree", "from_id": "C", "from_type": "V20", "to_id": "G", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Tree", "from_id": "A", "from_type": "V20", "to_id": "B", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Tree", "from_id": "G", "from_type": "V20", "to_id": "O", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Tree", "from_id": "D", "from_type": "V20", "to_id": "H", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Tree", "from_id": "I", "from_type": "V20", "to_id": "S", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Tree", "from_id": "G", "from_type": "V20", "to_id": "N", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Tree", "from_id": "A", "from_type": "V20", "to_id": "C", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Tree", "from_id": "F", "from_type": "V20", "to_id": "M", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Tree", "from_id": "F", "from_type": "V20", "to_id": "L", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Tree", "from_id": "C", "from_type": "V20", "to_id": "F", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Tree", "from_id": "D", "from_type": "V20", "to_id": "I", "to_type": "V20", "directed": false, "attributes": {}}]}] \ No newline at end of file diff --git a/tests/data/baseline/graph_algorithms_baselines/path_finding/bfs/Tree_Directed.json b/tests/data/baseline/graph_algorithms_baselines/path_finding/bfs/Tree_Directed.json new file mode 100644 index 00000000..1a6f2271 --- /dev/null +++ b/tests/data/baseline/graph_algorithms_baselines/path_finding/bfs/Tree_Directed.json @@ -0,0 +1 @@ +[{"Start": [{"v_id": "Q", "v_type": "V20", "attributes": {"Start.@sum_step": 4}}, {"v_id": "L", "v_type": "V20", "attributes": {"Start.@sum_step": 3}}, {"v_id": "M", "v_type": "V20", "attributes": {"Start.@sum_step": 3}}, {"v_id": "N", "v_type": "V20", "attributes": {"Start.@sum_step": 3}}, {"v_id": "I", "v_type": "V20", "attributes": {"Start.@sum_step": 3}}, {"v_id": "H", "v_type": "V20", "attributes": {"Start.@sum_step": 3}}, {"v_id": "G", "v_type": "V20", "attributes": {"Start.@sum_step": 2}}, {"v_id": "F", "v_type": "V20", "attributes": {"Start.@sum_step": 2}}, {"v_id": "J", "v_type": "V20", "attributes": {"Start.@sum_step": 3}}, {"v_id": "P", "v_type": "V20", "attributes": {"Start.@sum_step": 4}}, {"v_id": "K", "v_type": "V20", "attributes": {"Start.@sum_step": 3}}, {"v_id": "T", "v_type": "V20", "attributes": {"Start.@sum_step": 4}}, {"v_id": "S", "v_type": "V20", "attributes": {"Start.@sum_step": 4}}, {"v_id": "O", "v_type": "V20", "attributes": {"Start.@sum_step": 3}}, {"v_id": "C", "v_type": "V20", "attributes": {"Start.@sum_step": 1}}, {"v_id": "D", "v_type": "V20", "attributes": {"Start.@sum_step": 2}}, {"v_id": "E", "v_type": "V20", "attributes": {"Start.@sum_step": 2}}, {"v_id": "B", "v_type": "V20", "attributes": {"Start.@sum_step": 1}}, {"v_id": "R", "v_type": "V20", "attributes": {"Start.@sum_step": 4}}, {"v_id": "A", "v_type": "V20", "attributes": {"Start.@sum_step": 0}}]}, {"@@edge_set": [{"e_type": "Tree_Directed", "from_id": "H", "from_type": "V20", "to_id": "P", "to_type": "V20", "directed": true, "attributes": {}}, {"e_type": "Tree_Directed", "from_id": "J", "from_type": "V20", "to_id": "T", "to_type": "V20", "directed": true, "attributes": {}}, {"e_type": "Tree_Directed", "from_id": "B", "from_type": "V20", "to_id": "D", "to_type": "V20", "directed": true, "attributes": {}}, {"e_type": "Tree_Directed", "from_id": "G", "from_type": "V20", "to_id": "N", "to_type": "V20", "directed": true, "attributes": {}}, {"e_type": "Tree_Directed", "from_id": "H", "from_type": "V20", "to_id": "Q", "to_type": "V20", "directed": true, "attributes": {}}, {"e_type": "Tree_Directed", "from_id": "B", "from_type": "V20", "to_id": "E", "to_type": "V20", "directed": true, "attributes": {}}, {"e_type": "Tree_Directed", "from_id": "A", "from_type": "V20", "to_id": "C", "to_type": "V20", "directed": true, "attributes": {}}, {"e_type": "Tree_Directed", "from_id": "C", "from_type": "V20", "to_id": "G", "to_type": "V20", "directed": true, "attributes": {}}, {"e_type": "Tree_Directed", "from_id": "F", "from_type": "V20", "to_id": "L", "to_type": "V20", "directed": true, "attributes": {}}, {"e_type": "Tree_Directed", "from_id": "A", "from_type": "V20", "to_id": "B", "to_type": "V20", "directed": true, "attributes": {}}, {"e_type": "Tree_Directed", "from_id": "G", "from_type": "V20", "to_id": "O", "to_type": "V20", "directed": true, "attributes": {}}, {"e_type": "Tree_Directed", "from_id": "C", "from_type": "V20", "to_id": "F", "to_type": "V20", "directed": true, "attributes": {}}, {"e_type": "Tree_Directed", "from_id": "D", "from_type": "V20", "to_id": "I", "to_type": "V20", "directed": true, "attributes": {}}, {"e_type": "Tree_Directed", "from_id": "E", "from_type": "V20", "to_id": "J", "to_type": "V20", "directed": true, "attributes": {}}, {"e_type": "Tree_Directed", "from_id": "E", "from_type": "V20", "to_id": "K", "to_type": "V20", "directed": true, "attributes": {}}, {"e_type": "Tree_Directed", "from_id": "F", "from_type": "V20", "to_id": "M", "to_type": "V20", "directed": true, "attributes": {}}, {"e_type": "Tree_Directed", "from_id": "D", "from_type": "V20", "to_id": "H", "to_type": "V20", "directed": true, "attributes": {}}, {"e_type": "Tree_Directed", "from_id": "I", "from_type": "V20", "to_id": "S", "to_type": "V20", "directed": true, "attributes": {}}, {"e_type": "Tree_Directed", "from_id": "I", "from_type": "V20", "to_id": "R", "to_type": "V20", "directed": true, "attributes": {}}]}] \ No newline at end of file diff --git a/tests/data/baseline/graph_algorithms_baselines/path_finding/shortest_ss_no_wt/Complete.json b/tests/data/baseline/graph_algorithms_baselines/path_finding/shortest_ss_no_wt/Complete.json new file mode 100644 index 00000000..f223f587 --- /dev/null +++ b/tests/data/baseline/graph_algorithms_baselines/path_finding/shortest_ss_no_wt/Complete.json @@ -0,0 +1 @@ +[{"ResultSet": [{"v_id": "F", "v_type": "V8", "attributes": {"ResultSet.@min_dis": 1, "ResultSet.@path_list": ["A", "F"]}}, {"v_id": "G", "v_type": "V8", "attributes": {"ResultSet.@min_dis": 1, "ResultSet.@path_list": ["A", "G"]}}, {"v_id": "H", "v_type": "V8", "attributes": {"ResultSet.@min_dis": 1, "ResultSet.@path_list": ["A", "H"]}}, {"v_id": "C", "v_type": "V8", "attributes": {"ResultSet.@min_dis": 1, "ResultSet.@path_list": ["A", "C"]}}, {"v_id": "E", "v_type": "V8", "attributes": {"ResultSet.@min_dis": 1, "ResultSet.@path_list": ["A", "E"]}}, {"v_id": "D", "v_type": "V8", "attributes": {"ResultSet.@min_dis": 1, "ResultSet.@path_list": ["A", "D"]}}, {"v_id": "A", "v_type": "V8", "attributes": {"ResultSet.@min_dis": 0, "ResultSet.@path_list": ["A"]}}, {"v_id": "B", "v_type": "V8", "attributes": {"ResultSet.@min_dis": 1, "ResultSet.@path_list": ["A", "B"]}}]}, {"@@edge_set": [{"e_type": "Complete", "from_id": "D", "from_type": "V8", "to_id": "D", "to_type": "V8", "directed": false, "attributes": {}}, {"e_type": "Complete", "from_id": "E", "from_type": "V8", "to_id": "A", "to_type": "V8", "directed": false, "attributes": {}}, {"e_type": "Complete", "from_id": "D", "from_type": "V8", "to_id": "A", "to_type": "V8", "directed": false, "attributes": {}}, {"e_type": "Complete", "from_id": "E", "from_type": "V8", "to_id": "D", "to_type": "V8", "directed": false, "attributes": {}}, {"e_type": "Complete", "from_id": "E", "from_type": "V8", "to_id": "E", "to_type": "V8", "directed": false, "attributes": {}}, {"e_type": "Complete", "from_id": "D", "from_type": "V8", "to_id": "H", "to_type": "V8", "directed": false, "attributes": {}}, {"e_type": "Complete", "from_id": "E", "from_type": "V8", "to_id": "F", "to_type": "V8", "directed": false, "attributes": {}}, {"e_type": "Complete", "from_id": "E", "from_type": "V8", "to_id": "B", "to_type": "V8", "directed": false, "attributes": {}}, {"e_type": "Complete", "from_id": "E", "from_type": "V8", "to_id": "C", "to_type": "V8", "directed": false, "attributes": {}}, {"e_type": "Complete", "from_id": "E", "from_type": "V8", "to_id": "G", "to_type": "V8", "directed": false, "attributes": {}}, {"e_type": "Complete", "from_id": "D", "from_type": "V8", "to_id": "F", "to_type": "V8", "directed": false, "attributes": {}}, {"e_type": "Complete", "from_id": "D", "from_type": "V8", "to_id": "C", "to_type": "V8", "directed": false, "attributes": {}}, {"e_type": "Complete", "from_id": "D", "from_type": "V8", "to_id": "E", "to_type": "V8", "directed": false, "attributes": {}}, {"e_type": "Complete", "from_id": "A", "from_type": "V8", "to_id": "B", "to_type": "V8", "directed": false, "attributes": {}}, {"e_type": "Complete", "from_id": "H", "from_type": "V8", "to_id": "D", "to_type": "V8", "directed": false, "attributes": {}}, {"e_type": "Complete", "from_id": "F", "from_type": "V8", "to_id": "C", "to_type": "V8", "directed": false, "attributes": {}}, {"e_type": "Complete", "from_id": "C", "from_type": "V8", "to_id": "G", "to_type": "V8", "directed": false, "attributes": {}}, {"e_type": "Complete", "from_id": "C", "from_type": "V8", "to_id": "A", "to_type": "V8", "directed": false, "attributes": {}}, {"e_type": "Complete", "from_id": "A", "from_type": "V8", "to_id": "E", "to_type": "V8", "directed": false, "attributes": {}}, {"e_type": "Complete", "from_id": "F", "from_type": "V8", "to_id": "F", "to_type": "V8", "directed": false, "attributes": {}}, {"e_type": "Complete", "from_id": "E", "from_type": "V8", "to_id": "H", "to_type": "V8", "directed": false, "attributes": {}}, {"e_type": "Complete", "from_id": "C", "from_type": "V8", "to_id": "E", "to_type": "V8", "directed": false, "attributes": {}}, {"e_type": "Complete", "from_id": "G", "from_type": "V8", "to_id": "A", "to_type": "V8", "directed": false, "attributes": {}}, {"e_type": "Complete", "from_id": "B", "from_type": "V8", "to_id": "C", "to_type": "V8", "directed": false, "attributes": {}}, {"e_type": "Complete", "from_id": "A", "from_type": "V8", "to_id": "H", "to_type": "V8", "directed": false, "attributes": {}}, {"e_type": "Complete", "from_id": "C", "from_type": "V8", "to_id": "F", "to_type": "V8", "directed": false, "attributes": {}}, {"e_type": "Complete", "from_id": "A", "from_type": "V8", "to_id": "F", "to_type": "V8", "directed": false, "attributes": {}}, {"e_type": "Complete", "from_id": "C", "from_type": "V8", "to_id": "C", "to_type": "V8", "directed": false, "attributes": {}}, {"e_type": "Complete", "from_id": "C", "from_type": "V8", "to_id": "B", "to_type": "V8", "directed": false, "attributes": {}}, {"e_type": "Complete", "from_id": "F", "from_type": "V8", "to_id": "B", "to_type": "V8", "directed": false, "attributes": {}}, {"e_type": "Complete", "from_id": "B", "from_type": "V8", "to_id": "H", "to_type": "V8", "directed": false, "attributes": {}}, {"e_type": "Complete", "from_id": "C", "from_type": "V8", "to_id": "D", "to_type": "V8", "directed": false, "attributes": {}}, {"e_type": "Complete", "from_id": "G", "from_type": "V8", "to_id": "G", "to_type": "V8", "directed": false, "attributes": {}}, {"e_type": "Complete", "from_id": "D", "from_type": "V8", "to_id": "G", "to_type": "V8", "directed": false, "attributes": {}}, {"e_type": "Complete", "from_id": "G", "from_type": "V8", "to_id": "F", "to_type": "V8", "directed": false, "attributes": {}}, {"e_type": "Complete", "from_id": "C", "from_type": "V8", "to_id": "H", "to_type": "V8", "directed": false, "attributes": {}}, {"e_type": "Complete", "from_id": "D", "from_type": "V8", "to_id": "B", "to_type": "V8", "directed": false, "attributes": {}}, {"e_type": "Complete", "from_id": "F", "from_type": "V8", "to_id": "G", "to_type": "V8", "directed": false, "attributes": {}}, {"e_type": "Complete", "from_id": "F", "from_type": "V8", "to_id": "D", "to_type": "V8", "directed": false, "attributes": {}}, {"e_type": "Complete", "from_id": "H", "from_type": "V8", "to_id": "A", "to_type": "V8", "directed": false, "attributes": {}}, {"e_type": "Complete", "from_id": "F", "from_type": "V8", "to_id": "E", "to_type": "V8", "directed": false, "attributes": {}}, {"e_type": "Complete", "from_id": "A", "from_type": "V8", "to_id": "D", "to_type": "V8", "directed": false, "attributes": {}}, {"e_type": "Complete", "from_id": "A", "from_type": "V8", "to_id": "C", "to_type": "V8", "directed": false, "attributes": {}}, {"e_type": "Complete", "from_id": "H", "from_type": "V8", "to_id": "G", "to_type": "V8", "directed": false, "attributes": {}}, {"e_type": "Complete", "from_id": "A", "from_type": "V8", "to_id": "A", "to_type": "V8", "directed": false, "attributes": {}}, {"e_type": "Complete", "from_id": "B", "from_type": "V8", "to_id": "A", "to_type": "V8", "directed": false, "attributes": {}}, {"e_type": "Complete", "from_id": "H", "from_type": "V8", "to_id": "E", "to_type": "V8", "directed": false, "attributes": {}}, {"e_type": "Complete", "from_id": "G", "from_type": "V8", "to_id": "D", "to_type": "V8", "directed": false, "attributes": {}}, {"e_type": "Complete", "from_id": "F", "from_type": "V8", "to_id": "A", "to_type": "V8", "directed": false, "attributes": {}}, {"e_type": "Complete", "from_id": "H", "from_type": "V8", "to_id": "C", "to_type": "V8", "directed": false, "attributes": {}}, {"e_type": "Complete", "from_id": "A", "from_type": "V8", "to_id": "G", "to_type": "V8", "directed": false, "attributes": {}}, {"e_type": "Complete", "from_id": "H", "from_type": "V8", "to_id": "H", "to_type": "V8", "directed": false, "attributes": {}}, {"e_type": "Complete", "from_id": "B", "from_type": "V8", "to_id": "D", "to_type": "V8", "directed": false, "attributes": {}}, {"e_type": "Complete", "from_id": "B", "from_type": "V8", "to_id": "B", "to_type": "V8", "directed": false, "attributes": {}}, {"e_type": "Complete", "from_id": "G", "from_type": "V8", "to_id": "B", "to_type": "V8", "directed": false, "attributes": {}}, {"e_type": "Complete", "from_id": "H", "from_type": "V8", "to_id": "F", "to_type": "V8", "directed": false, "attributes": {}}, {"e_type": "Complete", "from_id": "G", "from_type": "V8", "to_id": "E", "to_type": "V8", "directed": false, "attributes": {}}, {"e_type": "Complete", "from_id": "G", "from_type": "V8", "to_id": "H", "to_type": "V8", "directed": false, "attributes": {}}, {"e_type": "Complete", "from_id": "G", "from_type": "V8", "to_id": "C", "to_type": "V8", "directed": false, "attributes": {}}, {"e_type": "Complete", "from_id": "B", "from_type": "V8", "to_id": "F", "to_type": "V8", "directed": false, "attributes": {}}, {"e_type": "Complete", "from_id": "F", "from_type": "V8", "to_id": "H", "to_type": "V8", "directed": false, "attributes": {}}, {"e_type": "Complete", "from_id": "H", "from_type": "V8", "to_id": "B", "to_type": "V8", "directed": false, "attributes": {}}, {"e_type": "Complete", "from_id": "B", "from_type": "V8", "to_id": "G", "to_type": "V8", "directed": false, "attributes": {}}, {"e_type": "Complete", "from_id": "B", "from_type": "V8", "to_id": "E", "to_type": "V8", "directed": false, "attributes": {}}]}] \ No newline at end of file diff --git a/tests/data/baseline/graph_algorithms_baselines/path_finding/shortest_ss_no_wt/Complete_Directed.json b/tests/data/baseline/graph_algorithms_baselines/path_finding/shortest_ss_no_wt/Complete_Directed.json new file mode 100644 index 00000000..a64db929 --- /dev/null +++ b/tests/data/baseline/graph_algorithms_baselines/path_finding/shortest_ss_no_wt/Complete_Directed.json @@ -0,0 +1 @@ +[{"ResultSet": [{"v_id": "F", "v_type": "V8", "attributes": {"ResultSet.@min_dis": 1, "ResultSet.@path_list": ["A", "F"]}}, {"v_id": "G", "v_type": "V8", "attributes": {"ResultSet.@min_dis": 1, "ResultSet.@path_list": ["A", "G"]}}, {"v_id": "H", "v_type": "V8", "attributes": {"ResultSet.@min_dis": 1, "ResultSet.@path_list": ["A", "H"]}}, {"v_id": "B", "v_type": "V8", "attributes": {"ResultSet.@min_dis": 1, "ResultSet.@path_list": ["A", "B"]}}, {"v_id": "C", "v_type": "V8", "attributes": {"ResultSet.@min_dis": 1, "ResultSet.@path_list": ["A", "C"]}}, {"v_id": "A", "v_type": "V8", "attributes": {"ResultSet.@min_dis": 0, "ResultSet.@path_list": ["A"]}}, {"v_id": "E", "v_type": "V8", "attributes": {"ResultSet.@min_dis": 1, "ResultSet.@path_list": ["A", "E"]}}, {"v_id": "D", "v_type": "V8", "attributes": {"ResultSet.@min_dis": 1, "ResultSet.@path_list": ["A", "D"]}}]}, {"@@edge_set": [{"e_type": "Complete_Directed", "from_id": "C", "from_type": "V8", "to_id": "B", "to_type": "V8", "directed": true, "attributes": {}}, {"e_type": "Complete_Directed", "from_id": "C", "from_type": "V8", "to_id": "A", "to_type": "V8", "directed": true, "attributes": {}}, {"e_type": "Complete_Directed", "from_id": "B", "from_type": "V8", "to_id": "B", "to_type": "V8", "directed": true, "attributes": {}}, {"e_type": "Complete_Directed", "from_id": "C", "from_type": "V8", "to_id": "C", "to_type": "V8", "directed": true, "attributes": {}}, {"e_type": "Complete_Directed", "from_id": "B", "from_type": "V8", "to_id": "H", "to_type": "V8", "directed": true, "attributes": {}}, {"e_type": "Complete_Directed", "from_id": "B", "from_type": "V8", "to_id": "G", "to_type": "V8", "directed": true, "attributes": {}}, {"e_type": "Complete_Directed", "from_id": "B", "from_type": "V8", "to_id": "F", "to_type": "V8", "directed": true, "attributes": {}}, {"e_type": "Complete_Directed", "from_id": "B", "from_type": "V8", "to_id": "C", "to_type": "V8", "directed": true, "attributes": {}}, {"e_type": "Complete_Directed", "from_id": "C", "from_type": "V8", "to_id": "G", "to_type": "V8", "directed": true, "attributes": {}}, {"e_type": "Complete_Directed", "from_id": "B", "from_type": "V8", "to_id": "E", "to_type": "V8", "directed": true, "attributes": {}}, {"e_type": "Complete_Directed", "from_id": "B", "from_type": "V8", "to_id": "A", "to_type": "V8", "directed": true, "attributes": {}}, {"e_type": "Complete_Directed", "from_id": "A", "from_type": "V8", "to_id": "H", "to_type": "V8", "directed": true, "attributes": {}}, {"e_type": "Complete_Directed", "from_id": "A", "from_type": "V8", "to_id": "C", "to_type": "V8", "directed": true, "attributes": {}}, {"e_type": "Complete_Directed", "from_id": "F", "from_type": "V8", "to_id": "D", "to_type": "V8", "directed": true, "attributes": {}}, {"e_type": "Complete_Directed", "from_id": "F", "from_type": "V8", "to_id": "F", "to_type": "V8", "directed": true, "attributes": {}}, {"e_type": "Complete_Directed", "from_id": "C", "from_type": "V8", "to_id": "D", "to_type": "V8", "directed": true, "attributes": {}}, {"e_type": "Complete_Directed", "from_id": "A", "from_type": "V8", "to_id": "F", "to_type": "V8", "directed": true, "attributes": {}}, {"e_type": "Complete_Directed", "from_id": "C", "from_type": "V8", "to_id": "H", "to_type": "V8", "directed": true, "attributes": {}}, {"e_type": "Complete_Directed", "from_id": "F", "from_type": "V8", "to_id": "B", "to_type": "V8", "directed": true, "attributes": {}}, {"e_type": "Complete_Directed", "from_id": "F", "from_type": "V8", "to_id": "C", "to_type": "V8", "directed": true, "attributes": {}}, {"e_type": "Complete_Directed", "from_id": "F", "from_type": "V8", "to_id": "G", "to_type": "V8", "directed": true, "attributes": {}}, {"e_type": "Complete_Directed", "from_id": "C", "from_type": "V8", "to_id": "E", "to_type": "V8", "directed": true, "attributes": {}}, {"e_type": "Complete_Directed", "from_id": "F", "from_type": "V8", "to_id": "H", "to_type": "V8", "directed": true, "attributes": {}}, {"e_type": "Complete_Directed", "from_id": "C", "from_type": "V8", "to_id": "F", "to_type": "V8", "directed": true, "attributes": {}}, {"e_type": "Complete_Directed", "from_id": "A", "from_type": "V8", "to_id": "E", "to_type": "V8", "directed": true, "attributes": {}}, {"e_type": "Complete_Directed", "from_id": "G", "from_type": "V8", "to_id": "B", "to_type": "V8", "directed": true, "attributes": {}}, {"e_type": "Complete_Directed", "from_id": "A", "from_type": "V8", "to_id": "B", "to_type": "V8", "directed": true, "attributes": {}}, {"e_type": "Complete_Directed", "from_id": "H", "from_type": "V8", "to_id": "F", "to_type": "V8", "directed": true, "attributes": {}}, {"e_type": "Complete_Directed", "from_id": "G", "from_type": "V8", "to_id": "D", "to_type": "V8", "directed": true, "attributes": {}}, {"e_type": "Complete_Directed", "from_id": "F", "from_type": "V8", "to_id": "E", "to_type": "V8", "directed": true, "attributes": {}}, {"e_type": "Complete_Directed", "from_id": "H", "from_type": "V8", "to_id": "B", "to_type": "V8", "directed": true, "attributes": {}}, {"e_type": "Complete_Directed", "from_id": "E", "from_type": "V8", "to_id": "B", "to_type": "V8", "directed": true, "attributes": {}}, {"e_type": "Complete_Directed", "from_id": "G", "from_type": "V8", "to_id": "E", "to_type": "V8", "directed": true, "attributes": {}}, {"e_type": "Complete_Directed", "from_id": "D", "from_type": "V8", "to_id": "B", "to_type": "V8", "directed": true, "attributes": {}}, {"e_type": "Complete_Directed", "from_id": "G", "from_type": "V8", "to_id": "H", "to_type": "V8", "directed": true, "attributes": {}}, {"e_type": "Complete_Directed", "from_id": "G", "from_type": "V8", "to_id": "C", "to_type": "V8", "directed": true, "attributes": {}}, {"e_type": "Complete_Directed", "from_id": "G", "from_type": "V8", "to_id": "G", "to_type": "V8", "directed": true, "attributes": {}}, {"e_type": "Complete_Directed", "from_id": "G", "from_type": "V8", "to_id": "A", "to_type": "V8", "directed": true, "attributes": {}}, {"e_type": "Complete_Directed", "from_id": "D", "from_type": "V8", "to_id": "C", "to_type": "V8", "directed": true, "attributes": {}}, {"e_type": "Complete_Directed", "from_id": "H", "from_type": "V8", "to_id": "A", "to_type": "V8", "directed": true, "attributes": {}}, {"e_type": "Complete_Directed", "from_id": "H", "from_type": "V8", "to_id": "G", "to_type": "V8", "directed": true, "attributes": {}}, {"e_type": "Complete_Directed", "from_id": "E", "from_type": "V8", "to_id": "G", "to_type": "V8", "directed": true, "attributes": {}}, {"e_type": "Complete_Directed", "from_id": "H", "from_type": "V8", "to_id": "C", "to_type": "V8", "directed": true, "attributes": {}}, {"e_type": "Complete_Directed", "from_id": "B", "from_type": "V8", "to_id": "D", "to_type": "V8", "directed": true, "attributes": {}}, {"e_type": "Complete_Directed", "from_id": "A", "from_type": "V8", "to_id": "G", "to_type": "V8", "directed": true, "attributes": {}}, {"e_type": "Complete_Directed", "from_id": "H", "from_type": "V8", "to_id": "E", "to_type": "V8", "directed": true, "attributes": {}}, {"e_type": "Complete_Directed", "from_id": "G", "from_type": "V8", "to_id": "F", "to_type": "V8", "directed": true, "attributes": {}}, {"e_type": "Complete_Directed", "from_id": "E", "from_type": "V8", "to_id": "C", "to_type": "V8", "directed": true, "attributes": {}}, {"e_type": "Complete_Directed", "from_id": "A", "from_type": "V8", "to_id": "D", "to_type": "V8", "directed": true, "attributes": {}}, {"e_type": "Complete_Directed", "from_id": "D", "from_type": "V8", "to_id": "D", "to_type": "V8", "directed": true, "attributes": {}}, {"e_type": "Complete_Directed", "from_id": "D", "from_type": "V8", "to_id": "E", "to_type": "V8", "directed": true, "attributes": {}}, {"e_type": "Complete_Directed", "from_id": "E", "from_type": "V8", "to_id": "A", "to_type": "V8", "directed": true, "attributes": {}}, {"e_type": "Complete_Directed", "from_id": "H", "from_type": "V8", "to_id": "D", "to_type": "V8", "directed": true, "attributes": {}}, {"e_type": "Complete_Directed", "from_id": "D", "from_type": "V8", "to_id": "H", "to_type": "V8", "directed": true, "attributes": {}}, {"e_type": "Complete_Directed", "from_id": "F", "from_type": "V8", "to_id": "A", "to_type": "V8", "directed": true, "attributes": {}}, {"e_type": "Complete_Directed", "from_id": "A", "from_type": "V8", "to_id": "A", "to_type": "V8", "directed": true, "attributes": {}}, {"e_type": "Complete_Directed", "from_id": "D", "from_type": "V8", "to_id": "F", "to_type": "V8", "directed": true, "attributes": {}}, {"e_type": "Complete_Directed", "from_id": "E", "from_type": "V8", "to_id": "H", "to_type": "V8", "directed": true, "attributes": {}}, {"e_type": "Complete_Directed", "from_id": "E", "from_type": "V8", "to_id": "E", "to_type": "V8", "directed": true, "attributes": {}}, {"e_type": "Complete_Directed", "from_id": "H", "from_type": "V8", "to_id": "H", "to_type": "V8", "directed": true, "attributes": {}}, {"e_type": "Complete_Directed", "from_id": "D", "from_type": "V8", "to_id": "A", "to_type": "V8", "directed": true, "attributes": {}}, {"e_type": "Complete_Directed", "from_id": "E", "from_type": "V8", "to_id": "F", "to_type": "V8", "directed": true, "attributes": {}}, {"e_type": "Complete_Directed", "from_id": "D", "from_type": "V8", "to_id": "G", "to_type": "V8", "directed": true, "attributes": {}}, {"e_type": "Complete_Directed", "from_id": "E", "from_type": "V8", "to_id": "D", "to_type": "V8", "directed": true, "attributes": {}}]}] \ No newline at end of file diff --git a/tests/data/baseline/graph_algorithms_baselines/path_finding/shortest_ss_no_wt/DAG_Directed.json b/tests/data/baseline/graph_algorithms_baselines/path_finding/shortest_ss_no_wt/DAG_Directed.json new file mode 100644 index 00000000..7368044a --- /dev/null +++ b/tests/data/baseline/graph_algorithms_baselines/path_finding/shortest_ss_no_wt/DAG_Directed.json @@ -0,0 +1 @@ +[{"ResultSet": [{"v_id": "F", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 2, "ResultSet.@path_list": ["A", "G", "F"]}}, {"v_id": "H", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 1, "ResultSet.@path_list": ["A", "H"]}}, {"v_id": "G", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 1, "ResultSet.@path_list": ["A", "G"]}}, {"v_id": "A", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 0, "ResultSet.@path_list": ["A"]}}]}, {"@@edge_set": [{"e_type": "DAG_Directed", "from_id": "G", "from_type": "V20", "to_id": "F", "to_type": "V20", "directed": true, "attributes": {}}, {"e_type": "DAG_Directed", "from_id": "A", "from_type": "V20", "to_id": "H", "to_type": "V20", "directed": true, "attributes": {}}, {"e_type": "DAG_Directed", "from_id": "A", "from_type": "V20", "to_id": "G", "to_type": "V20", "directed": true, "attributes": {}}]}] \ No newline at end of file diff --git a/tests/data/baseline/graph_algorithms_baselines/path_finding/shortest_ss_no_wt/Empty.json b/tests/data/baseline/graph_algorithms_baselines/path_finding/shortest_ss_no_wt/Empty.json new file mode 100644 index 00000000..a24ace7b --- /dev/null +++ b/tests/data/baseline/graph_algorithms_baselines/path_finding/shortest_ss_no_wt/Empty.json @@ -0,0 +1 @@ +[{"ResultSet": [{"v_id": "A", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 0, "ResultSet.@path_list": ["A"]}}]}, {"@@edge_set": []}] \ No newline at end of file diff --git a/tests/data/baseline/graph_algorithms_baselines/path_finding/shortest_ss_no_wt/Empty_Directed.json b/tests/data/baseline/graph_algorithms_baselines/path_finding/shortest_ss_no_wt/Empty_Directed.json new file mode 100644 index 00000000..a24ace7b --- /dev/null +++ b/tests/data/baseline/graph_algorithms_baselines/path_finding/shortest_ss_no_wt/Empty_Directed.json @@ -0,0 +1 @@ +[{"ResultSet": [{"v_id": "A", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 0, "ResultSet.@path_list": ["A"]}}]}, {"@@edge_set": []}] \ No newline at end of file diff --git a/tests/data/baseline/graph_algorithms_baselines/path_finding/shortest_ss_no_wt/Hub_Connected_Hub_Spoke.json b/tests/data/baseline/graph_algorithms_baselines/path_finding/shortest_ss_no_wt/Hub_Connected_Hub_Spoke.json new file mode 100644 index 00000000..ded23922 --- /dev/null +++ b/tests/data/baseline/graph_algorithms_baselines/path_finding/shortest_ss_no_wt/Hub_Connected_Hub_Spoke.json @@ -0,0 +1 @@ +[{"ResultSet": [{"v_id": "Q", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 2, "ResultSet.@path_list": ["A", "D", "Q"]}}, {"v_id": "M", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 2, "ResultSet.@path_list": ["A", "C", "M"]}}, {"v_id": "N", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 2, "ResultSet.@path_list": ["A", "C", "N"]}}, {"v_id": "K", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 2, "ResultSet.@path_list": ["A", "B", "K"]}}, {"v_id": "L", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 2, "ResultSet.@path_list": ["A", "B", "L"]}}, {"v_id": "P", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 2, "ResultSet.@path_list": ["A", "C", "P"]}}, {"v_id": "S", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 2, "ResultSet.@path_list": ["A", "D", "S"]}}, {"v_id": "I", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 2, "ResultSet.@path_list": ["A", "B", "I"]}}, {"v_id": "F", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 1, "ResultSet.@path_list": ["A", "F"]}}, {"v_id": "J", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 2, "ResultSet.@path_list": ["A", "B", "J"]}}, {"v_id": "H", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 1, "ResultSet.@path_list": ["A", "H"]}}, {"v_id": "G", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 1, "ResultSet.@path_list": ["A", "G"]}}, {"v_id": "B", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 1, "ResultSet.@path_list": ["A", "B"]}}, {"v_id": "T", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 2, "ResultSet.@path_list": ["A", "D", "T"]}}, {"v_id": "R", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 2, "ResultSet.@path_list": ["A", "D", "R"]}}, {"v_id": "A", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 0, "ResultSet.@path_list": ["A"]}}, {"v_id": "O", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 2, "ResultSet.@path_list": ["A", "C", "O"]}}, {"v_id": "C", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 1, "ResultSet.@path_list": ["A", "C"]}}, {"v_id": "D", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 1, "ResultSet.@path_list": ["A", "D"]}}, {"v_id": "E", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 1, "ResultSet.@path_list": ["A", "E"]}}]}, {"@@edge_set": [{"e_type": "Hub_Connected_Hub_Spoke", "from_id": "A", "from_type": "V20", "to_id": "E", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Hub_Connected_Hub_Spoke", "from_id": "D", "from_type": "V20", "to_id": "S", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Hub_Connected_Hub_Spoke", "from_id": "A", "from_type": "V20", "to_id": "B", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Hub_Connected_Hub_Spoke", "from_id": "R", "from_type": "V20", "to_id": "D", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Hub_Connected_Hub_Spoke", "from_id": "A", "from_type": "V20", "to_id": "C", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Hub_Connected_Hub_Spoke", "from_id": "T", "from_type": "V20", "to_id": "D", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Hub_Connected_Hub_Spoke", "from_id": "A", "from_type": "V20", "to_id": "H", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Hub_Connected_Hub_Spoke", "from_id": "D", "from_type": "V20", "to_id": "B", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Hub_Connected_Hub_Spoke", "from_id": "D", "from_type": "V20", "to_id": "A", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Hub_Connected_Hub_Spoke", "from_id": "B", "from_type": "V20", "to_id": "J", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Hub_Connected_Hub_Spoke", "from_id": "B", "from_type": "V20", "to_id": "A", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Hub_Connected_Hub_Spoke", "from_id": "B", "from_type": "V20", "to_id": "I", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Hub_Connected_Hub_Spoke", "from_id": "E", "from_type": "V20", "to_id": "A", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Hub_Connected_Hub_Spoke", "from_id": "B", "from_type": "V20", "to_id": "K", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Hub_Connected_Hub_Spoke", "from_id": "N", "from_type": "V20", "to_id": "C", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Hub_Connected_Hub_Spoke", "from_id": "G", "from_type": "V20", "to_id": "A", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Hub_Connected_Hub_Spoke", "from_id": "M", "from_type": "V20", "to_id": "C", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Hub_Connected_Hub_Spoke", "from_id": "H", "from_type": "V20", "to_id": "A", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Hub_Connected_Hub_Spoke", "from_id": "C", "from_type": "V20", "to_id": "N", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Hub_Connected_Hub_Spoke", "from_id": "D", "from_type": "V20", "to_id": "Q", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Hub_Connected_Hub_Spoke", "from_id": "B", "from_type": "V20", "to_id": "C", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Hub_Connected_Hub_Spoke", "from_id": "P", "from_type": "V20", "to_id": "C", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Hub_Connected_Hub_Spoke", "from_id": "B", "from_type": "V20", "to_id": "L", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Hub_Connected_Hub_Spoke", "from_id": "C", "from_type": "V20", "to_id": "D", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Hub_Connected_Hub_Spoke", "from_id": "J", "from_type": "V20", "to_id": "B", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Hub_Connected_Hub_Spoke", "from_id": "Q", "from_type": "V20", "to_id": "D", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Hub_Connected_Hub_Spoke", "from_id": "A", "from_type": "V20", "to_id": "F", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Hub_Connected_Hub_Spoke", "from_id": "K", "from_type": "V20", "to_id": "B", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Hub_Connected_Hub_Spoke", "from_id": "L", "from_type": "V20", "to_id": "B", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Hub_Connected_Hub_Spoke", "from_id": "B", "from_type": "V20", "to_id": "D", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Hub_Connected_Hub_Spoke", "from_id": "C", "from_type": "V20", "to_id": "P", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Hub_Connected_Hub_Spoke", "from_id": "D", "from_type": "V20", "to_id": "R", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Hub_Connected_Hub_Spoke", "from_id": "F", "from_type": "V20", "to_id": "A", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Hub_Connected_Hub_Spoke", "from_id": "C", "from_type": "V20", "to_id": "O", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Hub_Connected_Hub_Spoke", "from_id": "D", "from_type": "V20", "to_id": "T", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Hub_Connected_Hub_Spoke", "from_id": "D", "from_type": "V20", "to_id": "C", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Hub_Connected_Hub_Spoke", "from_id": "I", "from_type": "V20", "to_id": "B", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Hub_Connected_Hub_Spoke", "from_id": "S", "from_type": "V20", "to_id": "D", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Hub_Connected_Hub_Spoke", "from_id": "A", "from_type": "V20", "to_id": "G", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Hub_Connected_Hub_Spoke", "from_id": "C", "from_type": "V20", "to_id": "A", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Hub_Connected_Hub_Spoke", "from_id": "C", "from_type": "V20", "to_id": "B", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Hub_Connected_Hub_Spoke", "from_id": "C", "from_type": "V20", "to_id": "M", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Hub_Connected_Hub_Spoke", "from_id": "A", "from_type": "V20", "to_id": "D", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Hub_Connected_Hub_Spoke", "from_id": "O", "from_type": "V20", "to_id": "C", "to_type": "V20", "directed": false, "attributes": {}}]}] \ No newline at end of file diff --git a/tests/data/baseline/graph_algorithms_baselines/path_finding/shortest_ss_no_wt/Hub_Spoke.json b/tests/data/baseline/graph_algorithms_baselines/path_finding/shortest_ss_no_wt/Hub_Spoke.json new file mode 100644 index 00000000..bc859656 --- /dev/null +++ b/tests/data/baseline/graph_algorithms_baselines/path_finding/shortest_ss_no_wt/Hub_Spoke.json @@ -0,0 +1 @@ +[{"ResultSet": [{"v_id": "Q", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 1, "ResultSet.@path_list": ["A", "Q"]}}, {"v_id": "L", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 1, "ResultSet.@path_list": ["A", "L"]}}, {"v_id": "P", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 1, "ResultSet.@path_list": ["A", "P"]}}, {"v_id": "M", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 1, "ResultSet.@path_list": ["A", "M"]}}, {"v_id": "T", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 1, "ResultSet.@path_list": ["A", "T"]}}, {"v_id": "H", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 1, "ResultSet.@path_list": ["A", "H"]}}, {"v_id": "G", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 1, "ResultSet.@path_list": ["A", "G"]}}, {"v_id": "I", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 1, "ResultSet.@path_list": ["A", "I"]}}, {"v_id": "N", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 1, "ResultSet.@path_list": ["A", "N"]}}, {"v_id": "S", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 1, "ResultSet.@path_list": ["A", "S"]}}, {"v_id": "F", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 1, "ResultSet.@path_list": ["A", "F"]}}, {"v_id": "J", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 1, "ResultSet.@path_list": ["A", "J"]}}, {"v_id": "R", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 1, "ResultSet.@path_list": ["A", "R"]}}, {"v_id": "A", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 0, "ResultSet.@path_list": ["A"]}}, {"v_id": "D", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 1, "ResultSet.@path_list": ["A", "D"]}}, {"v_id": "E", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 1, "ResultSet.@path_list": ["A", "E"]}}, {"v_id": "O", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 1, "ResultSet.@path_list": ["A", "O"]}}, {"v_id": "C", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 1, "ResultSet.@path_list": ["A", "C"]}}, {"v_id": "K", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 1, "ResultSet.@path_list": ["A", "K"]}}, {"v_id": "B", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 1, "ResultSet.@path_list": ["A", "B"]}}]}, {"@@edge_set": [{"e_type": "Hub_Spoke", "from_id": "A", "from_type": "V20", "to_id": "D", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Hub_Spoke", "from_id": "A", "from_type": "V20", "to_id": "O", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Hub_Spoke", "from_id": "A", "from_type": "V20", "to_id": "G", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Hub_Spoke", "from_id": "A", "from_type": "V20", "to_id": "H", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Hub_Spoke", "from_id": "A", "from_type": "V20", "to_id": "F", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Hub_Spoke", "from_id": "A", "from_type": "V20", "to_id": "C", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Hub_Spoke", "from_id": "A", "from_type": "V20", "to_id": "B", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Hub_Spoke", "from_id": "A", "from_type": "V20", "to_id": "S", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Hub_Spoke", "from_id": "A", "from_type": "V20", "to_id": "T", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Hub_Spoke", "from_id": "R", "from_type": "V20", "to_id": "A", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Hub_Spoke", "from_id": "G", "from_type": "V20", "to_id": "A", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Hub_Spoke", "from_id": "H", "from_type": "V20", "to_id": "A", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Hub_Spoke", "from_id": "A", "from_type": "V20", "to_id": "L", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Hub_Spoke", "from_id": "A", "from_type": "V20", "to_id": "M", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Hub_Spoke", "from_id": "A", "from_type": "V20", "to_id": "Q", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Hub_Spoke", "from_id": "A", "from_type": "V20", "to_id": "N", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Hub_Spoke", "from_id": "A", "from_type": "V20", "to_id": "K", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Hub_Spoke", "from_id": "A", "from_type": "V20", "to_id": "P", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Hub_Spoke", "from_id": "F", "from_type": "V20", "to_id": "A", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Hub_Spoke", "from_id": "S", "from_type": "V20", "to_id": "A", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Hub_Spoke", "from_id": "O", "from_type": "V20", "to_id": "A", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Hub_Spoke", "from_id": "A", "from_type": "V20", "to_id": "E", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Hub_Spoke", "from_id": "A", "from_type": "V20", "to_id": "R", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Hub_Spoke", "from_id": "P", "from_type": "V20", "to_id": "A", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Hub_Spoke", "from_id": "Q", "from_type": "V20", "to_id": "A", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Hub_Spoke", "from_id": "L", "from_type": "V20", "to_id": "A", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Hub_Spoke", "from_id": "J", "from_type": "V20", "to_id": "A", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Hub_Spoke", "from_id": "E", "from_type": "V20", "to_id": "A", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Hub_Spoke", "from_id": "K", "from_type": "V20", "to_id": "A", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Hub_Spoke", "from_id": "N", "from_type": "V20", "to_id": "A", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Hub_Spoke", "from_id": "D", "from_type": "V20", "to_id": "A", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Hub_Spoke", "from_id": "A", "from_type": "V20", "to_id": "J", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Hub_Spoke", "from_id": "M", "from_type": "V20", "to_id": "A", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Hub_Spoke", "from_id": "C", "from_type": "V20", "to_id": "A", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Hub_Spoke", "from_id": "T", "from_type": "V20", "to_id": "A", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Hub_Spoke", "from_id": "I", "from_type": "V20", "to_id": "A", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Hub_Spoke", "from_id": "A", "from_type": "V20", "to_id": "I", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Hub_Spoke", "from_id": "B", "from_type": "V20", "to_id": "A", "to_type": "V20", "directed": false, "attributes": {}}]}] \ No newline at end of file diff --git a/tests/data/baseline/graph_algorithms_baselines/path_finding/shortest_ss_no_wt/Hub_Spoke_Directed.json b/tests/data/baseline/graph_algorithms_baselines/path_finding/shortest_ss_no_wt/Hub_Spoke_Directed.json new file mode 100644 index 00000000..b8a2ee61 --- /dev/null +++ b/tests/data/baseline/graph_algorithms_baselines/path_finding/shortest_ss_no_wt/Hub_Spoke_Directed.json @@ -0,0 +1 @@ +[{"ResultSet": [{"v_id": "Q", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 1, "ResultSet.@path_list": ["A", "Q"]}}, {"v_id": "L", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 1, "ResultSet.@path_list": ["A", "L"]}}, {"v_id": "M", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 1, "ResultSet.@path_list": ["A", "M"]}}, {"v_id": "N", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 1, "ResultSet.@path_list": ["A", "N"]}}, {"v_id": "K", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 1, "ResultSet.@path_list": ["A", "K"]}}, {"v_id": "S", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 1, "ResultSet.@path_list": ["A", "S"]}}, {"v_id": "F", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 1, "ResultSet.@path_list": ["A", "F"]}}, {"v_id": "J", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 1, "ResultSet.@path_list": ["A", "J"]}}, {"v_id": "H", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 1, "ResultSet.@path_list": ["A", "H"]}}, {"v_id": "D", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 1, "ResultSet.@path_list": ["A", "D"]}}, {"v_id": "T", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 1, "ResultSet.@path_list": ["A", "T"]}}, {"v_id": "I", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 1, "ResultSet.@path_list": ["A", "I"]}}, {"v_id": "B", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 1, "ResultSet.@path_list": ["A", "B"]}}, {"v_id": "G", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 1, "ResultSet.@path_list": ["A", "G"]}}, {"v_id": "E", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 1, "ResultSet.@path_list": ["A", "E"]}}, {"v_id": "R", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 1, "ResultSet.@path_list": ["A", "R"]}}, {"v_id": "A", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 0, "ResultSet.@path_list": ["A"]}}, {"v_id": "P", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 1, "ResultSet.@path_list": ["A", "P"]}}, {"v_id": "O", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 1, "ResultSet.@path_list": ["A", "O"]}}, {"v_id": "C", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 1, "ResultSet.@path_list": ["A", "C"]}}]}, {"@@edge_set": [{"e_type": "Hub_Spoke_Directed", "from_id": "A", "from_type": "V20", "to_id": "F", "to_type": "V20", "directed": true, "attributes": {}}, {"e_type": "Hub_Spoke_Directed", "from_id": "A", "from_type": "V20", "to_id": "I", "to_type": "V20", "directed": true, "attributes": {}}, {"e_type": "Hub_Spoke_Directed", "from_id": "A", "from_type": "V20", "to_id": "K", "to_type": "V20", "directed": true, "attributes": {}}, {"e_type": "Hub_Spoke_Directed", "from_id": "A", "from_type": "V20", "to_id": "G", "to_type": "V20", "directed": true, "attributes": {}}, {"e_type": "Hub_Spoke_Directed", "from_id": "A", "from_type": "V20", "to_id": "S", "to_type": "V20", "directed": true, "attributes": {}}, {"e_type": "Hub_Spoke_Directed", "from_id": "A", "from_type": "V20", "to_id": "L", "to_type": "V20", "directed": true, "attributes": {}}, {"e_type": "Hub_Spoke_Directed", "from_id": "A", "from_type": "V20", "to_id": "T", "to_type": "V20", "directed": true, "attributes": {}}, {"e_type": "Hub_Spoke_Directed", "from_id": "A", "from_type": "V20", "to_id": "P", "to_type": "V20", "directed": true, "attributes": {}}, {"e_type": "Hub_Spoke_Directed", "from_id": "A", "from_type": "V20", "to_id": "H", "to_type": "V20", "directed": true, "attributes": {}}, {"e_type": "Hub_Spoke_Directed", "from_id": "A", "from_type": "V20", "to_id": "Q", "to_type": "V20", "directed": true, "attributes": {}}, {"e_type": "Hub_Spoke_Directed", "from_id": "A", "from_type": "V20", "to_id": "M", "to_type": "V20", "directed": true, "attributes": {}}, {"e_type": "Hub_Spoke_Directed", "from_id": "A", "from_type": "V20", "to_id": "O", "to_type": "V20", "directed": true, "attributes": {}}, {"e_type": "Hub_Spoke_Directed", "from_id": "A", "from_type": "V20", "to_id": "R", "to_type": "V20", "directed": true, "attributes": {}}, {"e_type": "Hub_Spoke_Directed", "from_id": "A", "from_type": "V20", "to_id": "N", "to_type": "V20", "directed": true, "attributes": {}}, {"e_type": "Hub_Spoke_Directed", "from_id": "A", "from_type": "V20", "to_id": "C", "to_type": "V20", "directed": true, "attributes": {}}, {"e_type": "Hub_Spoke_Directed", "from_id": "A", "from_type": "V20", "to_id": "D", "to_type": "V20", "directed": true, "attributes": {}}, {"e_type": "Hub_Spoke_Directed", "from_id": "A", "from_type": "V20", "to_id": "J", "to_type": "V20", "directed": true, "attributes": {}}, {"e_type": "Hub_Spoke_Directed", "from_id": "A", "from_type": "V20", "to_id": "B", "to_type": "V20", "directed": true, "attributes": {}}, {"e_type": "Hub_Spoke_Directed", "from_id": "A", "from_type": "V20", "to_id": "E", "to_type": "V20", "directed": true, "attributes": {}}]}] \ No newline at end of file diff --git a/tests/data/baseline/graph_algorithms_baselines/path_finding/shortest_ss_no_wt/Line.json b/tests/data/baseline/graph_algorithms_baselines/path_finding/shortest_ss_no_wt/Line.json new file mode 100644 index 00000000..af5e0a99 --- /dev/null +++ b/tests/data/baseline/graph_algorithms_baselines/path_finding/shortest_ss_no_wt/Line.json @@ -0,0 +1 @@ +[{"ResultSet": [{"v_id": "Q", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 16, "ResultSet.@path_list": ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q"]}}, {"v_id": "L", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 11, "ResultSet.@path_list": ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L"]}}, {"v_id": "P", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 15, "ResultSet.@path_list": ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P"]}}, {"v_id": "I", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 8, "ResultSet.@path_list": ["A", "B", "C", "D", "E", "F", "G", "H", "I"]}}, {"v_id": "M", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 12, "ResultSet.@path_list": ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M"]}}, {"v_id": "N", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 13, "ResultSet.@path_list": ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N"]}}, {"v_id": "K", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 10, "ResultSet.@path_list": ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K"]}}, {"v_id": "S", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 18, "ResultSet.@path_list": ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S"]}}, {"v_id": "R", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 17, "ResultSet.@path_list": ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R"]}}, {"v_id": "A", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 0, "ResultSet.@path_list": ["A"]}}, {"v_id": "T", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 19, "ResultSet.@path_list": ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T"]}}, {"v_id": "F", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 5, "ResultSet.@path_list": ["A", "B", "C", "D", "E", "F"]}}, {"v_id": "J", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 9, "ResultSet.@path_list": ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J"]}}, {"v_id": "B", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 1, "ResultSet.@path_list": ["A", "B"]}}, {"v_id": "O", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 14, "ResultSet.@path_list": ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O"]}}, {"v_id": "C", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 2, "ResultSet.@path_list": ["A", "B", "C"]}}, {"v_id": "D", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 3, "ResultSet.@path_list": ["A", "B", "C", "D"]}}, {"v_id": "E", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 4, "ResultSet.@path_list": ["A", "B", "C", "D", "E"]}}, {"v_id": "H", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 7, "ResultSet.@path_list": ["A", "B", "C", "D", "E", "F", "G", "H"]}}, {"v_id": "G", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 6, "ResultSet.@path_list": ["A", "B", "C", "D", "E", "F", "G"]}}]}, {"@@edge_set": [{"e_type": "Line", "from_id": "L", "from_type": "V20", "to_id": "K", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Line", "from_id": "Q", "from_type": "V20", "to_id": "P", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Line", "from_id": "T", "from_type": "V20", "to_id": "S", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Line", "from_id": "E", "from_type": "V20", "to_id": "D", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Line", "from_id": "F", "from_type": "V20", "to_id": "E", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Line", "from_id": "J", "from_type": "V20", "to_id": "K", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Line", "from_id": "E", "from_type": "V20", "to_id": "F", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Line", "from_id": "J", "from_type": "V20", "to_id": "I", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Line", "from_id": "F", "from_type": "V20", "to_id": "G", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Line", "from_id": "B", "from_type": "V20", "to_id": "C", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Line", "from_id": "B", "from_type": "V20", "to_id": "A", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Line", "from_id": "I", "from_type": "V20", "to_id": "H", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Line", "from_id": "R", "from_type": "V20", "to_id": "Q", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Line", "from_id": "I", "from_type": "V20", "to_id": "J", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Line", "from_id": "L", "from_type": "V20", "to_id": "M", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Line", "from_id": "C", "from_type": "V20", "to_id": "B", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Line", "from_id": "M", "from_type": "V20", "to_id": "N", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Line", "from_id": "H", "from_type": "V20", "to_id": "I", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Line", "from_id": "D", "from_type": "V20", "to_id": "C", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Line", "from_id": "C", "from_type": "V20", "to_id": "D", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Line", "from_id": "Q", "from_type": "V20", "to_id": "R", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Line", "from_id": "D", "from_type": "V20", "to_id": "E", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Line", "from_id": "O", "from_type": "V20", "to_id": "P", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Line", "from_id": "M", "from_type": "V20", "to_id": "L", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Line", "from_id": "A", "from_type": "V20", "to_id": "B", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Line", "from_id": "P", "from_type": "V20", "to_id": "Q", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Line", "from_id": "P", "from_type": "V20", "to_id": "O", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Line", "from_id": "H", "from_type": "V20", "to_id": "G", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Line", "from_id": "G", "from_type": "V20", "to_id": "F", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Line", "from_id": "N", "from_type": "V20", "to_id": "M", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Line", "from_id": "K", "from_type": "V20", "to_id": "J", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Line", "from_id": "R", "from_type": "V20", "to_id": "S", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Line", "from_id": "O", "from_type": "V20", "to_id": "N", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Line", "from_id": "N", "from_type": "V20", "to_id": "O", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Line", "from_id": "K", "from_type": "V20", "to_id": "L", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Line", "from_id": "S", "from_type": "V20", "to_id": "T", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Line", "from_id": "S", "from_type": "V20", "to_id": "R", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Line", "from_id": "G", "from_type": "V20", "to_id": "H", "to_type": "V20", "directed": false, "attributes": {}}]}] \ No newline at end of file diff --git a/tests/data/baseline/graph_algorithms_baselines/path_finding/shortest_ss_no_wt/Line_Directed.json b/tests/data/baseline/graph_algorithms_baselines/path_finding/shortest_ss_no_wt/Line_Directed.json new file mode 100644 index 00000000..16d319c9 --- /dev/null +++ b/tests/data/baseline/graph_algorithms_baselines/path_finding/shortest_ss_no_wt/Line_Directed.json @@ -0,0 +1 @@ +[{"ResultSet": [{"v_id": "Q", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 16, "ResultSet.@path_list": ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q"]}}, {"v_id": "L", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 11, "ResultSet.@path_list": ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L"]}}, {"v_id": "T", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 19, "ResultSet.@path_list": ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T"]}}, {"v_id": "H", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 7, "ResultSet.@path_list": ["A", "B", "C", "D", "E", "F", "G", "H"]}}, {"v_id": "B", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 1, "ResultSet.@path_list": ["A", "B"]}}, {"v_id": "M", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 12, "ResultSet.@path_list": ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M"]}}, {"v_id": "N", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 13, "ResultSet.@path_list": ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N"]}}, {"v_id": "K", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 10, "ResultSet.@path_list": ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K"]}}, {"v_id": "I", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 8, "ResultSet.@path_list": ["A", "B", "C", "D", "E", "F", "G", "H", "I"]}}, {"v_id": "P", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 15, "ResultSet.@path_list": ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P"]}}, {"v_id": "F", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 5, "ResultSet.@path_list": ["A", "B", "C", "D", "E", "F"]}}, {"v_id": "J", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 9, "ResultSet.@path_list": ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J"]}}, {"v_id": "O", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 14, "ResultSet.@path_list": ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O"]}}, {"v_id": "C", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 2, "ResultSet.@path_list": ["A", "B", "C"]}}, {"v_id": "G", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 6, "ResultSet.@path_list": ["A", "B", "C", "D", "E", "F", "G"]}}, {"v_id": "S", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 18, "ResultSet.@path_list": ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S"]}}, {"v_id": "D", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 3, "ResultSet.@path_list": ["A", "B", "C", "D"]}}, {"v_id": "E", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 4, "ResultSet.@path_list": ["A", "B", "C", "D", "E"]}}, {"v_id": "R", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 17, "ResultSet.@path_list": ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R"]}}, {"v_id": "A", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 0, "ResultSet.@path_list": ["A"]}}]}, {"@@edge_set": [{"e_type": "Line_Directed", "from_id": "A", "from_type": "V20", "to_id": "B", "to_type": "V20", "directed": true, "attributes": {}}, {"e_type": "Line_Directed", "from_id": "F", "from_type": "V20", "to_id": "G", "to_type": "V20", "directed": true, "attributes": {}}, {"e_type": "Line_Directed", "from_id": "J", "from_type": "V20", "to_id": "K", "to_type": "V20", "directed": true, "attributes": {}}, {"e_type": "Line_Directed", "from_id": "M", "from_type": "V20", "to_id": "N", "to_type": "V20", "directed": true, "attributes": {}}, {"e_type": "Line_Directed", "from_id": "B", "from_type": "V20", "to_id": "C", "to_type": "V20", "directed": true, "attributes": {}}, {"e_type": "Line_Directed", "from_id": "O", "from_type": "V20", "to_id": "P", "to_type": "V20", "directed": true, "attributes": {}}, {"e_type": "Line_Directed", "from_id": "E", "from_type": "V20", "to_id": "F", "to_type": "V20", "directed": true, "attributes": {}}, {"e_type": "Line_Directed", "from_id": "K", "from_type": "V20", "to_id": "L", "to_type": "V20", "directed": true, "attributes": {}}, {"e_type": "Line_Directed", "from_id": "H", "from_type": "V20", "to_id": "I", "to_type": "V20", "directed": true, "attributes": {}}, {"e_type": "Line_Directed", "from_id": "N", "from_type": "V20", "to_id": "O", "to_type": "V20", "directed": true, "attributes": {}}, {"e_type": "Line_Directed", "from_id": "C", "from_type": "V20", "to_id": "D", "to_type": "V20", "directed": true, "attributes": {}}, {"e_type": "Line_Directed", "from_id": "G", "from_type": "V20", "to_id": "H", "to_type": "V20", "directed": true, "attributes": {}}, {"e_type": "Line_Directed", "from_id": "I", "from_type": "V20", "to_id": "J", "to_type": "V20", "directed": true, "attributes": {}}, {"e_type": "Line_Directed", "from_id": "R", "from_type": "V20", "to_id": "S", "to_type": "V20", "directed": true, "attributes": {}}, {"e_type": "Line_Directed", "from_id": "Q", "from_type": "V20", "to_id": "R", "to_type": "V20", "directed": true, "attributes": {}}, {"e_type": "Line_Directed", "from_id": "D", "from_type": "V20", "to_id": "E", "to_type": "V20", "directed": true, "attributes": {}}, {"e_type": "Line_Directed", "from_id": "L", "from_type": "V20", "to_id": "M", "to_type": "V20", "directed": true, "attributes": {}}, {"e_type": "Line_Directed", "from_id": "P", "from_type": "V20", "to_id": "Q", "to_type": "V20", "directed": true, "attributes": {}}, {"e_type": "Line_Directed", "from_id": "S", "from_type": "V20", "to_id": "T", "to_type": "V20", "directed": true, "attributes": {}}]}] \ No newline at end of file diff --git a/tests/data/baseline/graph_algorithms_baselines/path_finding/shortest_ss_no_wt/Line_Weighted.json b/tests/data/baseline/graph_algorithms_baselines/path_finding/shortest_ss_no_wt/Line_Weighted.json new file mode 100644 index 00000000..31c22adb --- /dev/null +++ b/tests/data/baseline/graph_algorithms_baselines/path_finding/shortest_ss_no_wt/Line_Weighted.json @@ -0,0 +1 @@ +[{"ResultSet": [{"v_id": "Q", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 16, "ResultSet.@path_list": ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q"]}}, {"v_id": "L", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 11, "ResultSet.@path_list": ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L"]}}, {"v_id": "P", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 15, "ResultSet.@path_list": ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P"]}}, {"v_id": "S", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 18, "ResultSet.@path_list": ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S"]}}, {"v_id": "O", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 14, "ResultSet.@path_list": ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O"]}}, {"v_id": "C", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 2, "ResultSet.@path_list": ["A", "B", "C"]}}, {"v_id": "T", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 19, "ResultSet.@path_list": ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T"]}}, {"v_id": "I", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 8, "ResultSet.@path_list": ["A", "B", "C", "D", "E", "F", "G", "H", "I"]}}, {"v_id": "M", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 12, "ResultSet.@path_list": ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M"]}}, {"v_id": "N", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 13, "ResultSet.@path_list": ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N"]}}, {"v_id": "K", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 10, "ResultSet.@path_list": ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K"]}}, {"v_id": "R", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 17, "ResultSet.@path_list": ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R"]}}, {"v_id": "A", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 0, "ResultSet.@path_list": ["A"]}}, {"v_id": "H", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 7, "ResultSet.@path_list": ["A", "B", "C", "D", "E", "F", "G", "H"]}}, {"v_id": "G", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 6, "ResultSet.@path_list": ["A", "B", "C", "D", "E", "F", "G"]}}, {"v_id": "B", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 1, "ResultSet.@path_list": ["A", "B"]}}, {"v_id": "D", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 3, "ResultSet.@path_list": ["A", "B", "C", "D"]}}, {"v_id": "E", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 4, "ResultSet.@path_list": ["A", "B", "C", "D", "E"]}}, {"v_id": "F", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 5, "ResultSet.@path_list": ["A", "B", "C", "D", "E", "F"]}}, {"v_id": "J", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 9, "ResultSet.@path_list": ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J"]}}]}, {"@@edge_set": [{"e_type": "Line_Weighted", "from_id": "D", "from_type": "V20", "to_id": "E", "to_type": "V20", "directed": false, "attributes": {"weight": 28, "size": 28}}, {"e_type": "Line_Weighted", "from_id": "I", "from_type": "V20", "to_id": "H", "to_type": "V20", "directed": false, "attributes": {"weight": 8, "size": 8}}, {"e_type": "Line_Weighted", "from_id": "P", "from_type": "V20", "to_id": "Q", "to_type": "V20", "directed": false, "attributes": {"weight": 1, "size": 1}}, {"e_type": "Line_Weighted", "from_id": "I", "from_type": "V20", "to_id": "J", "to_type": "V20", "directed": false, "attributes": {"weight": 22, "size": 22}}, {"e_type": "Line_Weighted", "from_id": "P", "from_type": "V20", "to_id": "O", "to_type": "V20", "directed": false, "attributes": {"weight": 2, "size": 2}}, {"e_type": "Line_Weighted", "from_id": "J", "from_type": "V20", "to_id": "I", "to_type": "V20", "directed": false, "attributes": {"weight": 22, "size": 22}}, {"e_type": "Line_Weighted", "from_id": "B", "from_type": "V20", "to_id": "C", "to_type": "V20", "directed": false, "attributes": {"weight": -1, "size": -1}}, {"e_type": "Line_Weighted", "from_id": "E", "from_type": "V20", "to_id": "D", "to_type": "V20", "directed": false, "attributes": {"weight": 28, "size": 28}}, {"e_type": "Line_Weighted", "from_id": "R", "from_type": "V20", "to_id": "Q", "to_type": "V20", "directed": false, "attributes": {"weight": 25, "size": 25}}, {"e_type": "Line_Weighted", "from_id": "A", "from_type": "V20", "to_id": "B", "to_type": "V20", "directed": false, "attributes": {"weight": 5, "size": 5}}, {"e_type": "Line_Weighted", "from_id": "F", "from_type": "V20", "to_id": "G", "to_type": "V20", "directed": false, "attributes": {"weight": 4, "size": 4}}, {"e_type": "Line_Weighted", "from_id": "N", "from_type": "V20", "to_id": "M", "to_type": "V20", "directed": false, "attributes": {"weight": 17, "size": 17}}, {"e_type": "Line_Weighted", "from_id": "G", "from_type": "V20", "to_id": "H", "to_type": "V20", "directed": false, "attributes": {"weight": -10, "size": -10}}, {"e_type": "Line_Weighted", "from_id": "E", "from_type": "V20", "to_id": "F", "to_type": "V20", "directed": false, "attributes": {"weight": 43, "size": 43}}, {"e_type": "Line_Weighted", "from_id": "J", "from_type": "V20", "to_id": "K", "to_type": "V20", "directed": false, "attributes": {"weight": 52, "size": 52}}, {"e_type": "Line_Weighted", "from_id": "N", "from_type": "V20", "to_id": "O", "to_type": "V20", "directed": false, "attributes": {"weight": 31, "size": 31}}, {"e_type": "Line_Weighted", "from_id": "L", "from_type": "V20", "to_id": "K", "to_type": "V20", "directed": false, "attributes": {"weight": 0, "size": 0}}, {"e_type": "Line_Weighted", "from_id": "F", "from_type": "V20", "to_id": "E", "to_type": "V20", "directed": false, "attributes": {"weight": 43, "size": 43}}, {"e_type": "Line_Weighted", "from_id": "M", "from_type": "V20", "to_id": "L", "to_type": "V20", "directed": false, "attributes": {"weight": -12, "size": -12}}, {"e_type": "Line_Weighted", "from_id": "M", "from_type": "V20", "to_id": "N", "to_type": "V20", "directed": false, "attributes": {"weight": 17, "size": 17}}, {"e_type": "Line_Weighted", "from_id": "O", "from_type": "V20", "to_id": "N", "to_type": "V20", "directed": false, "attributes": {"weight": 31, "size": 31}}, {"e_type": "Line_Weighted", "from_id": "C", "from_type": "V20", "to_id": "B", "to_type": "V20", "directed": false, "attributes": {"weight": -1, "size": -1}}, {"e_type": "Line_Weighted", "from_id": "C", "from_type": "V20", "to_id": "D", "to_type": "V20", "directed": false, "attributes": {"weight": 7, "size": 7}}, {"e_type": "Line_Weighted", "from_id": "H", "from_type": "V20", "to_id": "G", "to_type": "V20", "directed": false, "attributes": {"weight": -10, "size": -10}}, {"e_type": "Line_Weighted", "from_id": "K", "from_type": "V20", "to_id": "J", "to_type": "V20", "directed": false, "attributes": {"weight": 52, "size": 52}}, {"e_type": "Line_Weighted", "from_id": "D", "from_type": "V20", "to_id": "C", "to_type": "V20", "directed": false, "attributes": {"weight": 7, "size": 7}}, {"e_type": "Line_Weighted", "from_id": "G", "from_type": "V20", "to_id": "F", "to_type": "V20", "directed": false, "attributes": {"weight": 4, "size": 4}}, {"e_type": "Line_Weighted", "from_id": "L", "from_type": "V20", "to_id": "M", "to_type": "V20", "directed": false, "attributes": {"weight": -12, "size": -12}}, {"e_type": "Line_Weighted", "from_id": "O", "from_type": "V20", "to_id": "P", "to_type": "V20", "directed": false, "attributes": {"weight": 2, "size": 2}}, {"e_type": "Line_Weighted", "from_id": "B", "from_type": "V20", "to_id": "A", "to_type": "V20", "directed": false, "attributes": {"weight": 5, "size": 5}}, {"e_type": "Line_Weighted", "from_id": "T", "from_type": "V20", "to_id": "S", "to_type": "V20", "directed": false, "attributes": {"weight": 15, "size": 15}}, {"e_type": "Line_Weighted", "from_id": "K", "from_type": "V20", "to_id": "L", "to_type": "V20", "directed": false, "attributes": {"weight": 0, "size": 0}}, {"e_type": "Line_Weighted", "from_id": "H", "from_type": "V20", "to_id": "I", "to_type": "V20", "directed": false, "attributes": {"weight": 8, "size": 8}}, {"e_type": "Line_Weighted", "from_id": "S", "from_type": "V20", "to_id": "T", "to_type": "V20", "directed": false, "attributes": {"weight": 15, "size": 15}}, {"e_type": "Line_Weighted", "from_id": "R", "from_type": "V20", "to_id": "S", "to_type": "V20", "directed": false, "attributes": {"weight": -8, "size": -8}}, {"e_type": "Line_Weighted", "from_id": "Q", "from_type": "V20", "to_id": "P", "to_type": "V20", "directed": false, "attributes": {"weight": 1, "size": 1}}, {"e_type": "Line_Weighted", "from_id": "S", "from_type": "V20", "to_id": "R", "to_type": "V20", "directed": false, "attributes": {"weight": -8, "size": -8}}, {"e_type": "Line_Weighted", "from_id": "Q", "from_type": "V20", "to_id": "R", "to_type": "V20", "directed": false, "attributes": {"weight": 25, "size": 25}}]}] \ No newline at end of file diff --git a/tests/data/baseline/graph_algorithms_baselines/path_finding/shortest_ss_no_wt/Ring.json b/tests/data/baseline/graph_algorithms_baselines/path_finding/shortest_ss_no_wt/Ring.json new file mode 100644 index 00000000..dfe3f7bd --- /dev/null +++ b/tests/data/baseline/graph_algorithms_baselines/path_finding/shortest_ss_no_wt/Ring.json @@ -0,0 +1 @@ +[{"ResultSet": [{"v_id": "Q", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 4, "ResultSet.@path_list": ["A", "T", "S", "R", "Q"]}}, {"v_id": "L", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 9, "ResultSet.@path_list": ["A", "T", "S", "R", "Q", "P", "O", "N", "M", "L"]}}, {"v_id": "M", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 8, "ResultSet.@path_list": ["A", "T", "S", "R", "Q", "P", "O", "N", "M"]}}, {"v_id": "N", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 7, "ResultSet.@path_list": ["A", "T", "S", "R", "Q", "P", "O", "N"]}}, {"v_id": "K", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 10, "ResultSet.@path_list": ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K"]}}, {"v_id": "S", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 2, "ResultSet.@path_list": ["A", "T", "S"]}}, {"v_id": "P", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 5, "ResultSet.@path_list": ["A", "T", "S", "R", "Q", "P"]}}, {"v_id": "F", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 5, "ResultSet.@path_list": ["A", "B", "C", "D", "E", "F"]}}, {"v_id": "I", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 8, "ResultSet.@path_list": ["A", "B", "C", "D", "E", "F", "G", "H", "I"]}}, {"v_id": "J", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 9, "ResultSet.@path_list": ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J"]}}, {"v_id": "T", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 1, "ResultSet.@path_list": ["A", "T"]}}, {"v_id": "B", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 1, "ResultSet.@path_list": ["A", "B"]}}, {"v_id": "H", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 7, "ResultSet.@path_list": ["A", "B", "C", "D", "E", "F", "G", "H"]}}, {"v_id": "G", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 6, "ResultSet.@path_list": ["A", "B", "C", "D", "E", "F", "G"]}}, {"v_id": "O", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 6, "ResultSet.@path_list": ["A", "T", "S", "R", "Q", "P", "O"]}}, {"v_id": "C", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 2, "ResultSet.@path_list": ["A", "B", "C"]}}, {"v_id": "R", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 3, "ResultSet.@path_list": ["A", "T", "S", "R"]}}, {"v_id": "A", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 0, "ResultSet.@path_list": ["A"]}}, {"v_id": "D", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 3, "ResultSet.@path_list": ["A", "B", "C", "D"]}}, {"v_id": "E", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 4, "ResultSet.@path_list": ["A", "B", "C", "D", "E"]}}]}, {"@@edge_set": [{"e_type": "Ring", "from_id": "D", "from_type": "V20", "to_id": "C", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Ring", "from_id": "E", "from_type": "V20", "to_id": "F", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Ring", "from_id": "D", "from_type": "V20", "to_id": "E", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Ring", "from_id": "P", "from_type": "V20", "to_id": "Q", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Ring", "from_id": "J", "from_type": "V20", "to_id": "K", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Ring", "from_id": "A", "from_type": "V20", "to_id": "B", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Ring", "from_id": "N", "from_type": "V20", "to_id": "O", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Ring", "from_id": "F", "from_type": "V20", "to_id": "G", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Ring", "from_id": "L", "from_type": "V20", "to_id": "M", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Ring", "from_id": "Q", "from_type": "V20", "to_id": "P", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Ring", "from_id": "C", "from_type": "V20", "to_id": "D", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Ring", "from_id": "J", "from_type": "V20", "to_id": "I", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Ring", "from_id": "Q", "from_type": "V20", "to_id": "R", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Ring", "from_id": "R", "from_type": "V20", "to_id": "Q", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Ring", "from_id": "A", "from_type": "V20", "to_id": "T", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Ring", "from_id": "T", "from_type": "V20", "to_id": "S", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Ring", "from_id": "G", "from_type": "V20", "to_id": "F", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Ring", "from_id": "L", "from_type": "V20", "to_id": "K", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Ring", "from_id": "R", "from_type": "V20", "to_id": "S", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Ring", "from_id": "B", "from_type": "V20", "to_id": "A", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Ring", "from_id": "T", "from_type": "V20", "to_id": "A", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Ring", "from_id": "O", "from_type": "V20", "to_id": "N", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Ring", "from_id": "I", "from_type": "V20", "to_id": "J", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Ring", "from_id": "F", "from_type": "V20", "to_id": "E", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Ring", "from_id": "B", "from_type": "V20", "to_id": "C", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Ring", "from_id": "M", "from_type": "V20", "to_id": "N", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Ring", "from_id": "O", "from_type": "V20", "to_id": "P", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Ring", "from_id": "H", "from_type": "V20", "to_id": "I", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Ring", "from_id": "E", "from_type": "V20", "to_id": "D", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Ring", "from_id": "I", "from_type": "V20", "to_id": "H", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Ring", "from_id": "M", "from_type": "V20", "to_id": "L", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Ring", "from_id": "P", "from_type": "V20", "to_id": "O", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Ring", "from_id": "S", "from_type": "V20", "to_id": "T", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Ring", "from_id": "S", "from_type": "V20", "to_id": "R", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Ring", "from_id": "K", "from_type": "V20", "to_id": "L", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Ring", "from_id": "N", "from_type": "V20", "to_id": "M", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Ring", "from_id": "C", "from_type": "V20", "to_id": "B", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Ring", "from_id": "K", "from_type": "V20", "to_id": "J", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Ring", "from_id": "G", "from_type": "V20", "to_id": "H", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Ring", "from_id": "H", "from_type": "V20", "to_id": "G", "to_type": "V20", "directed": false, "attributes": {}}]}] \ No newline at end of file diff --git a/tests/data/baseline/graph_algorithms_baselines/path_finding/shortest_ss_no_wt/Ring_Directed.json b/tests/data/baseline/graph_algorithms_baselines/path_finding/shortest_ss_no_wt/Ring_Directed.json new file mode 100644 index 00000000..fece6416 --- /dev/null +++ b/tests/data/baseline/graph_algorithms_baselines/path_finding/shortest_ss_no_wt/Ring_Directed.json @@ -0,0 +1 @@ +[{"ResultSet": [{"v_id": "Q", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 16, "ResultSet.@path_list": ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q"]}}, {"v_id": "L", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 11, "ResultSet.@path_list": ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L"]}}, {"v_id": "M", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 12, "ResultSet.@path_list": ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M"]}}, {"v_id": "N", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 13, "ResultSet.@path_list": ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N"]}}, {"v_id": "K", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 10, "ResultSet.@path_list": ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K"]}}, {"v_id": "T", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 19, "ResultSet.@path_list": ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T"]}}, {"v_id": "I", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 8, "ResultSet.@path_list": ["A", "B", "C", "D", "E", "F", "G", "H", "I"]}}, {"v_id": "D", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 3, "ResultSet.@path_list": ["A", "B", "C", "D"]}}, {"v_id": "E", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 4, "ResultSet.@path_list": ["A", "B", "C", "D", "E"]}}, {"v_id": "F", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 5, "ResultSet.@path_list": ["A", "B", "C", "D", "E", "F"]}}, {"v_id": "J", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 9, "ResultSet.@path_list": ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J"]}}, {"v_id": "H", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 7, "ResultSet.@path_list": ["A", "B", "C", "D", "E", "F", "G", "H"]}}, {"v_id": "G", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 6, "ResultSet.@path_list": ["A", "B", "C", "D", "E", "F", "G"]}}, {"v_id": "B", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 1, "ResultSet.@path_list": ["A", "B"]}}, {"v_id": "R", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 17, "ResultSet.@path_list": ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R"]}}, {"v_id": "A", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 0, "ResultSet.@path_list": ["A"]}}, {"v_id": "P", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 15, "ResultSet.@path_list": ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P"]}}, {"v_id": "S", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 18, "ResultSet.@path_list": ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S"]}}, {"v_id": "O", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 14, "ResultSet.@path_list": ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O"]}}, {"v_id": "C", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 2, "ResultSet.@path_list": ["A", "B", "C"]}}]}, {"@@edge_set": [{"e_type": "Ring_Directed", "from_id": "R", "from_type": "V20", "to_id": "S", "to_type": "V20", "directed": true, "attributes": {}}, {"e_type": "Ring_Directed", "from_id": "A", "from_type": "V20", "to_id": "B", "to_type": "V20", "directed": true, "attributes": {}}, {"e_type": "Ring_Directed", "from_id": "G", "from_type": "V20", "to_id": "H", "to_type": "V20", "directed": true, "attributes": {}}, {"e_type": "Ring_Directed", "from_id": "H", "from_type": "V20", "to_id": "I", "to_type": "V20", "directed": true, "attributes": {}}, {"e_type": "Ring_Directed", "from_id": "B", "from_type": "V20", "to_id": "C", "to_type": "V20", "directed": true, "attributes": {}}, {"e_type": "Ring_Directed", "from_id": "O", "from_type": "V20", "to_id": "P", "to_type": "V20", "directed": true, "attributes": {}}, {"e_type": "Ring_Directed", "from_id": "T", "from_type": "V20", "to_id": "A", "to_type": "V20", "directed": true, "attributes": {}}, {"e_type": "Ring_Directed", "from_id": "E", "from_type": "V20", "to_id": "F", "to_type": "V20", "directed": true, "attributes": {}}, {"e_type": "Ring_Directed", "from_id": "M", "from_type": "V20", "to_id": "N", "to_type": "V20", "directed": true, "attributes": {}}, {"e_type": "Ring_Directed", "from_id": "K", "from_type": "V20", "to_id": "L", "to_type": "V20", "directed": true, "attributes": {}}, {"e_type": "Ring_Directed", "from_id": "P", "from_type": "V20", "to_id": "Q", "to_type": "V20", "directed": true, "attributes": {}}, {"e_type": "Ring_Directed", "from_id": "N", "from_type": "V20", "to_id": "O", "to_type": "V20", "directed": true, "attributes": {}}, {"e_type": "Ring_Directed", "from_id": "J", "from_type": "V20", "to_id": "K", "to_type": "V20", "directed": true, "attributes": {}}, {"e_type": "Ring_Directed", "from_id": "D", "from_type": "V20", "to_id": "E", "to_type": "V20", "directed": true, "attributes": {}}, {"e_type": "Ring_Directed", "from_id": "F", "from_type": "V20", "to_id": "G", "to_type": "V20", "directed": true, "attributes": {}}, {"e_type": "Ring_Directed", "from_id": "Q", "from_type": "V20", "to_id": "R", "to_type": "V20", "directed": true, "attributes": {}}, {"e_type": "Ring_Directed", "from_id": "I", "from_type": "V20", "to_id": "J", "to_type": "V20", "directed": true, "attributes": {}}, {"e_type": "Ring_Directed", "from_id": "C", "from_type": "V20", "to_id": "D", "to_type": "V20", "directed": true, "attributes": {}}, {"e_type": "Ring_Directed", "from_id": "L", "from_type": "V20", "to_id": "M", "to_type": "V20", "directed": true, "attributes": {}}, {"e_type": "Ring_Directed", "from_id": "S", "from_type": "V20", "to_id": "T", "to_type": "V20", "directed": true, "attributes": {}}]}] \ No newline at end of file diff --git a/tests/data/baseline/graph_algorithms_baselines/path_finding/shortest_ss_no_wt/Tree.json b/tests/data/baseline/graph_algorithms_baselines/path_finding/shortest_ss_no_wt/Tree.json new file mode 100644 index 00000000..bfac0c86 --- /dev/null +++ b/tests/data/baseline/graph_algorithms_baselines/path_finding/shortest_ss_no_wt/Tree.json @@ -0,0 +1 @@ +[{"ResultSet": [{"v_id": "Q", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 4, "ResultSet.@path_list": ["A", "B", "D", "H", "Q"]}}, {"v_id": "L", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 3, "ResultSet.@path_list": ["A", "C", "F", "L"]}}, {"v_id": "M", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 3, "ResultSet.@path_list": ["A", "C", "F", "M"]}}, {"v_id": "N", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 3, "ResultSet.@path_list": ["A", "C", "G", "N"]}}, {"v_id": "T", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 4, "ResultSet.@path_list": ["A", "B", "E", "J", "T"]}}, {"v_id": "S", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 4, "ResultSet.@path_list": ["A", "B", "D", "I", "S"]}}, {"v_id": "H", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 3, "ResultSet.@path_list": ["A", "B", "D", "H"]}}, {"v_id": "D", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 2, "ResultSet.@path_list": ["A", "B", "D"]}}, {"v_id": "I", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 3, "ResultSet.@path_list": ["A", "B", "D", "I"]}}, {"v_id": "F", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 2, "ResultSet.@path_list": ["A", "C", "F"]}}, {"v_id": "J", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 3, "ResultSet.@path_list": ["A", "B", "E", "J"]}}, {"v_id": "B", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 1, "ResultSet.@path_list": ["A", "B"]}}, {"v_id": "G", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 2, "ResultSet.@path_list": ["A", "C", "G"]}}, {"v_id": "P", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 4, "ResultSet.@path_list": ["A", "B", "D", "H", "P"]}}, {"v_id": "R", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 4, "ResultSet.@path_list": ["A", "B", "D", "I", "R"]}}, {"v_id": "A", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 0, "ResultSet.@path_list": ["A"]}}, {"v_id": "E", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 2, "ResultSet.@path_list": ["A", "B", "E"]}}, {"v_id": "K", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 3, "ResultSet.@path_list": ["A", "B", "E", "K"]}}, {"v_id": "O", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 3, "ResultSet.@path_list": ["A", "C", "G", "O"]}}, {"v_id": "C", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 1, "ResultSet.@path_list": ["A", "C"]}}]}, {"@@edge_set": [{"e_type": "Tree", "from_id": "D", "from_type": "V20", "to_id": "B", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Tree", "from_id": "E", "from_type": "V20", "to_id": "J", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Tree", "from_id": "E", "from_type": "V20", "to_id": "B", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Tree", "from_id": "C", "from_type": "V20", "to_id": "F", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Tree", "from_id": "C", "from_type": "V20", "to_id": "G", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Tree", "from_id": "A", "from_type": "V20", "to_id": "B", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Tree", "from_id": "A", "from_type": "V20", "to_id": "C", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Tree", "from_id": "S", "from_type": "V20", "to_id": "I", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Tree", "from_id": "F", "from_type": "V20", "to_id": "C", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Tree", "from_id": "F", "from_type": "V20", "to_id": "M", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Tree", "from_id": "F", "from_type": "V20", "to_id": "L", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Tree", "from_id": "J", "from_type": "V20", "to_id": "E", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Tree", "from_id": "J", "from_type": "V20", "to_id": "T", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Tree", "from_id": "H", "from_type": "V20", "to_id": "P", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Tree", "from_id": "H", "from_type": "V20", "to_id": "Q", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Tree", "from_id": "O", "from_type": "V20", "to_id": "G", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Tree", "from_id": "B", "from_type": "V20", "to_id": "A", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Tree", "from_id": "G", "from_type": "V20", "to_id": "N", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Tree", "from_id": "D", "from_type": "V20", "to_id": "H", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Tree", "from_id": "G", "from_type": "V20", "to_id": "O", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Tree", "from_id": "D", "from_type": "V20", "to_id": "I", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Tree", "from_id": "T", "from_type": "V20", "to_id": "J", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Tree", "from_id": "H", "from_type": "V20", "to_id": "D", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Tree", "from_id": "P", "from_type": "V20", "to_id": "H", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Tree", "from_id": "Q", "from_type": "V20", "to_id": "H", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Tree", "from_id": "L", "from_type": "V20", "to_id": "F", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Tree", "from_id": "K", "from_type": "V20", "to_id": "E", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Tree", "from_id": "G", "from_type": "V20", "to_id": "C", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Tree", "from_id": "I", "from_type": "V20", "to_id": "R", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Tree", "from_id": "B", "from_type": "V20", "to_id": "D", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Tree", "from_id": "E", "from_type": "V20", "to_id": "K", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Tree", "from_id": "R", "from_type": "V20", "to_id": "I", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Tree", "from_id": "I", "from_type": "V20", "to_id": "S", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Tree", "from_id": "I", "from_type": "V20", "to_id": "D", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Tree", "from_id": "B", "from_type": "V20", "to_id": "E", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Tree", "from_id": "C", "from_type": "V20", "to_id": "A", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Tree", "from_id": "N", "from_type": "V20", "to_id": "G", "to_type": "V20", "directed": false, "attributes": {}}, {"e_type": "Tree", "from_id": "M", "from_type": "V20", "to_id": "F", "to_type": "V20", "directed": false, "attributes": {}}]}] \ No newline at end of file diff --git a/tests/data/baseline/graph_algorithms_baselines/path_finding/shortest_ss_no_wt/Tree_Directed.json b/tests/data/baseline/graph_algorithms_baselines/path_finding/shortest_ss_no_wt/Tree_Directed.json new file mode 100644 index 00000000..dc888254 --- /dev/null +++ b/tests/data/baseline/graph_algorithms_baselines/path_finding/shortest_ss_no_wt/Tree_Directed.json @@ -0,0 +1 @@ +[{"ResultSet": [{"v_id": "Q", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 4, "ResultSet.@path_list": ["A", "B", "D", "H", "Q"]}}, {"v_id": "L", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 3, "ResultSet.@path_list": ["A", "C", "F", "L"]}}, {"v_id": "M", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 3, "ResultSet.@path_list": ["A", "C", "F", "M"]}}, {"v_id": "N", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 3, "ResultSet.@path_list": ["A", "C", "G", "N"]}}, {"v_id": "K", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 3, "ResultSet.@path_list": ["A", "B", "E", "K"]}}, {"v_id": "P", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 4, "ResultSet.@path_list": ["A", "B", "D", "H", "P"]}}, {"v_id": "I", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 3, "ResultSet.@path_list": ["A", "B", "D", "I"]}}, {"v_id": "H", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 3, "ResultSet.@path_list": ["A", "B", "D", "H"]}}, {"v_id": "G", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 2, "ResultSet.@path_list": ["A", "C", "G"]}}, {"v_id": "T", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 4, "ResultSet.@path_list": ["A", "B", "E", "J", "T"]}}, {"v_id": "B", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 1, "ResultSet.@path_list": ["A", "B"]}}, {"v_id": "O", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 3, "ResultSet.@path_list": ["A", "C", "G", "O"]}}, {"v_id": "C", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 1, "ResultSet.@path_list": ["A", "C"]}}, {"v_id": "F", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 2, "ResultSet.@path_list": ["A", "C", "F"]}}, {"v_id": "J", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 3, "ResultSet.@path_list": ["A", "B", "E", "J"]}}, {"v_id": "S", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 4, "ResultSet.@path_list": ["A", "B", "D", "I", "S"]}}, {"v_id": "D", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 2, "ResultSet.@path_list": ["A", "B", "D"]}}, {"v_id": "E", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 2, "ResultSet.@path_list": ["A", "B", "E"]}}, {"v_id": "R", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 4, "ResultSet.@path_list": ["A", "B", "D", "I", "R"]}}, {"v_id": "A", "v_type": "V20", "attributes": {"ResultSet.@min_dis": 0, "ResultSet.@path_list": ["A"]}}]}, {"@@edge_set": [{"e_type": "Tree_Directed", "from_id": "D", "from_type": "V20", "to_id": "H", "to_type": "V20", "directed": true, "attributes": {}}, {"e_type": "Tree_Directed", "from_id": "E", "from_type": "V20", "to_id": "K", "to_type": "V20", "directed": true, "attributes": {}}, {"e_type": "Tree_Directed", "from_id": "E", "from_type": "V20", "to_id": "J", "to_type": "V20", "directed": true, "attributes": {}}, {"e_type": "Tree_Directed", "from_id": "A", "from_type": "V20", "to_id": "B", "to_type": "V20", "directed": true, "attributes": {}}, {"e_type": "Tree_Directed", "from_id": "H", "from_type": "V20", "to_id": "Q", "to_type": "V20", "directed": true, "attributes": {}}, {"e_type": "Tree_Directed", "from_id": "A", "from_type": "V20", "to_id": "C", "to_type": "V20", "directed": true, "attributes": {}}, {"e_type": "Tree_Directed", "from_id": "B", "from_type": "V20", "to_id": "E", "to_type": "V20", "directed": true, "attributes": {}}, {"e_type": "Tree_Directed", "from_id": "I", "from_type": "V20", "to_id": "R", "to_type": "V20", "directed": true, "attributes": {}}, {"e_type": "Tree_Directed", "from_id": "I", "from_type": "V20", "to_id": "S", "to_type": "V20", "directed": true, "attributes": {}}, {"e_type": "Tree_Directed", "from_id": "H", "from_type": "V20", "to_id": "P", "to_type": "V20", "directed": true, "attributes": {}}, {"e_type": "Tree_Directed", "from_id": "F", "from_type": "V20", "to_id": "M", "to_type": "V20", "directed": true, "attributes": {}}, {"e_type": "Tree_Directed", "from_id": "G", "from_type": "V20", "to_id": "O", "to_type": "V20", "directed": true, "attributes": {}}, {"e_type": "Tree_Directed", "from_id": "G", "from_type": "V20", "to_id": "N", "to_type": "V20", "directed": true, "attributes": {}}, {"e_type": "Tree_Directed", "from_id": "B", "from_type": "V20", "to_id": "D", "to_type": "V20", "directed": true, "attributes": {}}, {"e_type": "Tree_Directed", "from_id": "C", "from_type": "V20", "to_id": "G", "to_type": "V20", "directed": true, "attributes": {}}, {"e_type": "Tree_Directed", "from_id": "F", "from_type": "V20", "to_id": "L", "to_type": "V20", "directed": true, "attributes": {}}, {"e_type": "Tree_Directed", "from_id": "D", "from_type": "V20", "to_id": "I", "to_type": "V20", "directed": true, "attributes": {}}, {"e_type": "Tree_Directed", "from_id": "C", "from_type": "V20", "to_id": "F", "to_type": "V20", "directed": true, "attributes": {}}, {"e_type": "Tree_Directed", "from_id": "J", "from_type": "V20", "to_id": "T", "to_type": "V20", "directed": true, "attributes": {}}]}] \ No newline at end of file diff --git a/tests/data/baseline/graph_algorithms_baselines/topological_link_prediction/adamic_adar/topo_link1.json b/tests/data/baseline/graph_algorithms_baselines/topological_link_prediction/adamic_adar/topo_link1.json new file mode 100644 index 00000000..4a49c981 --- /dev/null +++ b/tests/data/baseline/graph_algorithms_baselines/topological_link_prediction/adamic_adar/topo_link1.json @@ -0,0 +1 @@ +[{"@@sum_closeness": 0}] \ No newline at end of file diff --git a/tests/data/baseline/graph_algorithms_baselines/topological_link_prediction/adamic_adar/topo_link2.json b/tests/data/baseline/graph_algorithms_baselines/topological_link_prediction/adamic_adar/topo_link2.json new file mode 100644 index 00000000..ccb34a78 --- /dev/null +++ b/tests/data/baseline/graph_algorithms_baselines/topological_link_prediction/adamic_adar/topo_link2.json @@ -0,0 +1 @@ +[{"@@sum_closeness": 3.321928024291992}] \ No newline at end of file diff --git a/tests/data/baseline/graph_algorithms_baselines/topological_link_prediction/adamic_adar/topo_link3.json b/tests/data/baseline/graph_algorithms_baselines/topological_link_prediction/adamic_adar/topo_link3.json new file mode 100644 index 00000000..2786671c --- /dev/null +++ b/tests/data/baseline/graph_algorithms_baselines/topological_link_prediction/adamic_adar/topo_link3.json @@ -0,0 +1 @@ +[{"@@sum_closeness": 9.965784072875977}] \ No newline at end of file diff --git a/tests/data/baseline/graph_algorithms_baselines/topological_link_prediction/adamic_adar/topo_link4.json b/tests/data/baseline/graph_algorithms_baselines/topological_link_prediction/adamic_adar/topo_link4.json new file mode 100644 index 00000000..4a49c981 --- /dev/null +++ b/tests/data/baseline/graph_algorithms_baselines/topological_link_prediction/adamic_adar/topo_link4.json @@ -0,0 +1 @@ +[{"@@sum_closeness": 0}] \ No newline at end of file diff --git a/tests/data/baseline/graph_algorithms_baselines/topological_link_prediction/adamic_adar/topo_link5.json b/tests/data/baseline/graph_algorithms_baselines/topological_link_prediction/adamic_adar/topo_link5.json new file mode 100644 index 00000000..4a49c981 --- /dev/null +++ b/tests/data/baseline/graph_algorithms_baselines/topological_link_prediction/adamic_adar/topo_link5.json @@ -0,0 +1 @@ +[{"@@sum_closeness": 0}] \ No newline at end of file diff --git a/tests/data/baseline/graph_algorithms_baselines/topological_link_prediction/adamic_adar/topo_link6.json b/tests/data/baseline/graph_algorithms_baselines/topological_link_prediction/adamic_adar/topo_link6.json new file mode 100644 index 00000000..4a49c981 --- /dev/null +++ b/tests/data/baseline/graph_algorithms_baselines/topological_link_prediction/adamic_adar/topo_link6.json @@ -0,0 +1 @@ +[{"@@sum_closeness": 0}] \ No newline at end of file diff --git a/tests/data/baseline/graph_algorithms_baselines/topological_link_prediction/adamic_adar/topo_link_directed.json b/tests/data/baseline/graph_algorithms_baselines/topological_link_prediction/adamic_adar/topo_link_directed.json new file mode 100644 index 00000000..4a49c981 --- /dev/null +++ b/tests/data/baseline/graph_algorithms_baselines/topological_link_prediction/adamic_adar/topo_link_directed.json @@ -0,0 +1 @@ +[{"@@sum_closeness": 0}] \ No newline at end of file diff --git a/tests/data/baseline/graph_algorithms_baselines/topological_link_prediction/common_neighbors/topo_link1.json b/tests/data/baseline/graph_algorithms_baselines/topological_link_prediction/common_neighbors/topo_link1.json new file mode 100644 index 00000000..9bbf7fad --- /dev/null +++ b/tests/data/baseline/graph_algorithms_baselines/topological_link_prediction/common_neighbors/topo_link1.json @@ -0,0 +1 @@ +[{"closeness": 0}] \ No newline at end of file diff --git a/tests/data/baseline/graph_algorithms_baselines/topological_link_prediction/common_neighbors/topo_link2.json b/tests/data/baseline/graph_algorithms_baselines/topological_link_prediction/common_neighbors/topo_link2.json new file mode 100644 index 00000000..a7b40c7a --- /dev/null +++ b/tests/data/baseline/graph_algorithms_baselines/topological_link_prediction/common_neighbors/topo_link2.json @@ -0,0 +1 @@ +[{"closeness": 1}] \ No newline at end of file diff --git a/tests/data/baseline/graph_algorithms_baselines/topological_link_prediction/common_neighbors/topo_link3.json b/tests/data/baseline/graph_algorithms_baselines/topological_link_prediction/common_neighbors/topo_link3.json new file mode 100644 index 00000000..55112f06 --- /dev/null +++ b/tests/data/baseline/graph_algorithms_baselines/topological_link_prediction/common_neighbors/topo_link3.json @@ -0,0 +1 @@ +[{"closeness": 3}] \ No newline at end of file diff --git a/tests/data/baseline/graph_algorithms_baselines/topological_link_prediction/common_neighbors/topo_link4.json b/tests/data/baseline/graph_algorithms_baselines/topological_link_prediction/common_neighbors/topo_link4.json new file mode 100644 index 00000000..9bbf7fad --- /dev/null +++ b/tests/data/baseline/graph_algorithms_baselines/topological_link_prediction/common_neighbors/topo_link4.json @@ -0,0 +1 @@ +[{"closeness": 0}] \ No newline at end of file diff --git a/tests/data/baseline/graph_algorithms_baselines/topological_link_prediction/common_neighbors/topo_link5.json b/tests/data/baseline/graph_algorithms_baselines/topological_link_prediction/common_neighbors/topo_link5.json new file mode 100644 index 00000000..9bbf7fad --- /dev/null +++ b/tests/data/baseline/graph_algorithms_baselines/topological_link_prediction/common_neighbors/topo_link5.json @@ -0,0 +1 @@ +[{"closeness": 0}] \ No newline at end of file diff --git a/tests/data/baseline/graph_algorithms_baselines/topological_link_prediction/common_neighbors/topo_link6.json b/tests/data/baseline/graph_algorithms_baselines/topological_link_prediction/common_neighbors/topo_link6.json new file mode 100644 index 00000000..9bbf7fad --- /dev/null +++ b/tests/data/baseline/graph_algorithms_baselines/topological_link_prediction/common_neighbors/topo_link6.json @@ -0,0 +1 @@ +[{"closeness": 0}] \ No newline at end of file diff --git a/tests/data/baseline/graph_algorithms_baselines/topological_link_prediction/common_neighbors/topo_link_directed.json b/tests/data/baseline/graph_algorithms_baselines/topological_link_prediction/common_neighbors/topo_link_directed.json new file mode 100644 index 00000000..a7b40c7a --- /dev/null +++ b/tests/data/baseline/graph_algorithms_baselines/topological_link_prediction/common_neighbors/topo_link_directed.json @@ -0,0 +1 @@ +[{"closeness": 1}] \ No newline at end of file diff --git a/tests/data/baseline/graph_algorithms_baselines/topological_link_prediction/preferential_attachment/topo_link1.json b/tests/data/baseline/graph_algorithms_baselines/topological_link_prediction/preferential_attachment/topo_link1.json new file mode 100644 index 00000000..63b3c255 --- /dev/null +++ b/tests/data/baseline/graph_algorithms_baselines/topological_link_prediction/preferential_attachment/topo_link1.json @@ -0,0 +1 @@ +[{"closeness": 6}] \ No newline at end of file diff --git a/tests/data/baseline/graph_algorithms_baselines/topological_link_prediction/preferential_attachment/topo_link2.json b/tests/data/baseline/graph_algorithms_baselines/topological_link_prediction/preferential_attachment/topo_link2.json new file mode 100644 index 00000000..84f3fd14 --- /dev/null +++ b/tests/data/baseline/graph_algorithms_baselines/topological_link_prediction/preferential_attachment/topo_link2.json @@ -0,0 +1 @@ +[{"closeness": 9}] \ No newline at end of file diff --git a/tests/data/baseline/graph_algorithms_baselines/topological_link_prediction/preferential_attachment/topo_link3.json b/tests/data/baseline/graph_algorithms_baselines/topological_link_prediction/preferential_attachment/topo_link3.json new file mode 100644 index 00000000..8d3a4e42 --- /dev/null +++ b/tests/data/baseline/graph_algorithms_baselines/topological_link_prediction/preferential_attachment/topo_link3.json @@ -0,0 +1 @@ +[{"closeness": 20}] \ No newline at end of file diff --git a/tests/data/baseline/graph_algorithms_baselines/topological_link_prediction/preferential_attachment/topo_link4.json b/tests/data/baseline/graph_algorithms_baselines/topological_link_prediction/preferential_attachment/topo_link4.json new file mode 100644 index 00000000..9bbf7fad --- /dev/null +++ b/tests/data/baseline/graph_algorithms_baselines/topological_link_prediction/preferential_attachment/topo_link4.json @@ -0,0 +1 @@ +[{"closeness": 0}] \ No newline at end of file diff --git a/tests/data/baseline/graph_algorithms_baselines/topological_link_prediction/preferential_attachment/topo_link5.json b/tests/data/baseline/graph_algorithms_baselines/topological_link_prediction/preferential_attachment/topo_link5.json new file mode 100644 index 00000000..a7b40c7a --- /dev/null +++ b/tests/data/baseline/graph_algorithms_baselines/topological_link_prediction/preferential_attachment/topo_link5.json @@ -0,0 +1 @@ +[{"closeness": 1}] \ No newline at end of file diff --git a/tests/data/baseline/graph_algorithms_baselines/topological_link_prediction/preferential_attachment/topo_link6.json b/tests/data/baseline/graph_algorithms_baselines/topological_link_prediction/preferential_attachment/topo_link6.json new file mode 100644 index 00000000..9bbf7fad --- /dev/null +++ b/tests/data/baseline/graph_algorithms_baselines/topological_link_prediction/preferential_attachment/topo_link6.json @@ -0,0 +1 @@ +[{"closeness": 0}] \ No newline at end of file diff --git a/tests/data/baseline/graph_algorithms_baselines/topological_link_prediction/preferential_attachment/topo_link_directed.json b/tests/data/baseline/graph_algorithms_baselines/topological_link_prediction/preferential_attachment/topo_link_directed.json new file mode 100644 index 00000000..864923d2 --- /dev/null +++ b/tests/data/baseline/graph_algorithms_baselines/topological_link_prediction/preferential_attachment/topo_link_directed.json @@ -0,0 +1 @@ +[{"closeness": 12}] \ No newline at end of file diff --git a/tests/data/baseline/graph_algorithms_baselines/topological_link_prediction/resource_allocation/topo_link1.json b/tests/data/baseline/graph_algorithms_baselines/topological_link_prediction/resource_allocation/topo_link1.json new file mode 100644 index 00000000..4a49c981 --- /dev/null +++ b/tests/data/baseline/graph_algorithms_baselines/topological_link_prediction/resource_allocation/topo_link1.json @@ -0,0 +1 @@ +[{"@@sum_closeness": 0}] \ No newline at end of file diff --git a/tests/data/baseline/graph_algorithms_baselines/topological_link_prediction/resource_allocation/topo_link2.json b/tests/data/baseline/graph_algorithms_baselines/topological_link_prediction/resource_allocation/topo_link2.json new file mode 100644 index 00000000..dc0936ff --- /dev/null +++ b/tests/data/baseline/graph_algorithms_baselines/topological_link_prediction/resource_allocation/topo_link2.json @@ -0,0 +1 @@ +[{"@@sum_closeness": 0.5}] \ No newline at end of file diff --git a/tests/data/baseline/graph_algorithms_baselines/topological_link_prediction/resource_allocation/topo_link3.json b/tests/data/baseline/graph_algorithms_baselines/topological_link_prediction/resource_allocation/topo_link3.json new file mode 100644 index 00000000..d76af2d9 --- /dev/null +++ b/tests/data/baseline/graph_algorithms_baselines/topological_link_prediction/resource_allocation/topo_link3.json @@ -0,0 +1 @@ +[{"@@sum_closeness": 1.5}] \ No newline at end of file diff --git a/tests/data/baseline/graph_algorithms_baselines/topological_link_prediction/resource_allocation/topo_link4.json b/tests/data/baseline/graph_algorithms_baselines/topological_link_prediction/resource_allocation/topo_link4.json new file mode 100644 index 00000000..4a49c981 --- /dev/null +++ b/tests/data/baseline/graph_algorithms_baselines/topological_link_prediction/resource_allocation/topo_link4.json @@ -0,0 +1 @@ +[{"@@sum_closeness": 0}] \ No newline at end of file diff --git a/tests/data/baseline/graph_algorithms_baselines/topological_link_prediction/resource_allocation/topo_link5.json b/tests/data/baseline/graph_algorithms_baselines/topological_link_prediction/resource_allocation/topo_link5.json new file mode 100644 index 00000000..4a49c981 --- /dev/null +++ b/tests/data/baseline/graph_algorithms_baselines/topological_link_prediction/resource_allocation/topo_link5.json @@ -0,0 +1 @@ +[{"@@sum_closeness": 0}] \ No newline at end of file diff --git a/tests/data/baseline/graph_algorithms_baselines/topological_link_prediction/resource_allocation/topo_link6.json b/tests/data/baseline/graph_algorithms_baselines/topological_link_prediction/resource_allocation/topo_link6.json new file mode 100644 index 00000000..4a49c981 --- /dev/null +++ b/tests/data/baseline/graph_algorithms_baselines/topological_link_prediction/resource_allocation/topo_link6.json @@ -0,0 +1 @@ +[{"@@sum_closeness": 0}] \ No newline at end of file diff --git a/tests/data/baseline/graph_algorithms_baselines/topological_link_prediction/resource_allocation/topo_link_directed.json b/tests/data/baseline/graph_algorithms_baselines/topological_link_prediction/resource_allocation/topo_link_directed.json new file mode 100644 index 00000000..4a49c981 --- /dev/null +++ b/tests/data/baseline/graph_algorithms_baselines/topological_link_prediction/resource_allocation/topo_link_directed.json @@ -0,0 +1 @@ +[{"@@sum_closeness": 0}] \ No newline at end of file diff --git a/tests/data/baseline/graph_algorithms_baselines/topological_link_prediction/same_community/test1.json b/tests/data/baseline/graph_algorithms_baselines/topological_link_prediction/same_community/test1.json new file mode 100644 index 00000000..d2deb154 --- /dev/null +++ b/tests/data/baseline/graph_algorithms_baselines/topological_link_prediction/same_community/test1.json @@ -0,0 +1 @@ +[{"0": 0}] \ No newline at end of file diff --git a/tests/data/baseline/graph_algorithms_baselines/topological_link_prediction/same_community/test2.json b/tests/data/baseline/graph_algorithms_baselines/topological_link_prediction/same_community/test2.json new file mode 100644 index 00000000..4914ed7c --- /dev/null +++ b/tests/data/baseline/graph_algorithms_baselines/topological_link_prediction/same_community/test2.json @@ -0,0 +1 @@ +[{"1": 1}] \ No newline at end of file diff --git a/tests/data/baseline/graph_algorithms_baselines/topological_link_prediction/same_community/test3.json b/tests/data/baseline/graph_algorithms_baselines/topological_link_prediction/same_community/test3.json new file mode 100644 index 00000000..d2deb154 --- /dev/null +++ b/tests/data/baseline/graph_algorithms_baselines/topological_link_prediction/same_community/test3.json @@ -0,0 +1 @@ +[{"0": 0}] \ No newline at end of file diff --git a/tests/data/baseline/graph_algorithms_baselines/topological_link_prediction/same_community/test4.json b/tests/data/baseline/graph_algorithms_baselines/topological_link_prediction/same_community/test4.json new file mode 100644 index 00000000..4914ed7c --- /dev/null +++ b/tests/data/baseline/graph_algorithms_baselines/topological_link_prediction/same_community/test4.json @@ -0,0 +1 @@ +[{"1": 1}] \ No newline at end of file diff --git a/tests/data/baseline/graph_algorithms_baselines/topological_link_prediction/total_neighbors/topo_link1.json b/tests/data/baseline/graph_algorithms_baselines/topological_link_prediction/total_neighbors/topo_link1.json new file mode 100644 index 00000000..08b8bb62 --- /dev/null +++ b/tests/data/baseline/graph_algorithms_baselines/topological_link_prediction/total_neighbors/topo_link1.json @@ -0,0 +1 @@ +[{"closeness": 5}] \ No newline at end of file diff --git a/tests/data/baseline/graph_algorithms_baselines/topological_link_prediction/total_neighbors/topo_link2.json b/tests/data/baseline/graph_algorithms_baselines/topological_link_prediction/total_neighbors/topo_link2.json new file mode 100644 index 00000000..08b8bb62 --- /dev/null +++ b/tests/data/baseline/graph_algorithms_baselines/topological_link_prediction/total_neighbors/topo_link2.json @@ -0,0 +1 @@ +[{"closeness": 5}] \ No newline at end of file diff --git a/tests/data/baseline/graph_algorithms_baselines/topological_link_prediction/total_neighbors/topo_link3.json b/tests/data/baseline/graph_algorithms_baselines/topological_link_prediction/total_neighbors/topo_link3.json new file mode 100644 index 00000000..63b3c255 --- /dev/null +++ b/tests/data/baseline/graph_algorithms_baselines/topological_link_prediction/total_neighbors/topo_link3.json @@ -0,0 +1 @@ +[{"closeness": 6}] \ No newline at end of file diff --git a/tests/data/baseline/graph_algorithms_baselines/topological_link_prediction/total_neighbors/topo_link4.json b/tests/data/baseline/graph_algorithms_baselines/topological_link_prediction/total_neighbors/topo_link4.json new file mode 100644 index 00000000..08b8bb62 --- /dev/null +++ b/tests/data/baseline/graph_algorithms_baselines/topological_link_prediction/total_neighbors/topo_link4.json @@ -0,0 +1 @@ +[{"closeness": 5}] \ No newline at end of file diff --git a/tests/data/baseline/graph_algorithms_baselines/topological_link_prediction/total_neighbors/topo_link5.json b/tests/data/baseline/graph_algorithms_baselines/topological_link_prediction/total_neighbors/topo_link5.json new file mode 100644 index 00000000..7e8f83ec --- /dev/null +++ b/tests/data/baseline/graph_algorithms_baselines/topological_link_prediction/total_neighbors/topo_link5.json @@ -0,0 +1 @@ +[{"closeness": 2}] \ No newline at end of file diff --git a/tests/data/baseline/graph_algorithms_baselines/topological_link_prediction/total_neighbors/topo_link6.json b/tests/data/baseline/graph_algorithms_baselines/topological_link_prediction/total_neighbors/topo_link6.json new file mode 100644 index 00000000..9bbf7fad --- /dev/null +++ b/tests/data/baseline/graph_algorithms_baselines/topological_link_prediction/total_neighbors/topo_link6.json @@ -0,0 +1 @@ +[{"closeness": 0}] \ No newline at end of file diff --git a/tests/data/baseline/graph_algorithms_baselines/topological_link_prediction/total_neighbors/topo_link_directed.json b/tests/data/baseline/graph_algorithms_baselines/topological_link_prediction/total_neighbors/topo_link_directed.json new file mode 100644 index 00000000..63b3c255 --- /dev/null +++ b/tests/data/baseline/graph_algorithms_baselines/topological_link_prediction/total_neighbors/topo_link_directed.json @@ -0,0 +1 @@ +[{"closeness": 6}] \ No newline at end of file diff --git a/tests/run.sh b/tests/run.sh index df88fcc5..374ddd55 100755 --- a/tests/run.sh +++ b/tests/run.sh @@ -1,4 +1,4 @@ clear -python test/setup.py && +# python test/setup.py && pytest # pytest --junitxml "output.xml" #-n 4 diff --git a/tests/test/test_centrality.py b/tests/test/test_centrality.py index 1b376db6..cb1ed766 100644 --- a/tests/test/test_centrality.py +++ b/tests/test/test_centrality.py @@ -1,16 +1,15 @@ import json import os -import httpx import pytest import util class TestCentrality: feat = util.get_featurizer() - base_url = os.environ["TG_DATA"] # undirected graphs - graph_types1 = ["Empty", "Line", "Ring", "Hub_Spoke", "Tree"] + # graph_types1 = ["Empty", "Line", "Ring", "Hub_Spoke", "Tree"] + graph_types1 = ["Line"] # directed graphs graph_types2 = [ "Line_Directed", @@ -46,10 +45,22 @@ def test_degree_centrality1(self, test_name): "result_attribute": "", "file_path": "", } - url = os.path.join(self.base_url, "degree_centrality/", test_name + ".json") - baseline = httpx.get(url).text - result = json.dumps(self.feat.runAlgorithm("tg_degree_cent", params=params)) - assert sorted(baseline) == sorted(result) + with open( + f"data/baseline/graph_algorithms_baselines/centrality/degree_centrality/{test_name}.json" + ) as f: + baseline = json.load(f) + + result = self.feat.runAlgorithm("tg_degree_cent", params=params) + result = sorted(result[0]["top_scores"], key=lambda x: x["Vertex_ID"]) + baseline = sorted(baseline[0]["top_scores"], key=lambda x: x["Vertex_ID"]) + + for b in baseline: + found = False + for r in result: + if r["Vertex_ID"] == b["Vertex_ID"] and r["score"] == r["score"]: + found = True + if not found: + pytest.fail() @pytest.mark.parametrize("test_name", graph_types2) def test_degree_centrality2(self, test_name): @@ -64,12 +75,22 @@ def test_degree_centrality2(self, test_name): "result_attribute": "", "file_path": "", } - url = os.path.join( - self.base_url, "degree_centrality/in_degree/", test_name + ".json" - ) - baseline = httpx.get(url).text - result = json.dumps(self.feat.runAlgorithm("tg_degree_cent", params=params)) - assert sorted(baseline) == sorted(result) + with open( + f"data/baseline/graph_algorithms_baselines/centrality/degree_centrality/in_degree/{test_name}.json" + ) as f: + baseline = json.load(f) + + result = self.feat.runAlgorithm("tg_degree_cent", params=params) + result = sorted(result[0]["top_scores"], key=lambda x: x["Vertex_ID"]) + baseline = sorted(baseline[0]["top_scores"], key=lambda x: x["Vertex_ID"]) + + for b in baseline: + found = False + for r in result: + if r["Vertex_ID"] == b["Vertex_ID"] and r["score"] == r["score"]: + found = True + if not found: + pytest.fail() @pytest.mark.parametrize("test_name", graph_types2) def test_degree_centrality3(self, test_name): @@ -84,12 +105,22 @@ def test_degree_centrality3(self, test_name): "result_attribute": "", "file_path": "", } - url = os.path.join( - self.base_url, "degree_centrality/out_degree/", test_name + ".json" - ) - baseline = httpx.get(url).text - result = json.dumps(self.feat.runAlgorithm("tg_degree_cent", params=params)) - assert sorted(baseline) == sorted(result) + with open( + f"data/baseline/graph_algorithms_baselines/centrality/degree_centrality/out_degree/{test_name}.json" + ) as f: + baseline = json.load(f) + + result = self.feat.runAlgorithm("tg_degree_cent", params=params) + result = sorted(result[0]["top_scores"], key=lambda x: x["Vertex_ID"]) + baseline = sorted(baseline[0]["top_scores"], key=lambda x: x["Vertex_ID"]) + + for b in baseline: + found = False + for r in result: + if r["Vertex_ID"] == b["Vertex_ID"] and r["score"] == r["score"]: + found = True + if not found: + pytest.fail() @pytest.mark.parametrize("test_name", graph_types3) def test_weighted_degree_centrality1(self, test_name): @@ -105,14 +136,21 @@ def test_weighted_degree_centrality1(self, test_name): "result_attribute": "", "file_path": "", } - url = os.path.join( - self.base_url, "weighted_degree_centrality/", test_name + ".json" - ) - baseline = httpx.get(url).text - result = json.dumps( - self.feat.runAlgorithm("tg_weighted_degree_cent", params=params) - ) - assert sorted(baseline) == sorted(result) + with open( + f"data/baseline/graph_algorithms_baselines/centrality/weighted_degree_centrality/{test_name}.json" + ) as f: + baseline = json.load(f) + result = self.feat.runAlgorithm("tg_weighted_degree_cent", params=params) + result = sorted(result[0]["top_scores"], key=lambda x: x["Vertex_ID"]) + baseline = sorted(baseline[0]["top_scores"], key=lambda x: x["Vertex_ID"]) + + for b in baseline: + found = False + for r in result: + if r["Vertex_ID"] == b["Vertex_ID"] and r["score"] == r["score"]: + found = True + if not found: + pytest.fail() @pytest.mark.parametrize("test_name", graph_types4) def test_weighted_degree_centrality2(self, test_name): @@ -128,14 +166,21 @@ def test_weighted_degree_centrality2(self, test_name): "result_attribute": "", "file_path": "", } - url = os.path.join( - self.base_url, "weighted_degree_centrality/in_degree/", test_name + ".json" - ) - baseline = httpx.get(url).text - result = json.dumps( - self.feat.runAlgorithm("tg_weighted_degree_cent", params=params) - ) - assert sorted(baseline) == sorted(result) + with open( + f"data/baseline/graph_algorithms_baselines/centrality/weighted_degree_centrality/in_degree/{test_name}.json" + ) as f: + baseline = json.load(f) + result = self.feat.runAlgorithm("tg_weighted_degree_cent", params=params) + result = sorted(result[0]["top_scores"], key=lambda x: x["Vertex_ID"]) + baseline = sorted(baseline[0]["top_scores"], key=lambda x: x["Vertex_ID"]) + + for b in baseline: + found = False + for r in result: + if r["Vertex_ID"] == b["Vertex_ID"] and r["score"] == r["score"]: + found = True + if not found: + pytest.fail() @pytest.mark.parametrize("test_name", graph_types4) def test_weighted_degree_centrality3(self, test_name): @@ -151,14 +196,21 @@ def test_weighted_degree_centrality3(self, test_name): "result_attribute": "", "file_path": "", } - url = os.path.join( - self.base_url, "weighted_degree_centrality/out_degree/", test_name + ".json" - ) - baseline = httpx.get(url).text - result = json.dumps( - self.feat.runAlgorithm("tg_weighted_degree_cent", params=params) - ) - assert sorted(baseline) == sorted(result) + with open( + f"data/baseline/graph_algorithms_baselines/centrality/weighted_degree_centrality/out_degree/{test_name}.json" + ) as f: + baseline = json.load(f) + result = self.feat.runAlgorithm("tg_weighted_degree_cent", params=params) + result = sorted(result[0]["top_scores"], key=lambda x: x["Vertex_ID"]) + baseline = sorted(baseline[0]["top_scores"], key=lambda x: x["Vertex_ID"]) + + for b in baseline: + found = False + for r in result: + if r["Vertex_ID"] == b["Vertex_ID"] and r["score"] == r["score"]: + found = True + if not found: + pytest.fail() @pytest.mark.parametrize("test_name", graph_types1) def test_closeness_centrality(self, test_name): @@ -174,10 +226,21 @@ def test_closeness_centrality(self, test_name): "file_path": "", "display_edges": False, } - url = os.path.join(self.base_url, "closeness_centrality/", test_name + ".json") - baseline = httpx.get(url).text - result = json.dumps(self.feat.runAlgorithm("tg_closeness_cent", params=params)) - assert sorted(baseline) == sorted(result) + with open( + f"data/baseline/graph_algorithms_baselines/centrality/closeness_centrality/{test_name}.json" + ) as f: + baseline = json.load(f) + result = self.feat.runAlgorithm("tg_closeness_cent", params=params) + result = sorted(result[0]["top_scores"], key=lambda x: x["Vertex_ID"]) + baseline = sorted(baseline[0]["top_scores"], key=lambda x: x["Vertex_ID"]) + + for b in baseline: + found = False + for r in result: + if r["Vertex_ID"] == b["Vertex_ID"] and r["score"] == r["score"]: + found = True + if not found: + pytest.fail() @pytest.mark.parametrize("test_name", graph_types2) def test_closeness_centrality2(self, test_name): @@ -193,10 +256,21 @@ def test_closeness_centrality2(self, test_name): "file_path": "", "display_edges": False, } - url = os.path.join(self.base_url, "closeness_centrality/", test_name + ".json") - baseline = httpx.get(url).text - result = json.dumps(self.feat.runAlgorithm("tg_closeness_cent", params=params)) - assert sorted(baseline) == sorted(result) + with open( + f"data/baseline/graph_algorithms_baselines/centrality/closeness_centrality/{test_name}.json" + ) as f: + baseline = json.load(f) + result = self.feat.runAlgorithm("tg_closeness_cent", params=params) + result = sorted(result[0]["top_scores"], key=lambda x: x["Vertex_ID"]) + baseline = sorted(baseline[0]["top_scores"], key=lambda x: x["Vertex_ID"]) + + for b in baseline: + found = False + for r in result: + if r["Vertex_ID"] == b["Vertex_ID"] and r["score"] == r["score"]: + found = True + if not found: + pytest.fail() @pytest.mark.parametrize("test_name", graph_types1) def test_harmonic_centrality(self, test_name): @@ -212,10 +286,21 @@ def test_harmonic_centrality(self, test_name): "file_path": "", "display_edges": False, } - url = os.path.join(self.base_url, "harmonic_centrality/", test_name + ".json") - baseline = httpx.get(url).text - result = json.dumps(self.feat.runAlgorithm("tg_harmonic_cent", params=params)) - assert sorted(baseline) == sorted(result) + with open( + f"data/baseline/graph_algorithms_baselines/centrality/harmonic_centrality/{test_name}.json" + ) as f: + baseline = json.load(f) + result = self.feat.runAlgorithm("tg_harmonic_cent", params=params) + result = sorted(result[0]["top_scores"], key=lambda x: x["Vertex_ID"]) + baseline = sorted(baseline[0]["top_scores"], key=lambda x: x["Vertex_ID"]) + + for b in baseline: + found = False + for r in result: + if r["Vertex_ID"] == b["Vertex_ID"] and r["score"] == r["score"]: + found = True + if not found: + pytest.fail() @pytest.mark.parametrize("test_name", graph_types2) def test_harmonic_centrality2(self, test_name): @@ -231,10 +316,21 @@ def test_harmonic_centrality2(self, test_name): "file_path": "", "display_edges": False, } - url = os.path.join(self.base_url, "harmonic_centrality/", test_name + ".json") - baseline = httpx.get(url).text - result = json.dumps(self.feat.runAlgorithm("tg_harmonic_cent", params=params)) - assert sorted(baseline) == sorted(result) + with open( + f"data/baseline/graph_algorithms_baselines/centrality/harmonic_centrality/{test_name}.json" + ) as f: + baseline = json.load(f) + result = self.feat.runAlgorithm("tg_harmonic_cent", params=params) + result = sorted(result[0]["top_scores"], key=lambda x: x["Vertex_ID"]) + baseline = sorted(baseline[0]["top_scores"], key=lambda x: x["Vertex_ID"]) + + for b in baseline: + found = False + for r in result: + if r["Vertex_ID"] == b["Vertex_ID"] and r["score"] == r["score"]: + found = True + if not found: + pytest.fail() @pytest.mark.parametrize("test_name", graph_types1 + graph_types2) def test_article_rank(self, test_name): @@ -249,10 +345,21 @@ def test_article_rank(self, test_name): "result_attribute": "", "file_path": "", } - url = os.path.join(self.base_url, "article_rank/", test_name + ".json") - baseline = httpx.get(url).text - result = json.dumps(self.feat.runAlgorithm("tg_article_rank", params=params)) - assert sorted(baseline) == sorted(result) + with open( + f"data/baseline/graph_algorithms_baselines/centrality/article_rank/{test_name}.json" + ) as f: + baseline = json.load(f) + result = self.feat.runAlgorithm("tg_article_rank", params=params) + result = sorted(result[0]["@@top_scores_heap"], key=lambda x: x["Vertex_ID"]) + baseline = sorted(baseline[0]["@@top_scores_heap"], key=lambda x: x["Vertex_ID"]) + + for b in baseline: + found = False + for r in result: + if r["Vertex_ID"] == b["Vertex_ID"] and r["score"] == r["score"]: + found = True + if not found: + pytest.fail() @pytest.mark.parametrize("test_name", graph_types1 + graph_types2) def test_pagerank(self, test_name): @@ -268,7 +375,18 @@ def test_pagerank(self, test_name): "file_path": "", "display_edges": False, } - url = os.path.join(self.base_url, "pagerank/", test_name + ".json") - baseline = httpx.get(url).text - result = json.dumps(self.feat.runAlgorithm("tg_pagerank", params=params)) - assert sorted(baseline) == sorted(result) + with open( + f"data/baseline/graph_algorithms_baselines/centrality/pagerank/{test_name}.json" + ) as f: + baseline = json.load(f) + result = self.feat.runAlgorithm("tg_pagerank", params=params) + result = sorted(result[0]["@@top_scores_heap"], key=lambda x: x["Vertex_ID"]) + baseline = sorted(baseline[0]["@@top_scores_heap"], key=lambda x: x["Vertex_ID"]) + + for b in baseline: + found = False + for r in result: + if r["Vertex_ID"] == b["Vertex_ID"] and r["score"] == r["score"]: + found = True + if not found: + pytest.fail() From 62e7878044308e30ae7a00fa4e4cd7a6f9d40a12 Mon Sep 17 00:00:00 2001 From: Rob Rossmiller Date: Thu, 9 May 2024 16:50:19 -0500 Subject: [PATCH 6/9] tg conn cleanup --- tests/test/util.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test/util.py b/tests/test/util.py index 8eba76f1..3418a913 100644 --- a/tests/test/util.py +++ b/tests/test/util.py @@ -17,9 +17,9 @@ def get_featurizer(): username=user_name, password=password, graphname=graph_name, - tgCloud=True, ) - conn.getToken() + if os.environ.get("USE_TKN", "true").lower() == "true": + conn.getToken() return conn.gds.featurizer() From c846eb4fd58267e196366614a8e00e3339357855 Mon Sep 17 00:00:00 2001 From: Rob Rossmiller Date: Thu, 9 May 2024 18:48:50 -0500 Subject: [PATCH 7/9] centrality --- tests/test/test_centrality.py | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/tests/test/test_centrality.py b/tests/test/test_centrality.py index cb1ed766..e228f12f 100644 --- a/tests/test/test_centrality.py +++ b/tests/test/test_centrality.py @@ -1,5 +1,4 @@ import json -import os import pytest import util @@ -8,8 +7,7 @@ class TestCentrality: feat = util.get_featurizer() # undirected graphs - # graph_types1 = ["Empty", "Line", "Ring", "Hub_Spoke", "Tree"] - graph_types1 = ["Line"] + graph_types1 = ["Empty", "Line", "Ring", "Hub_Spoke", "Tree"] # directed graphs graph_types2 = [ "Line_Directed", @@ -351,7 +349,9 @@ def test_article_rank(self, test_name): baseline = json.load(f) result = self.feat.runAlgorithm("tg_article_rank", params=params) result = sorted(result[0]["@@top_scores_heap"], key=lambda x: x["Vertex_ID"]) - baseline = sorted(baseline[0]["@@top_scores_heap"], key=lambda x: x["Vertex_ID"]) + baseline = sorted( + baseline[0]["@@top_scores_heap"], key=lambda x: x["Vertex_ID"] + ) for b in baseline: found = False @@ -381,7 +381,9 @@ def test_pagerank(self, test_name): baseline = json.load(f) result = self.feat.runAlgorithm("tg_pagerank", params=params) result = sorted(result[0]["@@top_scores_heap"], key=lambda x: x["Vertex_ID"]) - baseline = sorted(baseline[0]["@@top_scores_heap"], key=lambda x: x["Vertex_ID"]) + baseline = sorted( + baseline[0]["@@top_scores_heap"], key=lambda x: x["Vertex_ID"] + ) for b in baseline: found = False From 84f92ada0e0fe7d1557d39db9c56ce0286070b84 Mon Sep 17 00:00:00 2001 From: Rob Rossmiller Date: Thu, 9 May 2024 18:48:59 -0500 Subject: [PATCH 8/9] community --- tests/test/test_community.py | 121 ++++++++++++++++++++--------------- 1 file changed, 69 insertions(+), 52 deletions(-) diff --git a/tests/test/test_community.py b/tests/test/test_community.py index b8af4b1a..914a9a8a 100644 --- a/tests/test/test_community.py +++ b/tests/test/test_community.py @@ -2,59 +2,76 @@ import os import pytest -import requests import util class TestCommunity: - pass - # feat = util.get_featurizer() - # base_url = os.environ["TG_DATA"] - # graph_types1 = [ - # "Empty", - # "Empty_Directed", - # "Line", - # "Line_Directed", - # "Ring", - # "Ring_Directed", - # "Hub_Spoke", - # "Hub_Spoke_Directed", - # "Hub_Connected_Hub_Spoke", - # "Tree", - # "Tree_Directed", - # "DAG_Directed", - # "Line_Weighted", - # ] - # graph_types2 = ["Complete", "Complete_Directed"] - # - # @pytest.mark.parametrize("test_name", graph_types1) - # def test_lcc1(self, test_name): - # params = { - # "v_type": "V20", - # "e_type": test_name, - # "top_k": 100, - # "print_results": True, - # "result_attribute": "", - # "file_path": "", - # "display_edges": False, - # } - # url = os.path.join(self.base_url, "lcc", test_name + ".json") - # baseline = requests.get(url).text - # result = json.dumps(self.feat.runAlgorithm("tg_lcc", params=params)) - # assert sorted(baseline) == sorted(result) - # - # @pytest.mark.parametrize("test_name", graph_types2) - # def test_lcc2(self, test_name): - # params = { - # "v_type": "V8", - # "e_type": test_name, - # "top_k": 100, - # "print_results": True, - # "result_attribute": "", - # "file_path": "", - # "display_edges": False, - # } - # url = os.path.join(self.base_url, "lcc", test_name + ".json") - # baseline = requests.get(url).text - # result = json.dumps(self.feat.runAlgorithm("tg_lcc", params=params)) - # assert sorted(baseline) == sorted(result) + feat = util.get_featurizer() + + base_path = "data/baseline/graph_algorithms_baselines/community" + graph_types1 = [ + "Empty", + "Empty_Directed", + "Line", + "Line_Directed", + "Ring", + "Ring_Directed", + "Hub_Spoke", + "Hub_Spoke_Directed", + "Hub_Connected_Hub_Spoke", + "Tree", + "Tree_Directed", + "DAG_Directed", + "Line_Weighted", + ] + graph_types2 = ["Complete", "Complete_Directed"] + + @pytest.mark.parametrize("test_name", graph_types1) + def test_lcc1(self, test_name): + params = { + "v_type": "V20", + "e_type": test_name, + "top_k": 100, + "print_results": True, + "result_attribute": "", + "file_path": "", + "display_edges": False, + } + with open(f"{self.base_path}/lcc/{test_name}.json") as f: + baseline = json.load(f) + baseline = sorted(baseline[0]["top_scores"], key=lambda x: x["Vertex_ID"]) + + result = self.feat.runAlgorithm("tg_lcc", params=params) + result = sorted(result[0]["top_scores"], key=lambda x: x["Vertex_ID"]) + for b in baseline: + found = False + for r in result: + if r["Vertex_ID"] == b["Vertex_ID"] and r["score"] == r["score"]: + found = True + if not found: + pytest.fail() + + @pytest.mark.parametrize("test_name", graph_types2) + def test_lcc2(self, test_name): + params = { + "v_type": "V8", + "e_type": test_name, + "top_k": 100, + "print_results": True, + "result_attribute": "", + "file_path": "", + "display_edges": False, + } + with open(f"{self.base_path}/lcc/{test_name}.json") as f: + baseline = json.load(f) + baseline = sorted(baseline[0]["top_scores"], key=lambda x: x["Vertex_ID"]) + + result = self.feat.runAlgorithm("tg_lcc", params=params) + result = sorted(result[0]["top_scores"], key=lambda x: x["Vertex_ID"]) + for b in baseline: + found = False + for r in result: + if r["Vertex_ID"] == b["Vertex_ID"] and r["score"] == r["score"]: + found = True + if not found: + pytest.fail() From 599758bc627b3cd9c061879308fa67e5793bcd14 Mon Sep 17 00:00:00 2001 From: Rob Rossmiller Date: Fri, 10 May 2024 14:10:44 -0500 Subject: [PATCH 9/9] tests reading baseline from file --- .../path_finding/bfs/Complete.json | 130 +++- .../shortest_ss_no_wt/Complete.json | 674 +++++++++++++++++- tests/run.sh | 2 +- tests/test/test_community.py | 2 - tests/test/test_path_finding.py | 295 +++++--- .../test/test_topological_link_prediction.py | 228 +++--- 6 files changed, 1126 insertions(+), 205 deletions(-) diff --git a/tests/data/baseline/graph_algorithms_baselines/path_finding/bfs/Complete.json b/tests/data/baseline/graph_algorithms_baselines/path_finding/bfs/Complete.json index 8a697cbe..f82f3385 100644 --- a/tests/data/baseline/graph_algorithms_baselines/path_finding/bfs/Complete.json +++ b/tests/data/baseline/graph_algorithms_baselines/path_finding/bfs/Complete.json @@ -1 +1,129 @@ -[{"Start": [{"v_id": "F", "v_type": "V8", "attributes": {"Start.@sum_step": 1}}, {"v_id": "G", "v_type": "V8", "attributes": {"Start.@sum_step": 1}}, {"v_id": "H", "v_type": "V8", "attributes": {"Start.@sum_step": 1}}, {"v_id": "C", "v_type": "V8", "attributes": {"Start.@sum_step": 1}}, {"v_id": "B", "v_type": "V8", "attributes": {"Start.@sum_step": 1}}, {"v_id": "E", "v_type": "V8", "attributes": {"Start.@sum_step": 1}}, {"v_id": "D", "v_type": "V8", "attributes": {"Start.@sum_step": 1}}, {"v_id": "A", "v_type": "V8", "attributes": {"Start.@sum_step": 0}}]}, {"@@edge_set": [{"e_type": "Complete", "from_id": "A", "from_type": "V8", "to_id": "H", "to_type": "V8", "directed": false, "attributes": {}}, {"e_type": "Complete", "from_id": "A", "from_type": "V8", "to_id": "E", "to_type": "V8", "directed": false, "attributes": {}}, {"e_type": "Complete", "from_id": "A", "from_type": "V8", "to_id": "D", "to_type": "V8", "directed": false, "attributes": {}}, {"e_type": "Complete", "from_id": "A", "from_type": "V8", "to_id": "B", "to_type": "V8", "directed": false, "attributes": {}}, {"e_type": "Complete", "from_id": "A", "from_type": "V8", "to_id": "G", "to_type": "V8", "directed": false, "attributes": {}}, {"e_type": "Complete", "from_id": "A", "from_type": "V8", "to_id": "F", "to_type": "V8", "directed": false, "attributes": {}}, {"e_type": "Complete", "from_id": "A", "from_type": "V8", "to_id": "C", "to_type": "V8", "directed": false, "attributes": {}}]}] \ No newline at end of file +[ + { + "Start": [ + { + "v_id": "F", + "v_type": "V8", + "attributes": { + "Start.@sum_step": 1 + } + }, + { + "v_id": "G", + "v_type": "V8", + "attributes": { + "Start.@sum_step": 1 + } + }, + { + "v_id": "H", + "v_type": "V8", + "attributes": { + "Start.@sum_step": 1 + } + }, + { + "v_id": "C", + "v_type": "V8", + "attributes": { + "Start.@sum_step": 1 + } + }, + { + "v_id": "B", + "v_type": "V8", + "attributes": { + "Start.@sum_step": 1 + } + }, + { + "v_id": "E", + "v_type": "V8", + "attributes": { + "Start.@sum_step": 1 + } + }, + { + "v_id": "D", + "v_type": "V8", + "attributes": { + "Start.@sum_step": 1 + } + }, + { + "v_id": "A", + "v_type": "V8", + "attributes": { + "Start.@sum_step": 0 + } + } + ] + }, + { + "@@edge_set": [ + { + "e_type": "Complete", + "from_id": "A", + "from_type": "V8", + "to_id": "H", + "to_type": "V8", + "directed": false, + "attributes": {} + }, + { + "e_type": "Complete", + "from_id": "A", + "from_type": "V8", + "to_id": "E", + "to_type": "V8", + "directed": false, + "attributes": {} + }, + { + "e_type": "Complete", + "from_id": "A", + "from_type": "V8", + "to_id": "D", + "to_type": "V8", + "directed": false, + "attributes": {} + }, + { + "e_type": "Complete", + "from_id": "A", + "from_type": "V8", + "to_id": "B", + "to_type": "V8", + "directed": false, + "attributes": {} + }, + { + "e_type": "Complete", + "from_id": "A", + "from_type": "V8", + "to_id": "G", + "to_type": "V8", + "directed": false, + "attributes": {} + }, + { + "e_type": "Complete", + "from_id": "A", + "from_type": "V8", + "to_id": "F", + "to_type": "V8", + "directed": false, + "attributes": {} + }, + { + "e_type": "Complete", + "from_id": "A", + "from_type": "V8", + "to_id": "C", + "to_type": "V8", + "directed": false, + "attributes": {} + } + ] + } +] diff --git a/tests/data/baseline/graph_algorithms_baselines/path_finding/shortest_ss_no_wt/Complete.json b/tests/data/baseline/graph_algorithms_baselines/path_finding/shortest_ss_no_wt/Complete.json index f223f587..0d41ee77 100644 --- a/tests/data/baseline/graph_algorithms_baselines/path_finding/shortest_ss_no_wt/Complete.json +++ b/tests/data/baseline/graph_algorithms_baselines/path_finding/shortest_ss_no_wt/Complete.json @@ -1 +1,673 @@ -[{"ResultSet": [{"v_id": "F", "v_type": "V8", "attributes": {"ResultSet.@min_dis": 1, "ResultSet.@path_list": ["A", "F"]}}, {"v_id": "G", "v_type": "V8", "attributes": {"ResultSet.@min_dis": 1, "ResultSet.@path_list": ["A", "G"]}}, {"v_id": "H", "v_type": "V8", "attributes": {"ResultSet.@min_dis": 1, "ResultSet.@path_list": ["A", "H"]}}, {"v_id": "C", "v_type": "V8", "attributes": {"ResultSet.@min_dis": 1, "ResultSet.@path_list": ["A", "C"]}}, {"v_id": "E", "v_type": "V8", "attributes": {"ResultSet.@min_dis": 1, "ResultSet.@path_list": ["A", "E"]}}, {"v_id": "D", "v_type": "V8", "attributes": {"ResultSet.@min_dis": 1, "ResultSet.@path_list": ["A", "D"]}}, {"v_id": "A", "v_type": "V8", "attributes": {"ResultSet.@min_dis": 0, "ResultSet.@path_list": ["A"]}}, {"v_id": "B", "v_type": "V8", "attributes": {"ResultSet.@min_dis": 1, "ResultSet.@path_list": ["A", "B"]}}]}, {"@@edge_set": [{"e_type": "Complete", "from_id": "D", "from_type": "V8", "to_id": "D", "to_type": "V8", "directed": false, "attributes": {}}, {"e_type": "Complete", "from_id": "E", "from_type": "V8", "to_id": "A", "to_type": "V8", "directed": false, "attributes": {}}, {"e_type": "Complete", "from_id": "D", "from_type": "V8", "to_id": "A", "to_type": "V8", "directed": false, "attributes": {}}, {"e_type": "Complete", "from_id": "E", "from_type": "V8", "to_id": "D", "to_type": "V8", "directed": false, "attributes": {}}, {"e_type": "Complete", "from_id": "E", "from_type": "V8", "to_id": "E", "to_type": "V8", "directed": false, "attributes": {}}, {"e_type": "Complete", "from_id": "D", "from_type": "V8", "to_id": "H", "to_type": "V8", "directed": false, "attributes": {}}, {"e_type": "Complete", "from_id": "E", "from_type": "V8", "to_id": "F", "to_type": "V8", "directed": false, "attributes": {}}, {"e_type": "Complete", "from_id": "E", "from_type": "V8", "to_id": "B", "to_type": "V8", "directed": false, "attributes": {}}, {"e_type": "Complete", "from_id": "E", "from_type": "V8", "to_id": "C", "to_type": "V8", "directed": false, "attributes": {}}, {"e_type": "Complete", "from_id": "E", "from_type": "V8", "to_id": "G", "to_type": "V8", "directed": false, "attributes": {}}, {"e_type": "Complete", "from_id": "D", "from_type": "V8", "to_id": "F", "to_type": "V8", "directed": false, "attributes": {}}, {"e_type": "Complete", "from_id": "D", "from_type": "V8", "to_id": "C", "to_type": "V8", "directed": false, "attributes": {}}, {"e_type": "Complete", "from_id": "D", "from_type": "V8", "to_id": "E", "to_type": "V8", "directed": false, "attributes": {}}, {"e_type": "Complete", "from_id": "A", "from_type": "V8", "to_id": "B", "to_type": "V8", "directed": false, "attributes": {}}, {"e_type": "Complete", "from_id": "H", "from_type": "V8", "to_id": "D", "to_type": "V8", "directed": false, "attributes": {}}, {"e_type": "Complete", "from_id": "F", "from_type": "V8", "to_id": "C", "to_type": "V8", "directed": false, "attributes": {}}, {"e_type": "Complete", "from_id": "C", "from_type": "V8", "to_id": "G", "to_type": "V8", "directed": false, "attributes": {}}, {"e_type": "Complete", "from_id": "C", "from_type": "V8", "to_id": "A", "to_type": "V8", "directed": false, "attributes": {}}, {"e_type": "Complete", "from_id": "A", "from_type": "V8", "to_id": "E", "to_type": "V8", "directed": false, "attributes": {}}, {"e_type": "Complete", "from_id": "F", "from_type": "V8", "to_id": "F", "to_type": "V8", "directed": false, "attributes": {}}, {"e_type": "Complete", "from_id": "E", "from_type": "V8", "to_id": "H", "to_type": "V8", "directed": false, "attributes": {}}, {"e_type": "Complete", "from_id": "C", "from_type": "V8", "to_id": "E", "to_type": "V8", "directed": false, "attributes": {}}, {"e_type": "Complete", "from_id": "G", "from_type": "V8", "to_id": "A", "to_type": "V8", "directed": false, "attributes": {}}, {"e_type": "Complete", "from_id": "B", "from_type": "V8", "to_id": "C", "to_type": "V8", "directed": false, "attributes": {}}, {"e_type": "Complete", "from_id": "A", "from_type": "V8", "to_id": "H", "to_type": "V8", "directed": false, "attributes": {}}, {"e_type": "Complete", "from_id": "C", "from_type": "V8", "to_id": "F", "to_type": "V8", "directed": false, "attributes": {}}, {"e_type": "Complete", "from_id": "A", "from_type": "V8", "to_id": "F", "to_type": "V8", "directed": false, "attributes": {}}, {"e_type": "Complete", "from_id": "C", "from_type": "V8", "to_id": "C", "to_type": "V8", "directed": false, "attributes": {}}, {"e_type": "Complete", "from_id": "C", "from_type": "V8", "to_id": "B", "to_type": "V8", "directed": false, "attributes": {}}, {"e_type": "Complete", "from_id": "F", "from_type": "V8", "to_id": "B", "to_type": "V8", "directed": false, "attributes": {}}, {"e_type": "Complete", "from_id": "B", "from_type": "V8", "to_id": "H", "to_type": "V8", "directed": false, "attributes": {}}, {"e_type": "Complete", "from_id": "C", "from_type": "V8", "to_id": "D", "to_type": "V8", "directed": false, "attributes": {}}, {"e_type": "Complete", "from_id": "G", "from_type": "V8", "to_id": "G", "to_type": "V8", "directed": false, "attributes": {}}, {"e_type": "Complete", "from_id": "D", "from_type": "V8", "to_id": "G", "to_type": "V8", "directed": false, "attributes": {}}, {"e_type": "Complete", "from_id": "G", "from_type": "V8", "to_id": "F", "to_type": "V8", "directed": false, "attributes": {}}, {"e_type": "Complete", "from_id": "C", "from_type": "V8", "to_id": "H", "to_type": "V8", "directed": false, "attributes": {}}, {"e_type": "Complete", "from_id": "D", "from_type": "V8", "to_id": "B", "to_type": "V8", "directed": false, "attributes": {}}, {"e_type": "Complete", "from_id": "F", "from_type": "V8", "to_id": "G", "to_type": "V8", "directed": false, "attributes": {}}, {"e_type": "Complete", "from_id": "F", "from_type": "V8", "to_id": "D", "to_type": "V8", "directed": false, "attributes": {}}, {"e_type": "Complete", "from_id": "H", "from_type": "V8", "to_id": "A", "to_type": "V8", "directed": false, "attributes": {}}, {"e_type": "Complete", "from_id": "F", "from_type": "V8", "to_id": "E", "to_type": "V8", "directed": false, "attributes": {}}, {"e_type": "Complete", "from_id": "A", "from_type": "V8", "to_id": "D", "to_type": "V8", "directed": false, "attributes": {}}, {"e_type": "Complete", "from_id": "A", "from_type": "V8", "to_id": "C", "to_type": "V8", "directed": false, "attributes": {}}, {"e_type": "Complete", "from_id": "H", "from_type": "V8", "to_id": "G", "to_type": "V8", "directed": false, "attributes": {}}, {"e_type": "Complete", "from_id": "A", "from_type": "V8", "to_id": "A", "to_type": "V8", "directed": false, "attributes": {}}, {"e_type": "Complete", "from_id": "B", "from_type": "V8", "to_id": "A", "to_type": "V8", "directed": false, "attributes": {}}, {"e_type": "Complete", "from_id": "H", "from_type": "V8", "to_id": "E", "to_type": "V8", "directed": false, "attributes": {}}, {"e_type": "Complete", "from_id": "G", "from_type": "V8", "to_id": "D", "to_type": "V8", "directed": false, "attributes": {}}, {"e_type": "Complete", "from_id": "F", "from_type": "V8", "to_id": "A", "to_type": "V8", "directed": false, "attributes": {}}, {"e_type": "Complete", "from_id": "H", "from_type": "V8", "to_id": "C", "to_type": "V8", "directed": false, "attributes": {}}, {"e_type": "Complete", "from_id": "A", "from_type": "V8", "to_id": "G", "to_type": "V8", "directed": false, "attributes": {}}, {"e_type": "Complete", "from_id": "H", "from_type": "V8", "to_id": "H", "to_type": "V8", "directed": false, "attributes": {}}, {"e_type": "Complete", "from_id": "B", "from_type": "V8", "to_id": "D", "to_type": "V8", "directed": false, "attributes": {}}, {"e_type": "Complete", "from_id": "B", "from_type": "V8", "to_id": "B", "to_type": "V8", "directed": false, "attributes": {}}, {"e_type": "Complete", "from_id": "G", "from_type": "V8", "to_id": "B", "to_type": "V8", "directed": false, "attributes": {}}, {"e_type": "Complete", "from_id": "H", "from_type": "V8", "to_id": "F", "to_type": "V8", "directed": false, "attributes": {}}, {"e_type": "Complete", "from_id": "G", "from_type": "V8", "to_id": "E", "to_type": "V8", "directed": false, "attributes": {}}, {"e_type": "Complete", "from_id": "G", "from_type": "V8", "to_id": "H", "to_type": "V8", "directed": false, "attributes": {}}, {"e_type": "Complete", "from_id": "G", "from_type": "V8", "to_id": "C", "to_type": "V8", "directed": false, "attributes": {}}, {"e_type": "Complete", "from_id": "B", "from_type": "V8", "to_id": "F", "to_type": "V8", "directed": false, "attributes": {}}, {"e_type": "Complete", "from_id": "F", "from_type": "V8", "to_id": "H", "to_type": "V8", "directed": false, "attributes": {}}, {"e_type": "Complete", "from_id": "H", "from_type": "V8", "to_id": "B", "to_type": "V8", "directed": false, "attributes": {}}, {"e_type": "Complete", "from_id": "B", "from_type": "V8", "to_id": "G", "to_type": "V8", "directed": false, "attributes": {}}, {"e_type": "Complete", "from_id": "B", "from_type": "V8", "to_id": "E", "to_type": "V8", "directed": false, "attributes": {}}]}] \ No newline at end of file +[ + { + "ResultSet": [ + { + "v_id": "F", + "v_type": "V8", + "attributes": { + "ResultSet.@min_dis": 1, + "ResultSet.@path_list": [ + "A", + "F" + ] + } + }, + { + "v_id": "G", + "v_type": "V8", + "attributes": { + "ResultSet.@min_dis": 1, + "ResultSet.@path_list": [ + "A", + "G" + ] + } + }, + { + "v_id": "H", + "v_type": "V8", + "attributes": { + "ResultSet.@min_dis": 1, + "ResultSet.@path_list": [ + "A", + "H" + ] + } + }, + { + "v_id": "C", + "v_type": "V8", + "attributes": { + "ResultSet.@min_dis": 1, + "ResultSet.@path_list": [ + "A", + "C" + ] + } + }, + { + "v_id": "E", + "v_type": "V8", + "attributes": { + "ResultSet.@min_dis": 1, + "ResultSet.@path_list": [ + "A", + "E" + ] + } + }, + { + "v_id": "D", + "v_type": "V8", + "attributes": { + "ResultSet.@min_dis": 1, + "ResultSet.@path_list": [ + "A", + "D" + ] + } + }, + { + "v_id": "A", + "v_type": "V8", + "attributes": { + "ResultSet.@min_dis": 0, + "ResultSet.@path_list": [ + "A" + ] + } + }, + { + "v_id": "B", + "v_type": "V8", + "attributes": { + "ResultSet.@min_dis": 1, + "ResultSet.@path_list": [ + "A", + "B" + ] + } + } + ] + }, + { + "@@edge_set": [ + { + "e_type": "Complete", + "from_id": "D", + "from_type": "V8", + "to_id": "D", + "to_type": "V8", + "directed": false, + "attributes": {} + }, + { + "e_type": "Complete", + "from_id": "E", + "from_type": "V8", + "to_id": "A", + "to_type": "V8", + "directed": false, + "attributes": {} + }, + { + "e_type": "Complete", + "from_id": "D", + "from_type": "V8", + "to_id": "A", + "to_type": "V8", + "directed": false, + "attributes": {} + }, + { + "e_type": "Complete", + "from_id": "E", + "from_type": "V8", + "to_id": "D", + "to_type": "V8", + "directed": false, + "attributes": {} + }, + { + "e_type": "Complete", + "from_id": "E", + "from_type": "V8", + "to_id": "E", + "to_type": "V8", + "directed": false, + "attributes": {} + }, + { + "e_type": "Complete", + "from_id": "D", + "from_type": "V8", + "to_id": "H", + "to_type": "V8", + "directed": false, + "attributes": {} + }, + { + "e_type": "Complete", + "from_id": "E", + "from_type": "V8", + "to_id": "F", + "to_type": "V8", + "directed": false, + "attributes": {} + }, + { + "e_type": "Complete", + "from_id": "E", + "from_type": "V8", + "to_id": "B", + "to_type": "V8", + "directed": false, + "attributes": {} + }, + { + "e_type": "Complete", + "from_id": "E", + "from_type": "V8", + "to_id": "C", + "to_type": "V8", + "directed": false, + "attributes": {} + }, + { + "e_type": "Complete", + "from_id": "E", + "from_type": "V8", + "to_id": "G", + "to_type": "V8", + "directed": false, + "attributes": {} + }, + { + "e_type": "Complete", + "from_id": "D", + "from_type": "V8", + "to_id": "F", + "to_type": "V8", + "directed": false, + "attributes": {} + }, + { + "e_type": "Complete", + "from_id": "D", + "from_type": "V8", + "to_id": "C", + "to_type": "V8", + "directed": false, + "attributes": {} + }, + { + "e_type": "Complete", + "from_id": "D", + "from_type": "V8", + "to_id": "E", + "to_type": "V8", + "directed": false, + "attributes": {} + }, + { + "e_type": "Complete", + "from_id": "A", + "from_type": "V8", + "to_id": "B", + "to_type": "V8", + "directed": false, + "attributes": {} + }, + { + "e_type": "Complete", + "from_id": "H", + "from_type": "V8", + "to_id": "D", + "to_type": "V8", + "directed": false, + "attributes": {} + }, + { + "e_type": "Complete", + "from_id": "F", + "from_type": "V8", + "to_id": "C", + "to_type": "V8", + "directed": false, + "attributes": {} + }, + { + "e_type": "Complete", + "from_id": "C", + "from_type": "V8", + "to_id": "G", + "to_type": "V8", + "directed": false, + "attributes": {} + }, + { + "e_type": "Complete", + "from_id": "C", + "from_type": "V8", + "to_id": "A", + "to_type": "V8", + "directed": false, + "attributes": {} + }, + { + "e_type": "Complete", + "from_id": "A", + "from_type": "V8", + "to_id": "E", + "to_type": "V8", + "directed": false, + "attributes": {} + }, + { + "e_type": "Complete", + "from_id": "F", + "from_type": "V8", + "to_id": "F", + "to_type": "V8", + "directed": false, + "attributes": {} + }, + { + "e_type": "Complete", + "from_id": "E", + "from_type": "V8", + "to_id": "H", + "to_type": "V8", + "directed": false, + "attributes": {} + }, + { + "e_type": "Complete", + "from_id": "C", + "from_type": "V8", + "to_id": "E", + "to_type": "V8", + "directed": false, + "attributes": {} + }, + { + "e_type": "Complete", + "from_id": "G", + "from_type": "V8", + "to_id": "A", + "to_type": "V8", + "directed": false, + "attributes": {} + }, + { + "e_type": "Complete", + "from_id": "B", + "from_type": "V8", + "to_id": "C", + "to_type": "V8", + "directed": false, + "attributes": {} + }, + { + "e_type": "Complete", + "from_id": "A", + "from_type": "V8", + "to_id": "H", + "to_type": "V8", + "directed": false, + "attributes": {} + }, + { + "e_type": "Complete", + "from_id": "C", + "from_type": "V8", + "to_id": "F", + "to_type": "V8", + "directed": false, + "attributes": {} + }, + { + "e_type": "Complete", + "from_id": "A", + "from_type": "V8", + "to_id": "F", + "to_type": "V8", + "directed": false, + "attributes": {} + }, + { + "e_type": "Complete", + "from_id": "C", + "from_type": "V8", + "to_id": "C", + "to_type": "V8", + "directed": false, + "attributes": {} + }, + { + "e_type": "Complete", + "from_id": "C", + "from_type": "V8", + "to_id": "B", + "to_type": "V8", + "directed": false, + "attributes": {} + }, + { + "e_type": "Complete", + "from_id": "F", + "from_type": "V8", + "to_id": "B", + "to_type": "V8", + "directed": false, + "attributes": {} + }, + { + "e_type": "Complete", + "from_id": "B", + "from_type": "V8", + "to_id": "H", + "to_type": "V8", + "directed": false, + "attributes": {} + }, + { + "e_type": "Complete", + "from_id": "C", + "from_type": "V8", + "to_id": "D", + "to_type": "V8", + "directed": false, + "attributes": {} + }, + { + "e_type": "Complete", + "from_id": "G", + "from_type": "V8", + "to_id": "G", + "to_type": "V8", + "directed": false, + "attributes": {} + }, + { + "e_type": "Complete", + "from_id": "D", + "from_type": "V8", + "to_id": "G", + "to_type": "V8", + "directed": false, + "attributes": {} + }, + { + "e_type": "Complete", + "from_id": "G", + "from_type": "V8", + "to_id": "F", + "to_type": "V8", + "directed": false, + "attributes": {} + }, + { + "e_type": "Complete", + "from_id": "C", + "from_type": "V8", + "to_id": "H", + "to_type": "V8", + "directed": false, + "attributes": {} + }, + { + "e_type": "Complete", + "from_id": "D", + "from_type": "V8", + "to_id": "B", + "to_type": "V8", + "directed": false, + "attributes": {} + }, + { + "e_type": "Complete", + "from_id": "F", + "from_type": "V8", + "to_id": "G", + "to_type": "V8", + "directed": false, + "attributes": {} + }, + { + "e_type": "Complete", + "from_id": "F", + "from_type": "V8", + "to_id": "D", + "to_type": "V8", + "directed": false, + "attributes": {} + }, + { + "e_type": "Complete", + "from_id": "H", + "from_type": "V8", + "to_id": "A", + "to_type": "V8", + "directed": false, + "attributes": {} + }, + { + "e_type": "Complete", + "from_id": "F", + "from_type": "V8", + "to_id": "E", + "to_type": "V8", + "directed": false, + "attributes": {} + }, + { + "e_type": "Complete", + "from_id": "A", + "from_type": "V8", + "to_id": "D", + "to_type": "V8", + "directed": false, + "attributes": {} + }, + { + "e_type": "Complete", + "from_id": "A", + "from_type": "V8", + "to_id": "C", + "to_type": "V8", + "directed": false, + "attributes": {} + }, + { + "e_type": "Complete", + "from_id": "H", + "from_type": "V8", + "to_id": "G", + "to_type": "V8", + "directed": false, + "attributes": {} + }, + { + "e_type": "Complete", + "from_id": "A", + "from_type": "V8", + "to_id": "A", + "to_type": "V8", + "directed": false, + "attributes": {} + }, + { + "e_type": "Complete", + "from_id": "B", + "from_type": "V8", + "to_id": "A", + "to_type": "V8", + "directed": false, + "attributes": {} + }, + { + "e_type": "Complete", + "from_id": "H", + "from_type": "V8", + "to_id": "E", + "to_type": "V8", + "directed": false, + "attributes": {} + }, + { + "e_type": "Complete", + "from_id": "G", + "from_type": "V8", + "to_id": "D", + "to_type": "V8", + "directed": false, + "attributes": {} + }, + { + "e_type": "Complete", + "from_id": "F", + "from_type": "V8", + "to_id": "A", + "to_type": "V8", + "directed": false, + "attributes": {} + }, + { + "e_type": "Complete", + "from_id": "H", + "from_type": "V8", + "to_id": "C", + "to_type": "V8", + "directed": false, + "attributes": {} + }, + { + "e_type": "Complete", + "from_id": "A", + "from_type": "V8", + "to_id": "G", + "to_type": "V8", + "directed": false, + "attributes": {} + }, + { + "e_type": "Complete", + "from_id": "H", + "from_type": "V8", + "to_id": "H", + "to_type": "V8", + "directed": false, + "attributes": {} + }, + { + "e_type": "Complete", + "from_id": "B", + "from_type": "V8", + "to_id": "D", + "to_type": "V8", + "directed": false, + "attributes": {} + }, + { + "e_type": "Complete", + "from_id": "B", + "from_type": "V8", + "to_id": "B", + "to_type": "V8", + "directed": false, + "attributes": {} + }, + { + "e_type": "Complete", + "from_id": "G", + "from_type": "V8", + "to_id": "B", + "to_type": "V8", + "directed": false, + "attributes": {} + }, + { + "e_type": "Complete", + "from_id": "H", + "from_type": "V8", + "to_id": "F", + "to_type": "V8", + "directed": false, + "attributes": {} + }, + { + "e_type": "Complete", + "from_id": "G", + "from_type": "V8", + "to_id": "E", + "to_type": "V8", + "directed": false, + "attributes": {} + }, + { + "e_type": "Complete", + "from_id": "G", + "from_type": "V8", + "to_id": "H", + "to_type": "V8", + "directed": false, + "attributes": {} + }, + { + "e_type": "Complete", + "from_id": "G", + "from_type": "V8", + "to_id": "C", + "to_type": "V8", + "directed": false, + "attributes": {} + }, + { + "e_type": "Complete", + "from_id": "B", + "from_type": "V8", + "to_id": "F", + "to_type": "V8", + "directed": false, + "attributes": {} + }, + { + "e_type": "Complete", + "from_id": "F", + "from_type": "V8", + "to_id": "H", + "to_type": "V8", + "directed": false, + "attributes": {} + }, + { + "e_type": "Complete", + "from_id": "H", + "from_type": "V8", + "to_id": "B", + "to_type": "V8", + "directed": false, + "attributes": {} + }, + { + "e_type": "Complete", + "from_id": "B", + "from_type": "V8", + "to_id": "G", + "to_type": "V8", + "directed": false, + "attributes": {} + }, + { + "e_type": "Complete", + "from_id": "B", + "from_type": "V8", + "to_id": "E", + "to_type": "V8", + "directed": false, + "attributes": {} + } + ] + } +] diff --git a/tests/run.sh b/tests/run.sh index 374ddd55..df88fcc5 100755 --- a/tests/run.sh +++ b/tests/run.sh @@ -1,4 +1,4 @@ clear -# python test/setup.py && +python test/setup.py && pytest # pytest --junitxml "output.xml" #-n 4 diff --git a/tests/test/test_community.py b/tests/test/test_community.py index 914a9a8a..642a4e8e 100644 --- a/tests/test/test_community.py +++ b/tests/test/test_community.py @@ -1,5 +1,4 @@ import json -import os import pytest import util @@ -7,7 +6,6 @@ class TestCommunity: feat = util.get_featurizer() - base_path = "data/baseline/graph_algorithms_baselines/community" graph_types1 = [ "Empty", diff --git a/tests/test/test_path_finding.py b/tests/test/test_path_finding.py index 038e6c8d..10377d11 100644 --- a/tests/test/test_path_finding.py +++ b/tests/test/test_path_finding.py @@ -1,102 +1,209 @@ import json -import os import pytest -import requests import util class TestPathFinding: pass - # feat = util.get_featurizer() - # base_url = os.environ["TG_DATA"] - # - # # includes unweighted directed and undirected graphs, as well as one weighted graph (Line_Weighted) - # test_graphs1 = [ - # "Empty", - # "Empty_Directed", - # "Line", - # "Line_Directed", - # "Ring", - # "Ring_Directed", - # "Hub_Spoke", - # "Hub_Spoke_Directed", - # "Hub_Connected_Hub_Spoke", - # "Tree", - # "Tree_Directed", - # "DAG_Directed", - # "Line_Weighted", - # ] - # complete = ["Complete", "Complete_Directed"] - # - # @pytest.mark.parametrize("test_name", test_graphs1) - # def test_bfs1(self, test_name): - # params = { - # "v_type_set": ["V20"], - # "e_type_set": [test_name], - # "max_hops": 10, - # "v_start": {"id": "A", "type": "V20"}, - # "print_results": True, - # "result_attribute": "", - # "file_path": "", - # "display_edges": True, - # } - # url = os.path.join(self.base_url, "bfs/", test_name + ".json") - # baseline = requests.get(url).text - # result = json.dumps(self.feat.runAlgorithm("tg_bfs", params=params)) - # assert sorted(baseline) == sorted(result) - # - # @pytest.mark.parametrize("test_name", complete) - # def test_bfs2(self, test_name): - # params = { - # "v_type_set": ["V8"], - # "e_type_set": [test_name], - # "max_hops": 10, - # "v_start": {"id": "A", "type": "V8"}, - # "print_results": True, - # "result_attribute": "", - # "file_path": "", - # "display_edges": True, - # } - # url = os.path.join(self.base_url, "bfs/", test_name + ".json") - # baseline = requests.get(url).text - # result = json.dumps(self.feat.runAlgorithm("tg_bfs", params=params)) - # assert sorted(baseline) == sorted(result) - # - # @pytest.mark.parametrize("test_name", test_graphs1) - # def test_shortest_ss_no_wt(self, test_name): - # params = { - # "source": {"id": "A", "type": "V20"}, - # "v_type_set": ["V20"], - # "e_type_set": [test_name], - # "print_limit": -1, - # "print_results": True, - # "result_attribute": "", - # "file_path": "", - # "display_edges": True, - # } - # url = os.path.join(self.base_url, "shortest_ss_no_wt/", test_name + ".json") - # baseline = requests.get(url).text - # result = json.dumps( - # self.feat.runAlgorithm("tg_shortest_ss_no_wt", params=params) - # ) - # assert sorted(baseline) == sorted(result) - # - # @pytest.mark.parametrize("test_name", complete) - # def test_shortest_ss_no_wt2(self, test_name): - # params = { - # "source": {"id": "A", "type": "V8"}, - # "v_type_set": ["V8"], - # "e_type_set": [test_name], - # "print_limit": -1, - # "print_results": True, - # "result_attribute": "", - # "file_path": "", - # "display_edges": True, - # } - # url = os.path.join(self.base_url, "shortest_ss_no_wt/", test_name + ".json") - # baseline = requests.get(url).text - # result = json.dumps( - # self.feat.runAlgorithm("tg_shortest_ss_no_wt", params=params) - # ) - # assert sorted(baseline) == sorted(result) + feat = util.get_featurizer() + base_path = "data/baseline/graph_algorithms_baselines/path_finding" + + # includes unweighted directed and undirected graphs, as well as one weighted graph (Line_Weighted) + test_graphs1 = [ + "Empty", + "Empty_Directed", + "Line", + "Line_Directed", + "Ring", + "Ring_Directed", + "Hub_Spoke", + "Hub_Spoke_Directed", + "Hub_Connected_Hub_Spoke", + "Tree", + "Tree_Directed", + "DAG_Directed", + "Line_Weighted", + ] + complete = ["Complete", "Complete_Directed"] + + @pytest.mark.parametrize("test_name", test_graphs1) + def test_bfs1(self, test_name): + params = { + "v_type_set": ["V20"], + "e_type_set": [test_name], + "max_hops": 10, + "v_start": {"id": "A", "type": "V20"}, + "print_results": True, + "result_attribute": "", + "file_path": "", + "display_edges": True, + } + + with open(f"{self.base_path}/bfs/{test_name}.json") as f: + baseline = json.load(f) + result = self.feat.runAlgorithm("tg_bfs", params=params) + + for b in baseline[0]["Start"]: + found = False + for r in result[0]["Start"]: + if ( + b["v_id"] == r["v_id"] + and b["v_type"] == r["v_type"] + and b["attributes"]["Start.@sum_step"] + == r["attributes"]["Start.@sum_step"] + ): + found = True + if not found: + pytest.fail() + + for b in baseline[1]["@@edge_set"]: + found = False + for r in result[1]["@@edge_set"]: + if ( + b["e_type"] == r["e_type"] + and b["from_id"] == r["from_id"] + and b["to_id"] == r["to_id"] + and b["to_type"] == r["to_type"] + ): + found = True + if not found: + pytest.fail() + + @pytest.mark.parametrize("test_name", complete) + def test_bfs2(self, test_name): + params = { + "v_type_set": ["V8"], + "e_type_set": [test_name], + "max_hops": 10, + "v_start": {"id": "A", "type": "V8"}, + "print_results": True, + "result_attribute": "", + "file_path": "", + "display_edges": True, + } + with open(f"{self.base_path}/bfs/{test_name}.json") as f: + baseline = json.load(f) + + result = self.feat.runAlgorithm("tg_bfs", params=params) + for b in baseline[0]["Start"]: + found = False + for r in result[0]["Start"]: + if ( + b["v_id"] == r["v_id"] + and b["v_type"] == r["v_type"] + and b["attributes"]["Start.@sum_step"] + == r["attributes"]["Start.@sum_step"] + ): + found = True + if not found: + pytest.fail() + + for b in baseline[1]["@@edge_set"]: + found = False + for r in result[1]["@@edge_set"]: + if ( + b["e_type"] == r["e_type"] + and b["from_id"] == r["from_id"] + and b["to_id"] == r["to_id"] + and b["to_type"] == r["to_type"] + ): + found = True + if not found: + pytest.fail() + + @pytest.mark.parametrize("test_name", test_graphs1) + def test_shortest_ss_no_wt(self, test_name): + params = { + "source": {"id": "A", "type": "V20"}, + "v_type_set": ["V20"], + "e_type_set": [test_name], + "print_limit": -1, + "print_results": True, + "result_attribute": "", + "file_path": "", + "display_edges": True, + } + with open(f"{self.base_path}/shortest_ss_no_wt/{test_name}.json") as f: + baseline = json.load(f) + + result = self.feat.runAlgorithm("tg_shortest_ss_no_wt", params=params) + for b in baseline[0]["ResultSet"]: + found = False + for r in result[0]["ResultSet"]: + if ( + b["v_id"] == r["v_id"] + and b["v_type"] == r["v_type"] + and b["attributes"]["ResultSet.@min_dis"] + == r["attributes"]["ResultSet.@min_dis"] + and b["attributes"]["ResultSet.@path_list"] + == r["attributes"]["ResultSet.@path_list"] + ): + found = True + if not found: + pytest.fail() + + for b in baseline[1]["@@edge_set"]: + found = False + for r in result[1]["@@edge_set"]: + if ( + b["e_type"] == r["e_type"] + and b["from_id"] == r["from_id"] + and b["from_type"] == r["from_type"] + and b["to_id"] == r["to_id"] + and b["to_type"] == r["to_type"] + ): + found = True + if not found: + pytest.fail() + + @pytest.mark.parametrize("test_name", complete) + def test_shortest_ss_no_wt2(self, test_name): + params = { + "source": {"id": "A", "type": "V8"}, + "v_type_set": ["V8"], + "e_type_set": [test_name], + "print_limit": -1, + "print_results": True, + "result_attribute": "", + "file_path": "", + "display_edges": True, + } + # url = os.path.join(self.base_url, "shortest_ss_no_wt/", test_name + ".json") + # baseline = requests.get(url).text + # result = json.dumps( + # self.feat.runAlgorithm("tg_shortest_ss_no_wt", params=params) + # ) + # assert sorted(baseline) == sorted(result) + with open(f"{self.base_path}/shortest_ss_no_wt/{test_name}.json") as f: + baseline = json.load(f) + + result = self.feat.runAlgorithm("tg_shortest_ss_no_wt", params=params) + for b in baseline[0]["ResultSet"]: + found = False + for r in result[0]["ResultSet"]: + if ( + b["v_id"] == r["v_id"] + and b["v_type"] == r["v_type"] + and b["attributes"]["ResultSet.@min_dis"] + == r["attributes"]["ResultSet.@min_dis"] + and b["attributes"]["ResultSet.@path_list"] + == r["attributes"]["ResultSet.@path_list"] + ): + found = True + if not found: + pytest.fail() + + for b in baseline[1]["@@edge_set"]: + found = False + for r in result[1]["@@edge_set"]: + if ( + b["e_type"] == r["e_type"] + and b["from_id"] == r["from_id"] + and b["from_type"] == r["from_type"] + and b["to_id"] == r["to_id"] + and b["to_type"] == r["to_type"] + ): + found = True + if not found: + pytest.fail() diff --git a/tests/test/test_topological_link_prediction.py b/tests/test/test_topological_link_prediction.py index 06e6b169..f66dab4a 100644 --- a/tests/test/test_topological_link_prediction.py +++ b/tests/test/test_topological_link_prediction.py @@ -1,113 +1,129 @@ import json -import os import pytest -import requests import util class TestTopologicalLinkPrediction: - pass - # feat = util.get_featurizer() - # base_url = os.environ["TG_DATA"] - # - # testdata = [ - # "topo_link1", - # "topo_link2", - # "topo_link3", - # "topo_link4", - # "topo_link5", - # "topo_link6", - # "topo_link_directed", - # ] - # testdata_sc = [ - # ("A", "B", "community_int", "INT", "test1"), - # ("A", "C", "community_int", "INT", "test2"), - # ("A", "B", "community_string", "STRING", "test3"), - # ("A", "C", "community_string", "STRING", "test4"), - # ] - # - # @pytest.mark.parametrize("test_name", testdata) - # def test_adamic_adar(self, test_name): - # params = { - # "v_source": {"id": "A", "type": "V8"}, - # "v_target": {"id": "B", "type": "V8"}, - # "e_type_set": [test_name], - # "print_results": True, - # } - # url = os.path.join(self.base_url, "adamic_adar", test_name + ".json") - # baseline = requests.get(url).text - # result = json.dumps(self.feat.runAlgorithm("tg_adamic_adar", params=params)) - # assert sorted(baseline) == sorted(result) - # - # @pytest.mark.parametrize("test_name", testdata) - # def test_common_neighbors(self, test_name): - # params = { - # "v_source": {"id": "A", "type": "V8"}, - # "v_target": {"id": "B", "type": "V8"}, - # "e_type_set": [test_name], - # "print_results": True, - # } - # url = os.path.join(self.base_url, "common_neighbors/", test_name + ".json") - # baseline = requests.get(url).text - # result = json.dumps( - # self.feat.runAlgorithm("tg_common_neighbors", params=params) - # ) - # assert sorted(baseline) == sorted(result) - # - # @pytest.mark.parametrize("test_name", testdata) - # def test_preferential_attachment(self, test_name): - # params = { - # "v_source": {"id": "A", "type": "V8"}, - # "v_target": {"id": "B", "type": "V8"}, - # "e_type_set": [test_name], - # "print_results": True, - # } - # url = os.path.join(self.base_url, "preferential_attachment/", test_name + ".json") - # baseline = requests.get(url).text - # result = json.dumps( - # self.feat.runAlgorithm("tg_preferential_attachment", params=params) - # ) - # assert sorted(baseline) == sorted(result) - # - # @pytest.mark.parametrize("test_name", testdata) - # def test_resource_allocation(self, test_name): - # params = { - # "v_source": {"id": "A", "type": "V8"}, - # "v_target": {"id": "B", "type": "V8"}, - # "e_type_set": [test_name], - # "print_results": True, - # } - # url = os.path.join(self.base_url, "resource_allocation/", test_name + ".json") - # baseline = requests.get(url).text - # result = json.dumps( - # self.feat.runAlgorithm("tg_resource_allocation", params=params) - # ) - # assert sorted(baseline) == sorted(result) - # - # @pytest.mark.parametrize("test_name", testdata) - # def test_total_neighbors(self, test_name): - # params = { - # "v_source": {"id": "A", "type": "V8"}, - # "v_target": {"id": "B", "type": "V8"}, - # "e_type_set": [test_name], - # "print_results": True, - # } - # url = os.path.join(self.base_url, "total_neighbors/", test_name + ".json") - # baseline = requests.get(url).text - # result = json.dumps(self.feat.runAlgorithm("tg_total_neighbors", params=params)) - # assert sorted(baseline) == sorted(result) - # - # @pytest.mark.parametrize("source, target, attr, attr_type, test_name", testdata_sc) - # def test_same_community(self, source, target, attr, attr_type, test_name): - # params = { - # "v_source": {"id": source, "type": "V4"}, - # "v_target": {"id": target, "type": "V4"}, - # "community_attribute": attr, - # "community_attr_type": attr_type, - # "print_results": True, - # } - # result = json.dumps(self.feat.runAlgorithm("tg_same_community", params=params)) - # url = os.path.join(self.base_url, "same_community/", test_name + ".json") - # baseline = requests.get(url).text - # assert sorted(baseline) == sorted(result) + feat = util.get_featurizer() + base_path = "data/baseline/graph_algorithms_baselines/topological_link_prediction" + testdata = [ + "topo_link1", + "topo_link2", + "topo_link3", + "topo_link4", + "topo_link5", + "topo_link6", + "topo_link_directed", + ] + testdata_sc = [ + ("A", "B", "community_int", "INT", "test1"), + ("A", "C", "community_int", "INT", "test2"), + ("A", "B", "community_string", "STRING", "test3"), + ("A", "C", "community_string", "STRING", "test4"), + ] + + @pytest.mark.parametrize("test_name", testdata) + def test_adamic_adar(self, test_name): + params = { + "v_source": {"id": "A", "type": "V8"}, + "v_target": {"id": "B", "type": "V8"}, + "e_type_set": [test_name], + "print_results": True, + } + with open(f"{self.base_path}/adamic_adar/{test_name}.json") as f: + baseline = json.load(f) + baseline = baseline[0]["@@sum_closeness"] + + result = self.feat.runAlgorithm("tg_adamic_adar", params=params) + result = result[0]["@@sum_closeness"] + assert result == baseline + + @pytest.mark.parametrize("test_name", testdata) + def test_common_neighbors(self, test_name): + params = { + "v_source": {"id": "A", "type": "V8"}, + "v_target": {"id": "B", "type": "V8"}, + "e_type_set": [test_name], + "print_results": True, + } + + with open(f"{self.base_path}/common_neighbors/{test_name}.json") as f: + baseline = json.load(f) + baseline = baseline[0]["closeness"] + + result = self.feat.runAlgorithm("tg_common_neighbors", params=params) + result = result[0]["closeness"] + assert result == baseline + + @pytest.mark.parametrize("test_name", testdata) + def test_preferential_attachment(self, test_name): + params = { + "v_source": {"id": "A", "type": "V8"}, + "v_target": {"id": "B", "type": "V8"}, + "e_type_set": [test_name], + "print_results": True, + } + + with open(f"{self.base_path}/preferential_attachment/{test_name}.json") as f: + baseline = json.load(f) + baseline = baseline[0]["closeness"] + + result = self.feat.runAlgorithm("tg_preferential_attachment", params=params) + result = result[0]["closeness"] + assert result == baseline + + @pytest.mark.parametrize("test_name", testdata) + def test_resource_allocation(self, test_name): + params = { + "v_source": {"id": "A", "type": "V8"}, + "v_target": {"id": "B", "type": "V8"}, + "e_type_set": [test_name], + "print_results": True, + } + + with open(f"{self.base_path}/resource_allocation/{test_name}.json") as f: + baseline = json.load(f) + baseline = baseline[0]["@@sum_closeness"] + + result = self.feat.runAlgorithm("tg_resource_allocation", params=params) + result = result[0]["@@sum_closeness"] + assert result == baseline + + @pytest.mark.parametrize("test_name", testdata) + def test_total_neighbors(self, test_name): + params = { + "v_source": {"id": "A", "type": "V8"}, + "v_target": {"id": "B", "type": "V8"}, + "e_type_set": [test_name], + "print_results": True, + } + + with open(f"{self.base_path}/total_neighbors/{test_name}.json") as f: + baseline = json.load(f) + baseline = baseline[0]["closeness"] + + result = self.feat.runAlgorithm("tg_total_neighbors", params=params) + result = result[0]["closeness"] + assert result == baseline + + @pytest.mark.parametrize("source, target, attr, attr_type, test_name", testdata_sc) + def test_same_community(self, source, target, attr, attr_type, test_name): + params = { + "v_source": {"id": source, "type": "V4"}, + "v_target": {"id": target, "type": "V4"}, + "community_attribute": attr, + "community_attr_type": attr_type, + "print_results": True, + } + # result = json.dumps(self.feat.runAlgorithm("tg_same_community", params=params)) + # url = os.path.join(self.base_url, "same_community/", test_name + ".json") + # baseline = requests.get(url).text + # assert sorted(baseline) == sorted(result) + + with open(f"{self.base_path}/same_community/{test_name}.json") as f: + baseline = json.dumps(json.load(f)) + + result = self.feat.runAlgorithm("tg_same_community", params=params) + result = json.dumps(result) + assert result == baseline