Crates.io | net_ensembles |
lib.rs | net_ensembles |
version | 0.5.0 |
source | src |
created_at | 2020-04-08 14:18:33.200257 |
updated_at | 2021-09-30 14:57:48.564887 |
description | Erdős-Rényi and small world ensembles. For simple sampling, Markov chains etc. |
homepage | https://www.yfeld.de |
repository | https://github.com/Pardoxa/net_ensembles |
max_upload_size | |
id | 227632 |
size | 279,041 |
Minimal Rust version: 1.55.0
Implements simple sampling and monte carlo (or rather markov-) steps, that can be used to create a markov chain.
This is intended to be used for various different use cases. As such, you can easily define additional data that should be stored at each vertex.
Add this to your Cargo.toml
:
[dependencies]
net_ensembles = "0.5"
# for feature "serde_support" (enabled by default) also use
serde = { version = "1.0", features = ["derive"] }
If you do not need serde
support, add this instead:
[dependencies]
net_ensembles = { version = "0.5", default-features = false }
See changelog. Note that savestates (created with serde) of v0.4 are incompatible with savestates generated by older versions and vise versa. Braking changes may or may not affect the loading of save states, you have to test that out yourself
On a 64 bit system drawing an usize consumes more randomness than on a 32 bit system,
therefore ensembles drawn etc. are affected by the size of usize
.
.dot
file from it.
There are different options for that, choose which one fits you best.No warranties whatsoever, but since I am writing this library for my own scientific simulations, I do my best to avoid errors.
You can learn more about me and my research on my homepage.
If you notice any bugs, or want to request new features: do not hesitate to open a new issue on the repository.
Due to implementation details, where I prioritize fast access of vertices, it is unlikely, that I will implement the option to remove vertices. If I do, it will likely be a relatively costly operation, so keep that in mind.
sampling
module into a different crate in the future.
If I do, everything will likely be reexported at the same position as currentlyLicensed under either of
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.