Expand description

fdg (Force Directed Graph)

A Force Directed Graph Framework for Rust.

Latest version Documentation GPL-3.0

2D example 3D example

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.

View Examples Online

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 for fdg-sim that uses macroquad for rendering.

Structure

-----------------------
|  Your Application   |
-----------------------
|    fdg-macroquad    |
-----------------------
|       fdg-sim       |
-----------------------

Resources

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 Nodes to a ForceGraph easier.

Type Definitions

A helper type that creates a StableGraph with our custom Node.