Skip to content

Commit

Permalink
refactor Source/ to src/
Browse files Browse the repository at this point in the history
  • Loading branch information
mkyl committed Feb 21, 2024
1 parent d62e238 commit 985e55e
Show file tree
Hide file tree
Showing 18 changed files with 17 additions and 11 deletions.
2 changes: 1 addition & 1 deletion Experiments/Experiments.jl
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ using Distributed
@everywhere using WeakRefStrings


@everywhere include("../Source/CardinalityWithColors.jl")
@everywhere include("../src/CardinalityWithColors.jl")
@everywhere include("utils.jl")
@everywhere include("load_datasets.jl")
include("load_querysets.jl")
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ add_labeled_edge!(d, (1, 2), 2)
update_node_labels!(d, 2, [3,4])
```

Functions to convert graph files formatted like [G-Care](https://github.com/yspark-dblab/gcare) or [In-Memory Subgraph Matching](https://github.com/RapidsAtHKUST/SubgraphMatching) are also included in `Source/Datasets.jl`:
Functions to convert graph files formatted like [G-Care](https://github.com/yspark-dblab/gcare) or [In-Memory Subgraph Matching](https://github.com/RapidsAtHKUST/SubgraphMatching) are also included in `src/Datasets.jl`:
```julia
# convert a .txt file (following G-Care format) into a PropertyGraph
d1 = load_dataset("data.txt")
Expand Down Expand Up @@ -118,7 +118,7 @@ The resulting cardinality will be a singular `Float64` value.

Optional parameters for the calculation can be changed such as the timeout, but more information can be found in the code documentation.

The `load_true_cardinality` function from `Source/Datasets.jl` also obtains the cardinality results from a given cardinality file (where the only element in the file is a singular cardinality value):
The `load_true_cardinality` function from `src/Datasets.jl` also obtains the cardinality results from a given cardinality file (where the only element in the file is a singular cardinality value):
```julia
exact_cardinality = load_true_cardinality("cardinality.txt")
```
Expand All @@ -143,4 +143,4 @@ The bash script `run_submitted_experiments.sh` in the `Experiments` folder is al
The script can be called from the main directory:
```
$ Experiments/run_submitted_experiments.sh
```
```
2 changes: 1 addition & 1 deletion general-testing.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"metadata": {},
"outputs": [],
"source": [
"include(\"Source/QuasiStableCardinalityEstimator.jl\")\n",
"include(\"src/QuasiStableCardinalityEstimator.jl\")\n",
"using Distributions\n",
"using DataStructures: counter, Dict, Set, Vector, inc!\n",
"using Plots"
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 6 additions & 0 deletions src/qColoringCardinality.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
"""
Placeholder for a short summary about qColoringCardinality.
"""
module qColoringCardinality

end # module
6 changes: 3 additions & 3 deletions test/debugaids.jl
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ using DataStructures: counter, Dict, Set, Vector, inc!
using Test
using Graphs
using AutoHashEquals
include("../Source/datasets.jl")
include("../Source/QuasiStableCardinalityEstimator.jl")
include("../src/datasets.jl")
include("../src/QuasiStableCardinalityEstimator.jl")

first_bool_path::BoolPath = [true, true]
copy_bool_path::BoolPath = [true, true]
Expand Down Expand Up @@ -35,4 +35,4 @@ second_struct = StringStorer(copy_string)
string_dict::Dict{StringStorer, Float64} = Dict()
string_dict[first_struct] = 1
string_dict[second_struct] = 1
println(string_dict)
println(string_dict)
2 changes: 1 addition & 1 deletion test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ using Distributions
using DataStructures: counter, Dict, Set, Vector, inc!
using Test
using Graphs
include("../Source/CardinalityWithColors.jl")
include("../src/CardinalityWithColors.jl")


# run subtests
Expand Down
4 changes: 2 additions & 2 deletions test/samplingtests.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
include("../Source/QuasiStableCardinalityEstimator.jl")
include("../src/QuasiStableCardinalityEstimator.jl")
using Distributions
using DataStructures: counter, Dict, Set, Vector, inc!

Expand Down Expand Up @@ -28,4 +28,4 @@ using Graphs
@test path_and_bounds[2][3] == 6
end
end
end
end

0 comments on commit 985e55e

Please sign in to comment.