rustsim-spaces 0.0.1

Space implementations (grid, continuous, graph, hybrid) for rustsim
Documentation
  • Coverage
  • 89.76%
    228 out of 254 items documented0 out of 186 items with examples
  • Size
  • Source code size: 215.81 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 4.12 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 35s Average build duration of successful builds.
  • all releases: 35s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Repository
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • federicomarcantognini

Space implementations for agent-based models.

Each space defines a topology in which agents exist and provides:

  • Position types
  • Agent registration / deregistration
  • Neighbor queries
  • Random position generation
Space Position type Metric Use case
NothingSpace - - Non-spatial models
Grid2D (usize, usize) Chebyshev Cellular automata, Schelling
Grid2DSingle (usize, usize) Chebyshev Single-occupancy grids
ContinuousSpace2D ContinuousPos Euclidean 2D flocking, particles
ContinuousSpace3D ContinuousPos3D Euclidean 3D physics
GraphSpace usize (node index) Hops (BFS) Networks, social graphs
HybridSpace HybridPos Hops + Euclidean Buildings, multi-room environments
LinkSpace (NodeId, NodeId) Link distance Generic link-based networks