Expand description
fdg (Force Directed Graph)
A Force Directed Graph Framework for Rust.
The goal of this project is to provide a force-directed graph framework and algorithms for Rust, as well as 2D and 3D visualizers that work on the web and desktop.
Contents
/fdg-sim
The underlying force simulation framework. Handles your dataset’s positions based on a physics engine of your choice (or creation)./fdg-macroquad
A visualizer forfdg-sim
that usesmacroquad
for rendering.
Structure
-----------------------
| Your Application |
-----------------------
| fdg-macroquad |
-----------------------
| fdg-sim |
-----------------------
Resources
- Force-Directed Graphs on Wikipedia
- Force Directed Drawing Algorithms (Kobourov)
- Example javascript force directed graph layout engines d3-force and ngraph.forcelayout
Re-exports
pub use petgraph;
Modules
Structs
A node on a ForceGraph
.
A simulation that runs all physics on the CPU.
Parameters for the simulation.
A 3-dimensional vector without SIMD support.
Enums
Number of dimensions to run the simulation in.
Traits
Syntactic sugar to make adding Node
s to a ForceGraph
easier.
Type Definitions
A helper type that creates a StableGraph
with our custom Node
.