FLUTTER ECOSYSTEM

directed_graph

Generic directed graph and weighted directed graph with algorithms enabling sorting and topological ordering of vertices.

directed_graph cover
Latest version
0.5.6
30-day downloads
15.4K
Likes
70
Pub points
150

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

Overview

A Dart package providing generic directed and weighted directed graphs with built-in algorithms for vertex sorting and topological ordering. It enables efficient graph traversal and dependency resolution, making it ideal for modeling hierarchical or sequential relationships. The package supports multiple platforms including Android, iOS, Web, macOS, Windows, and Linux. It is designed for developers needing robust graph structures without external dependencies. Algorithms are optimized for correctness and performance in common use cases.

Use cases
  • Dependency resolution
  • Task scheduling
  • Data flow analysis
  • Network topology modeling
  • Code compilation order
  • Graph visualization
Key features
  • Supports directed and weighted graphs
  • Topological sorting algorithms
  • Vertex ordering utilities
  • Cross-platform compatibility
  • Lightweight and dependency-free
  • Generic type support
Suitable for
  • Developers building task schedulers
  • Engineers managing dependencies
  • Educational projects on graph theory
  • Applications requiring workflow orchestration
  • Tools for code analysis or build systems
Considerations
  • Not optimized for very large graphs
  • Limited to directed graph operations
  • No built-in visualization
  • Requires manual handling of cycle detection
  • Best suited for moderate-sized datasets
Supported platformsAndroidiOSWebmacOSWindowsLinux

Install package

flutter pub add directed_graph

Categories

Dependencies

Dependency list 5 items
  • collection^1.19.1
  • exception_templates^0.3.2
  • lazy_memo^0.2.5
  • meta^1.18.2
  • quote_buffer^0.2.7

Source repository

Related projects