Coder Social home page Coder Social logo

lotdeef / fdg Goto Github PK

View Code? Open in Web Editor NEW

This project forked from grantshandy/fdg

0.0 0.0 0.0 741 KB

A Force Directed Graph Framework for Rust.

Home Page: https://grantshandy.github.io/fdg

License: GNU General Public License v3.0

Shell 0.50% JavaScript 2.75% Rust 82.26% CSS 0.17% Makefile 0.19% HTML 6.98% Vue 6.91% Dockerfile 0.24%

fdg's Introduction

fdg

A Force-Directed Graph Library for Rust.

screenshot

View Demo Online

The goal of this project is to provide a force-directed graph drawing framework for Rust, as well as 2D and 3D visualizers/renderers that work on the web and desktop. It's built on top of the popular petgraph Rust library for interaction with already existing datasets in Rust.

In the simplest terms, the crates in this project allow you to take a graph and turn it into a pretty picture.

Crates

Name Version Docs License Description
fdg-sim Latest version Documentation MIT Runs the layout engine (simulation) and manages the position of nodes.
fdg-macroquad Latest version Documentation GPL-3.0 A demo visualizer that lets you interact with the graph in real time. (View Online)
fdg-img Latest version Documentation GPL-3.0 A simple SVG renderer for your graphs.
fdg-wasm NPM Package View Readme MIT A simple Webassembly wrapper of fdg-sim for use in Javascript.

Stability Note/Future Plans:

Note: There are some parts of this library that are certainly not as polished as I'd like them to be. My Rust API (and calculus) abilities have improved quite a bit since I first wrote this library, and there is a lot of room for improvement.

While the library is certainly usable, there are a few things that I'd like to address in an upcoming 1.0+:

  • Lack of "state of the art" (post 1996) force algorithms such as ForceAtlas2.
  • Only simple Euler method instead of more stable RK4 or Leapfrog integration.
  • Unnecessary Clone requirement for Node data (and associated "hot-clones" ๐Ÿ˜ฌ).
  • Opaque Force struct containing a function pointer instead of an idiomatic Force trait.
  • Buggy node dragging in fdg-macroquad.
  • Awkwardly worded documentation.
  • Unpolished WASM API.
  • Sometimes buggy/inflexible DOT/GML/jsongraph parsers.
  • Broken self-connected nodes.

Resources

fdg's People

Contributors

grantshandy avatar asuradev99 avatar wainwrightmark avatar lotdeef avatar aox0 avatar grafoo avatar quentinledilavrec avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.