# force_directed_graphview

## Web Demo

## Overview

A highly customizable library for displaying force-directed graphs in Flutter.

This library is primarily designed to display graphs using force-directed layouts, but it can be used for other purposes as well with the implementation of a custom layout algorithm. Currently nodes can't be dragged by gestures. The entire canvas can be dragged and zoomed using underlying InteractiveViewer widget.

## Usage

For example usage see Example

## Fruchterman-Reingold Algorithm scaling

Fruchterman-Reingold's got a time complexity of `O(N^2 + E)`

per loop where `N`

is the number of nodes and `E`

is the number of edges. Simply put, it can get slow pretty fast if you have a large graph.