diff --git a/CHANGELOG.md b/CHANGELOG.md index 66ac636..0da3063 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [0.1.2] - 2024-11-20 +### Changed +- Fixed dynamic age algorithm implementation. + ## [0.1.1] - 2024-10-11 ### Added - Introduced nodes selection based on initial evaluation. diff --git a/src/nsdlib/algorithms/evaluation/dynamic_age.py b/src/nsdlib/algorithms/evaluation/dynamic_age.py index 2888886..0490732 100644 --- a/src/nsdlib/algorithms/evaluation/dynamic_age.py +++ b/src/nsdlib/algorithms/evaluation/dynamic_age.py @@ -15,7 +15,7 @@ def dynamic_age(network: Graph) -> Dict[int, float]: ---------- - [1] V. Fioriti i M. Chinnici, „Predicting the sources of an outbreak with a spectral technique”, ArXiv12112333 Math-Ph Physicsphysics, lis. 2012, Dostęp: 6 maj 2021. [Online]. Dostępne na: http://arxiv.org/abs/1211.2333 """ - A = nx.adjacency_matrix(network).todense().A + A = nx.adjacency_matrix(network).todense() dynamicAges = {node: 0 for node in network.nodes} lamda_max = max(np.linalg.eigvals(A)).real diff --git a/src/nsdlib/version.py b/src/nsdlib/version.py index 54fc741..54f6c62 100644 --- a/src/nsdlib/version.py +++ b/src/nsdlib/version.py @@ -1,3 +1,3 @@ """nsdlib package version.""" -__version__ = "0.1.1" +__version__ = "0.1.2"