simulation-alg 0.1.13__tar.gz → 0.1.15__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.
Files changed (22) hide show
  1. {simulation_alg-0.1.13 → simulation_alg-0.1.15}/Cargo.lock +3 -3
  2. {simulation_alg-0.1.13 → simulation_alg-0.1.15}/Cargo.toml +2 -2
  3. {simulation_alg-0.1.13 → simulation_alg-0.1.15}/PKG-INFO +1 -1
  4. {simulation_alg-0.1.13 → simulation_alg-0.1.15}/pyproject.toml +1 -1
  5. {simulation_alg-0.1.13 → simulation_alg-0.1.15}/src/graph/hypergraph.rs +7 -0
  6. {simulation_alg-0.1.13 → simulation_alg-0.1.15}/.github/workflows/ci.yml +0 -0
  7. {simulation_alg-0.1.13 → simulation_alg-0.1.15}/.gitignore +0 -0
  8. {simulation_alg-0.1.13 → simulation_alg-0.1.15}/.gitmodules +0 -0
  9. {simulation_alg-0.1.13 → simulation_alg-0.1.15}/LICENSE +0 -0
  10. {simulation_alg-0.1.13 → simulation_alg-0.1.15}/README.md +0 -0
  11. {simulation_alg-0.1.13 → simulation_alg-0.1.15}/hyper-simulation.log +0 -0
  12. {simulation_alg-0.1.13 → simulation_alg-0.1.15}/python/__init__.py +0 -0
  13. {simulation_alg-0.1.13 → simulation_alg-0.1.15}/requirements.txt +0 -0
  14. {simulation_alg-0.1.13 → simulation_alg-0.1.15}/simulation.pyi +0 -0
  15. {simulation_alg-0.1.13 → simulation_alg-0.1.15}/src/graph/mod.rs +0 -0
  16. {simulation_alg-0.1.13 → simulation_alg-0.1.15}/src/graph/networkx_graph.rs +0 -0
  17. {simulation_alg-0.1.13 → simulation_alg-0.1.15}/src/lib.rs +0 -0
  18. {simulation_alg-0.1.13 → simulation_alg-0.1.15}/src/utils.rs +0 -0
  19. {simulation_alg-0.1.13 → simulation_alg-0.1.15}/test.py +0 -0
  20. {simulation_alg-0.1.13 → simulation_alg-0.1.15}/test_bounded_simulation.py +0 -0
  21. {simulation_alg-0.1.13 → simulation_alg-0.1.15}/tests/test_hyper_simulation.py +0 -0
  22. {simulation_alg-0.1.13 → simulation_alg-0.1.15}/tests/test_simulation.py +0 -0
@@ -188,9 +188,9 @@ dependencies = [
188
188
 
189
189
  [[package]]
190
190
  name = "graph-simulation"
191
- version = "0.1.26"
191
+ version = "0.1.30"
192
192
  source = "registry+https://github.com/rust-lang/crates.io-index"
193
- checksum = "d9d438a0ffa1040ffc4355fe60bdbab50e4b08e51f879258666b5c9361c9daeb"
193
+ checksum = "d1ae0e4a6c98d653e570fa2b90775aefae4894713cd34bc4f09369e7e1d11cb0"
194
194
  dependencies = [
195
195
  "bincode",
196
196
  "env_logger",
@@ -543,7 +543,7 @@ dependencies = [
543
543
 
544
544
  [[package]]
545
545
  name = "simulation"
546
- version = "0.1.13"
546
+ version = "0.1.15"
547
547
  dependencies = [
548
548
  "graph-base",
549
549
  "graph-simulation",
@@ -1,6 +1,6 @@
1
1
  [package]
2
2
  name = "simulation"
3
- version = "0.1.13"
3
+ version = "0.1.15"
4
4
  edition = "2021"
5
5
  license = "MIT"
6
6
  description = "A Python package for simulation algorithms"
@@ -14,7 +14,7 @@ crate-type = ["cdylib"]
14
14
 
15
15
  [dependencies]
16
16
  pyo3 = { version = "0.27.1", features = ["extension-module"] }
17
- graph-simulation = "0.1.26"
17
+ graph-simulation = "0.1.30"
18
18
  graph-base = "0.1.14"
19
19
  rayon = "1.10.0"
20
20
  # [tool.maturin]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: simulation-alg
3
- Version: 0.1.13
3
+ Version: 0.1.15
4
4
  Classifier: Programming Language :: Rust
5
5
  Classifier: Programming Language :: Python :: Implementation :: CPython
6
6
  Classifier: Programming Language :: Python :: Implementation :: PyPy
@@ -4,7 +4,7 @@ build-backend = "maturin"
4
4
 
5
5
  [project]
6
6
  name = "simulation-alg"
7
- version = "0.1.13"
7
+ version = "0.1.15"
8
8
  requires-python = ">=3.10"
9
9
  classifiers = [
10
10
  "Programming Language :: Rust",
@@ -448,6 +448,13 @@ impl<'a> Delta<'a> for DeltaImpl<'a> {
448
448
  impl<'a> DeltaImpl<'a> {
449
449
  fn from(delta: DeltaPy, query: &'a Hypergraph, data: &'a Hypergraph) -> Self {
450
450
  let mut pair_map: HashMap<(&Node, &Node), Vec<(SematicCluster<'a, Hyperedge>, SematicCluster<'a, Hyperedge>)>> = HashMap::new();
451
+
452
+ for u in &query.nodes {
453
+ for v in &data.nodes {
454
+ pair_map.entry((u, v)).or_default();
455
+ }
456
+ }
457
+
451
458
  for ((u_id, v_id), pairs) in delta.sematic_cluster_cache {
452
459
  let u = query.nodes.get(u_id).unwrap();
453
460
  let v = data.nodes.get(v_id).unwrap();
File without changes
File without changes