bigrandomgraphs 0.0.2__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 1.0
2
2
  Name: bigrandomgraphs
3
- Version: 0.0.2
3
+ Version: 0.0.3
4
4
  Summary: Python package for fast creation of large random graphs
5
5
  Home-page: UNKNOWN
6
6
  Author: Jason P. Smith
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 1.0
2
2
  Name: bigrandomgraphs
3
- Version: 0.0.2
3
+ Version: 0.0.3
4
4
  Summary: Python package for fast creation of large random graphs
5
5
  Home-page: UNKNOWN
6
6
  Author: Jason P. Smith
@@ -78,7 +78,7 @@ class CMakeBuild(build_ext):
78
78
 
79
79
  setup(
80
80
  name='bigrandomgraphs',
81
- version='0.0.2',
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
+ )
@@ -75,7 +75,7 @@ std::vector<std::pair<uint64_t,uint64_t>> hash_seeds(uint64_t seed1, uint64_t se
75
75
  std::hash<std::thread::id> pcg_hasher;
76
76
  new_seed2 = 2 * (uint64_t) pcg_hasher(std::this_thread::get_id()) + 1 + i+413;
77
77
  } else {
78
- seed2 = seed2+i*5223;
78
+ new_seed2 = seed2+i*5223;
79
79
  }
80
80
  the_seeds.push_back(std::make_pair(new_seed1, new_seed2));
81
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].first);
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