bigrandomgraphs 0.0.1__tar.gz → 0.0.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {bigrandomgraphs-0.0.1 → bigrandomgraphs-0.0.3}/PKG-INFO +1 -1
- {bigrandomgraphs-0.0.1 → bigrandomgraphs-0.0.3}/bigrandomgraphs.egg-info/PKG-INFO +1 -1
- {bigrandomgraphs-0.0.1 → bigrandomgraphs-0.0.3}/setup.py +2 -2
- {bigrandomgraphs-0.0.1 → bigrandomgraphs-0.0.3}/src/generate_model.cpp +2 -1
- {bigrandomgraphs-0.0.1 → bigrandomgraphs-0.0.3}/src/wrapper_bindings.cpp +2 -2
- {bigrandomgraphs-0.0.1 → bigrandomgraphs-0.0.3}/CMakeLists.txt +0 -0
- {bigrandomgraphs-0.0.1 → bigrandomgraphs-0.0.3}/README.md +0 -0
- {bigrandomgraphs-0.0.1 → bigrandomgraphs-0.0.3}/bigrandomgraphs.egg-info/SOURCES.txt +0 -0
- {bigrandomgraphs-0.0.1 → bigrandomgraphs-0.0.3}/bigrandomgraphs.egg-info/dependency_links.txt +0 -0
- {bigrandomgraphs-0.0.1 → bigrandomgraphs-0.0.3}/bigrandomgraphs.egg-info/not-zip-safe +0 -0
- {bigrandomgraphs-0.0.1 → bigrandomgraphs-0.0.3}/bigrandomgraphs.egg-info/top_level.txt +0 -0
- {bigrandomgraphs-0.0.1 → bigrandomgraphs-0.0.3}/setup.cfg +0 -0
- {bigrandomgraphs-0.0.1 → bigrandomgraphs-0.0.3}/src/__init__.py +0 -0
- {bigrandomgraphs-0.0.1 → bigrandomgraphs-0.0.3}/test.py +0 -0
|
@@ -78,7 +78,7 @@ class CMakeBuild(build_ext):
|
|
|
78
78
|
|
|
79
79
|
setup(
|
|
80
80
|
name='bigrandomgraphs',
|
|
81
|
-
version='0.0.
|
|
81
|
+
version='0.0.3',
|
|
82
82
|
author='Jason P. Smith',
|
|
83
83
|
description='Python package for fast creation of large random graphs',
|
|
84
84
|
ext_modules=[CMakeExtension('bigrandomgraphs')],
|
|
@@ -86,4 +86,4 @@ setup(
|
|
|
86
86
|
packages=['bigrandomgraphs'],
|
|
87
87
|
package_dir={'bigrandomgraphs': './src/'},
|
|
88
88
|
zip_safe=False,
|
|
89
|
-
)
|
|
89
|
+
)
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
#include <regex>
|
|
10
10
|
#include <math.h>
|
|
11
11
|
#include <limits>
|
|
12
|
+
#include <array>
|
|
12
13
|
// #include <mutex>
|
|
13
14
|
|
|
14
15
|
typedef uint32_t vertex_t;
|
|
@@ -74,7 +75,7 @@ std::vector<std::pair<uint64_t,uint64_t>> hash_seeds(uint64_t seed1, uint64_t se
|
|
|
74
75
|
std::hash<std::thread::id> pcg_hasher;
|
|
75
76
|
new_seed2 = 2 * (uint64_t) pcg_hasher(std::this_thread::get_id()) + 1 + i+413;
|
|
76
77
|
} else {
|
|
77
|
-
|
|
78
|
+
new_seed2 = seed2+i*5223;
|
|
78
79
|
}
|
|
79
80
|
the_seeds.push_back(std::make_pair(new_seed1, new_seed2));
|
|
80
81
|
}
|
|
@@ -15,14 +15,14 @@ PYBIND11_MODULE(pybrg, m) {
|
|
|
15
15
|
std::vector<std::vector<vertex_t>> col(threads);
|
|
16
16
|
|
|
17
17
|
std::vector<std::pair<uint64_t,uint64_t>> new_seeds = hash_seeds(seed1,seed2,threads);
|
|
18
|
-
|
|
18
|
+
for(auto i : new_seeds){ std::cout << i.first << " " << i.second << std::endl;}
|
|
19
19
|
//Start each thread
|
|
20
20
|
for (size_t index = 0; index < threads - 1; ++index){
|
|
21
21
|
t[index] = std::thread(&add_edges_ER, index, n, threads, p, std::ref(row[index]),
|
|
22
22
|
std::ref(col[index]), new_seeds[index].first, new_seeds[index].second);
|
|
23
23
|
}
|
|
24
24
|
add_edges_ER(threads-1, n, threads, p, std::ref(row[threads-1]),std::ref(col[threads-1]),
|
|
25
|
-
new_seeds[threads-1].first, new_seeds[threads-1].
|
|
25
|
+
new_seeds[threads-1].first, new_seeds[threads-1].second);
|
|
26
26
|
|
|
27
27
|
// Wait until all threads stopped
|
|
28
28
|
for (size_t i = 0; i < threads - 1; ++i) t[i].join();
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{bigrandomgraphs-0.0.1 → bigrandomgraphs-0.0.3}/bigrandomgraphs.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|