-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #148 from tigergraph/testing
Testing
- Loading branch information
Showing
155 changed files
with
1,936 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,16 @@ | ||
**/.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 | ||
pyrightconfig.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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", | ||
) |
1 change: 1 addition & 0 deletions
1
tests/data/baseline/graph_algorithms_baselines/centrality/article_rank/Empty.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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}]}] |
1 change: 1 addition & 0 deletions
1
tests/data/baseline/graph_algorithms_baselines/centrality/article_rank/Hub_Spoke.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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}]}] |
1 change: 1 addition & 0 deletions
1
.../data/baseline/graph_algorithms_baselines/centrality/article_rank/Hub_Spoke_Directed.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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}]}] |
1 change: 1 addition & 0 deletions
1
tests/data/baseline/graph_algorithms_baselines/centrality/article_rank/Line.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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}]}] |
1 change: 1 addition & 0 deletions
1
tests/data/baseline/graph_algorithms_baselines/centrality/article_rank/Line_Directed.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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}]}] |
1 change: 1 addition & 0 deletions
1
tests/data/baseline/graph_algorithms_baselines/centrality/article_rank/Ring.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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}]}] |
1 change: 1 addition & 0 deletions
1
tests/data/baseline/graph_algorithms_baselines/centrality/article_rank/Ring_Directed.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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}]}] |
1 change: 1 addition & 0 deletions
1
tests/data/baseline/graph_algorithms_baselines/centrality/article_rank/Tree.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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}]}] |
1 change: 1 addition & 0 deletions
1
tests/data/baseline/graph_algorithms_baselines/centrality/article_rank/Tree_Directed.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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}]}] |
1 change: 1 addition & 0 deletions
1
tests/data/baseline/graph_algorithms_baselines/centrality/closeness_centrality/Empty.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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}]}] |
1 change: 1 addition & 0 deletions
1
...s/data/baseline/graph_algorithms_baselines/centrality/closeness_centrality/Hub_Spoke.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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}]}] |
1 change: 1 addition & 0 deletions
1
...seline/graph_algorithms_baselines/centrality/closeness_centrality/Hub_Spoke_Directed.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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}]}] |
1 change: 1 addition & 0 deletions
1
tests/data/baseline/graph_algorithms_baselines/centrality/closeness_centrality/Line.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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}]}] |
1 change: 1 addition & 0 deletions
1
...ta/baseline/graph_algorithms_baselines/centrality/closeness_centrality/Line_Directed.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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}]}] |
1 change: 1 addition & 0 deletions
1
tests/data/baseline/graph_algorithms_baselines/centrality/closeness_centrality/Ring.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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}]}] |
1 change: 1 addition & 0 deletions
1
...ta/baseline/graph_algorithms_baselines/centrality/closeness_centrality/Ring_Directed.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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}]}] |
1 change: 1 addition & 0 deletions
1
tests/data/baseline/graph_algorithms_baselines/centrality/closeness_centrality/Tree.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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}]}] |
1 change: 1 addition & 0 deletions
1
...ta/baseline/graph_algorithms_baselines/centrality/closeness_centrality/Tree_Directed.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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}]}] |
1 change: 1 addition & 0 deletions
1
tests/data/baseline/graph_algorithms_baselines/centrality/degree_centrality/Empty.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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}]}] |
1 change: 1 addition & 0 deletions
1
tests/data/baseline/graph_algorithms_baselines/centrality/degree_centrality/Hub_Spoke.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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}]}] |
1 change: 1 addition & 0 deletions
1
tests/data/baseline/graph_algorithms_baselines/centrality/degree_centrality/Line.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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}]}] |
Oops, something went wrong.