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 glam;
pub use petgraph;

Modules

Forces that define how your graph moves.

Structs

A node on a ForceGraph.

A simulation for managing the main event loop and forces.

Parameters for the simulation.

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.