You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Data: stores the satic data for creating graphs, and algorithm baseline results.
40
40
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
45
45
46
46
test:
47
47
@@ -71,10 +71,11 @@ test:
71
71
72
72
## Adding tests
73
73
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)).
76
76
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:
78
79
79
80
```py
80
81
# this function will run once for each of the graph names in the undirected_graphs list
0 commit comments