Chore: changed name of synthetic data folders, and include their

symlinks
This commit is contained in:
Richard Wong 2024-05-08 23:40:25 +09:00
parent 39b3570e11
commit 46476ab2b4
Signed by: richard
GPG Key ID: 72948FBB6D359A6D
8 changed files with 16 additions and 18 deletions

View File

@ -1,2 +0,0 @@
100*
make_scale_free_graph

View File

@ -0,0 +1 @@
100*

View File

@ -2,23 +2,22 @@
# Define the parameters # Define the parameters
num_node_range=(100 1000 10000) num_node_range=(100 1000 10000)
edge_multiplier_range=(2 3 5 10 20) degree_range=(2 3 5 10 20)
copies=20 copies=20
seed=41 seed=41
max_jobs=2 max_jobs=4
running_jobs=0 running_jobs=0
# Loop through different parameters # Loop through different parameters
for num_node in "${num_node_range[@]}"; do for num_node in "${num_node_range[@]}"; do
for edge_multiplier in "${edge_multiplier_range[@]}"; do for num_degree in "${degree_range[@]}"; do
num_edge=$((num_node * edge_multiplier)) output_folder="${num_node}n${num_degree}d"
output_folder="${num_node}n${num_edge}e"
mkdir -p $output_folder mkdir -p $output_folder
# Run the program with the parameters # Run the program with the parameters
echo "run with $num_node nodes and $num_edge edges output to $output_folder" echo "run with $num_node nodes and $num_degree degree output to $output_folder"
./make_regular_graph $num_node $num_edge $copies $seed $output_folder & ./make_regular_graph $num_node $num_degree $copies $seed $output_folder &
((running_jobs++)) ((running_jobs++))

View File

@ -0,0 +1 @@
../../make_graphs/bin/make_regular_graph

View File

@ -1,2 +0,0 @@
100*
make_regular_graph

1
synthetic_data/scale_free/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
100*

View File

@ -2,23 +2,22 @@
# Define the parameters # Define the parameters
num_node_range=(100 1000 10000) num_node_range=(100 1000 10000)
edge_multiplier_range=(2 3 5 10 20) degree_range=(2 3 5 10 20)
copies=20 copies=20
seed=41 seed=41
max_jobs=2 max_jobs=4
running_jobs=0 running_jobs=0
# Loop through different parameters # Loop through different parameters
for num_node in "${num_node_range[@]}"; do for num_node in "${num_node_range[@]}"; do
for edge_multiplier in "${edge_multiplier_range[@]}"; do for num_degree in "${degree_range[@]}"; do
num_edge=$((num_node * edge_multiplier)) output_folder="${num_node}n${num_degree}d"
output_folder="${num_node}n${num_edge}e"
mkdir -p $output_folder mkdir -p $output_folder
# Run the program with the parameters # Run the program with the parameters
echo "run with $num_node nodes and $num_edge edges output to $output_folder" echo "run with $num_node nodes and $num_degree degree output to $output_folder"
./make_scale_free_graph $num_node $num_edge $copies $seed $output_folder & ./make_scale_free_graph $num_node $num_degree $copies $seed $output_folder &
((running_jobs++)) ((running_jobs++))

View File

@ -0,0 +1 @@
../../make_graphs/bin/make_scale_free_graph