MoonGraph 是一个专注于提供全面、高效的图论数据结构与算法的 MoonBit 开源基础库。本项目灵感来源于 Rust 生态的优秀基建项目 petgraph,旨在填补目前 MoonBit 生态在通用复杂网络数据结构领域的空白。 MoonGraph 提供了统一且安全的图数据接口(支持有向图、无向图、泛型带权边),并内置了成熟的图遍历(DFS/BFS)、寻路工具(Dijkstra、A* 算法)以
版权所有:中国计算机学会技术支持:开源发展技术委员会
京ICP备13000930号-9
京公网安备 11010802047560号
MoonGraph
MoonGraph is a high-performance, general-purpose graph data structure and algorithm library implemented purely in the MoonBit programming language. It is designed to be the foundational building block for complex network analysis, pathfinding, dependency resolution, and compiler infrastructure.
Features
Graph[N, E]supporting both Directed and Undirected graphs with generic node/edge weights.Usage
Basic Graph Creation & Traversal
Dijkstra & A* Pathfinding
Tarjan’s SCC & Topological Sort
Exporter (Graphviz DOT)
Future Roadmap
License
MIT License