Skip to content

Commit e47d576

Browse files
contribs
1 parent 1918d1b commit e47d576

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

tests/CONTRIBUTING.md

+11-10
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ pip install -r requirements.txt
2323

2424
`test/.env`
2525

26-
- HOST_NAME: A that you have querywriter access to so setup.py can load data and queries to a subgraph named `graph_algorithms_testing`
27-
- USER_NAME=admin/writer
28-
- PASS=users_pass
26+
- HOST_NAME: A TG environment that you have querywriter access to so setup.py can load data and queries to a subgraph named `graph_algorithms_testing`
27+
- USER_NAME: user
28+
- PASS: user's password
2929

3030
`run.sh` does a few things:
3131

@@ -38,10 +38,10 @@ pip install -r requirements.txt
3838

3939
Data: stores the satic data for creating graphs, and algorithm baseline results.
4040

41-
- CSV files under `data/[heterogeneous_edges, unweighted_edges, weighted_edges]` store the adjacency information for creating graphs.
42-
- for example `data/weighted_edges/line_edges.csv` stores the edges and weights to create a weighted, line graph.
43-
- JSON files under `data/baseline` store the results for a given algorithm on a given graph type.
44-
- for example `data/baseline/centrality/pagerank/Line_Directed.json` stores the results for pagerank on a directed line graph
41+
- CSV files under `data/[heterogeneous_edges, unweighted_edges, weighted_edges]` store the adjacency information for creating graphs. The baselines for algorithms are made from these graphs
42+
- For example `data/weighted_edges/line_edges.csv` stores the edges and weights to create a weighted, line graph.
43+
- JSON files under `data/baseline` store the baseline results for a given algorithm on a given graph type.
44+
- For example `data/baseline/centrality/pagerank/Line_Directed.json` stores the baseline results for pagerank on a directed line graph
4545

4646
test:
4747

@@ -71,10 +71,11 @@ test:
7171

7272
## Adding tests
7373

74-
Start with the baseline. Add a section or module to `create_baseline.py` that creates a baseline for all the necessary graph types. The outline of the baseline should be written to the correct
75-
baseline path (see above [layout](#directory-layout)).
74+
Start with creating the baseline. Add a section to `create_baseline.py` that creates a baseline for all the necessary graph types for your algorithm. The output of the baseline should be written to
75+
the correct baseline path (see above [layout](#directory-layout)).
7676

77-
Add a method to the correct test file (i.e., community algorigthms go in community.py). The first test method in `test/test_centrality.py` is a good template to follow:
77+
If you're adding a new algorithm, add a test method for it to the algorithm family that it belongs to (i.e., community algorigthms go in community.py). The first test method in `test/test_centrality.py`
78+
is a good template to follow:
7879

7980
```py
8081
# this function will run once for each of the graph names in the undirected_graphs list

0 commit comments

Comments
 (0)