algebraic-graphs
A library for algebraic graph construction and transformation
<https://github.com/snowleopard/alga Alga> is a library for algebraic construction and
manipulation of graphs in Haskell. See <https://github.com/snowleopard/alga-paper this paper>
for the motivation behind the library, the underlying theory and implementation details.
The top-level module
<http://hackage.haskell.org/package/algebraic-graphs/docs/Algebra-Graph.html Algebra.Graph>
defines the main data type for /algebraic graphs/
<http://hackage.haskell.org/package/algebraic-graphs/docs/Algebra-Graph.html#t:Graph Graph>,
as well as associated algorithms. For type-safe representation and
manipulation of /non-empty algebraic graphs/, see
<http://hackage.haskell.org/package/algebraic-graphs/docs/Algebra-Graph-NonEmpty.html Algebra.Graph.NonEmpty>.
Furthermore, /algebraic graphs with edge labels/ are implemented in
<http://hackage.haskell.org/package/algebraic-graphs/docs/Algebra-Graph-Labelled.html Algebra.Graph.Labelled>.
The library also provides conventional graph data structures, such as
<http://hackage.haskell.org/package/algebraic-graphs/docs/Algebra-Graph-AdjacencyMap.html Algebra.Graph.AdjacencyMap>
along with its various flavours:
* adjacency maps specialised to graphs with vertices of type 'Int'
(<http://hackage.haskell.org/package/algebraic-graphs/docs/Algebra-Graph-AdjacencyIntMap.html Algebra.Graph.AdjacencyIntMap>),
* non-empty adjacency maps
(<http://hackage.haskell.org/package/algebraic-graphs/docs/Algebra-Graph-NonEmpty-AdjacencyMap.html Algebra.Graph.NonEmpty.AdjacencyMap>),
* adjacency maps for undirected bipartite graphs
(<http://hackage.haskell.org/package/algebraic-graphs/docs/Algebra-Graph-Bipartite-AdjacencyMap.html Algebra.Graph.Bipartite.AdjacencyMap>),
* adjacency maps with edge labels
(<http://hackage.haskell.org/package/algebraic-graphs/docs/Algebra-Graph-Labelled-AdjacencyMap.html Algebra.Graph.Labelled.AdjacencyMap>),
* acyclic adjacency maps
(<http://hackage.haskell.org/package/algebraic-graphs/docs/Algebra-Graph-Acyclic-AdjacencyMap.html Algebra.Graph.Acyclic.AdjacencyMap>),
A large part of the API of algebraic graphs and adjacency maps is available
through the 'Foldable'-like type class
<http://hackage.haskell.org/package/algebraic-graphs/docs/Algebra-Graph-ToGraph.html Algebra.Graph.ToGraph>.
The type classes defined in
<http://hackage.haskell.org/package/algebraic-graphs/docs/Algebra-Graph-Class.html Algebra.Graph.Class>
and
<http://hackage.haskell.org/package/algebraic-graphs/docs/Algebra-Graph-HigherKinded-Class.html Algebra.Graph.HigherKinded.Class>
can be used for polymorphic construction and manipulation of graphs.
This is an experimental library and the API is expected to remain unstable until version 1.0.0.
Please consider contributing to the on-going
<https://github.com/snowleopard/alga/issues discussions on the library API>.
| version | uploaded | uploader | changes | |
|---|---|---|---|---|
| 0.8 | 2026-01-18 02:04 UTC | snowleopard | +151/−139 lines, 54 filesdep ~basedep ~containersdep ~inspection-testingPVP ok | |
| 0.7 | 2022-06-20 23:58 UTC | snowleopard | 3 revisions | +696/−654 lines, 25 filesdep ~QuickCheckdep ~deepseqdep ~inspection-testingPVP ok |
| 0.6.1 | 2022-06-14 21:18 UTC | snowleopard | 1 revisions | +404/−267 lines, 57 filesdep −mtldep ~inspection-testingdep ~transformersPVP: major bump suggested |
| 0.6 | 2021-12-15 01:56 UTC | snowleopard | 1 revisions | +3362/−2214 lines, 56 filesdep ~QuickCheckdep ~basePVP ok |
| 0.5 | 2020-02-02 23:48 UTC | snowleopard | +9473/−5354 lines, 61 filesdep +transformersdep −base-compatdep −base-orphansdep −bifunctorsdep ~QuickCheckdep ~extradep ~inspection-testingPVP ok | |
| 0.4 | 2019-05-08 13:45 UTC | snowleopard | +1675/−300 lines, 28 filesdep +bifunctorsdep ~QuickChecksetup-changedPVP ok | |
| 0.3 | 2018-11-29 23:38 UTC | snowleopard | +7626/−2450 lines, 47 filesdep +inspection-testingdep ~QuickCheckPVP ok | |
| 0.2 | 2018-09-11 23:59 UTC | snowleopard | +3959/−2573 lines, 37 filesdep +mtldep −criteriondep ~base-compatdep ~base-orphansdep ~extraPVP ok | |
| 0.1.1.1 | 2018-04-14 23:55 UTC | snowleopard | +6/−2 lines, 2 filesdep ~base-compatPVP ok | |
| 0.1.1 | 2018-04-02 13:43 UTC | snowleopard | +18/−7 lines, 4 filesdep ~QuickCheckPVP ok | |
| 0.1.0 | 2018-04-01 19:56 UTC | snowleopard | +2252/−515 lines, 36 filesdep +base-compatdep +base-orphansdep +deepseqdep ~QuickCheckdep ~arraydep ~basePVP ok | |
| 0.0.5 | 2017-07-30 02:24 UTC | snowleopard | +2406/−3215 lines, 26 filesPVP: major bump suggested | |
| 0.0.4 | 2017-03-26 23:53 UTC | snowleopard | +1823/−1307 lines, 23 filesPVP: major bump suggested | |
| 0.0.3 | 2017-03-24 14:35 UTC | snowleopard | +8/−8 lines, 1 filesPVP ok | |
| 0.0.2 | 2017-03-24 14:20 UTC | snowleopard | +239/−222 lines, 19 filesPVP: major bump suggested | |
| 0.0.1 | 2017-03-24 04:23 UTC | snowleopard | +8702/−0 lines, 27 filesdep +QuickCheckdep +algebraic-graphsdep +arraysetup-changed |
Dependencies of algebraic-graphs-0.8
QuickCheck >=2.14 && <2.16 2.15.0.1 → 2.19.0.0 newer than bounds
| 2026-09-16 11:18 UTC | 2.19.0.0 newer than bounds | +67/−41 lines, 10 filesdep +OneTuplePVP ok |
| 2026-02-26 12:42 UTC | 2.18.0.0 newer than bounds | +826/−542 lines, 23 filesPVP ok |
| 2025-10-13 12:40 UTC | 2.17.1.0 newer than bounds | +18/−8 lines, 4 filesdep ~randomPVP: major bump suggested |
| 2025-10-07 12:26 UTC | 2.17.0.0 newer than bounds | +667/−129 lines, 14 filesdep +data-array-bytedep +hintdep +splitdep −ghc-primdep −old-localedep −old-timedep ~basedep ~randomdep ~template-haskellPVP ok |
| 2025-06-17 07:53 UTC | 2.16.0.0 newer than bounds | +477/−86 lines, 15 filesdep ~basenew-uploaderPVP ok |
showing 5 of 66 versions
array >=0.4 && <0.6 0.5.7.0 → 0.5.8.0
| 2024-09-08 07:13 UTC | 0.5.8.0 | +204/−8 lines, 6 filesdep ~basePVP ok |
| 2024-04-12 14:38 UTC | 0.5.7.0 | +34/−17 lines, 9 filesdep ~basePVP: major bump suggested |
| 2023-07-10 15:24 UTC | 0.5.6.0 | +159/−39 lines, 8 filesdep ~basenew-uploaderPVP ok |
| 2023-02-13 16:01 UTC | 0.5.5.0 | +8/−4 lines, 3 filesdep ~basenew-uploaderPVP ok |
| 2019-09-01 06:48 UTC | 0.5.4.0 | +33/−8 lines, 5 filesdep ~basesetup-changedPVP: major bump suggested |
showing 5 of 18 versions
base >=4.12 && <5 4.22.0.0 → 4.22.1.0
| 2026-12-01 12:38 UTC | 4.22.1.0 | +388/−6 lines, 9 filesdep ~ghc-internalPVP: major bump suggested |
| 2025-12-19 11:52 UTC | 4.22.0.0 | +886/−215 lines, 28 filesdep ~ghc-internalPVP ok |
| 2026-03-27 12:26 UTC | 4.21.2.0 | +10/−3 lines, 4 filesdep ~ghc-internalPVP ok |
| 2025-12-27 10:31 UTC | 4.21.1.0 | +17/−5 lines, 4 filesdep ~ghc-internalPVP ok |
| 2024-12-16 09:24 UTC | 4.21.0.0 | +1170/−396 lines, 39 filesdep ~ghc-internalPVP ok |
showing 5 of 61 versions
containers >=0.5.5.1 && <0.9 0.8 → 0.8.1
| 2026-10-04 06:08 UTC | 0.8.1 | +8085/−5169 lines, 39 filesdep +template-haskell-liftdep ~arraydep ~deepseqPVP: major bump suggested |
| 2025-03-01 13:03 UTC | 0.8 | +8447/−7031 lines, 37 filesnew-uploaderPVP ok |
| 2023-09-27 12:15 UTC | 0.7 | +76/−33 lines, 3 filesPVP ok |
| 2023-09-28 04:21 UTC | 0.6.8 | +644/−184 lines, 17 filesdep ~basedep ~deepseqPVP: major bump suggested |
| 2023-02-01 03:11 UTC | 0.6.7 | +783/−229 lines, 20 filesPVP: major bump suggested |
showing 5 of 43 versions
deepseq >=1.3.0.1 && <1.6 1.5.2.0 → 1.6.0.0 newer than bounds
| 2024-09-08 16:18 UTC | 1.6.0.0 newer than bounds | +5/−14 lines, 3 filesdep ~basePVP ok |
| 2025-06-14 22:25 UTC | 1.5.2.0 | +13/−4 lines, 3 filesPVP: major bump suggested |
| 2024-09-09 12:48 UTC | 1.5.1.0 | +69/−14 lines, 3 filesdep −arraydep ~basePVP: major bump suggested |
| 2023-07-27 19:32 UTC | 1.5.0.0 | +619/−532 lines, 5 filesdep ~basePVP ok |
| 2022-12-18 00:14 UTC | 1.4.8.1 | +34/−9 lines, 3 filesdep ~basePVP: major bump suggested |
showing 5 of 26 versions
extra >=1.4 && <2 1.8 → 1.8.1
| 2025-11-23 14:32 UTC | 1.8.1 | +48/−4 lines, 6 filesPVP ok |
| 2024-10-19 13:35 UTC | 1.8 | +113/−18 lines, 9 filesdep ~basePVP ok |
| 2024-05-11 15:55 UTC | 1.7.16 | +4/−2 lines, 3 filesdep ~basePVP: major bump suggested |
| 2024-05-10 13:07 UTC | 1.7.15 | +21/−8 lines, 9 filesPVP ok |
| 2023-07-01 19:19 UTC | 1.7.14 | +10/−4 lines, 3 filesdep ~basePVP ok |
showing 5 of 74 versions
inspection-testing >=0.4.2.2 && <0.7 0.6.2 → 0.6.3
| 2026-01-17 15:12 UTC | 0.6.3 | +3227/−3218 lines, 24 filesdep −mtlsetup-changednew-uploaderPVP ok |
| 2025-06-13 08:40 UTC | 0.6.2 | +159/−125 lines, 5 filesdep ~basedep ~ghcPVP ok |
| 2025-06-11 21:55 UTC | 0.6.1 | +160/−131 lines, 4 filesPVP ok |
| 2025-01-01 19:38 UTC | 0.6 | +41/−4 lines, 4 filesdep ~basePVP ok |
| 2023-12-29 09:33 UTC | 0.5.0.3 | +29/−13 lines, 4 filesdep ~basedep ~ghcPVP ok |
showing 5 of 29 versions
transformers >=0.4 && <0.7 0.6.2.0 → 0.6.3.0
| 2026-01-12 12:42 UTC | 0.6.3.0 | +28/−1 lines, 4 filesPVP: major bump suggested |
| 2025-04-06 22:39 UTC | 0.6.2.0 | +41/−42 lines, 8 filesdep ~ghc-primPVP: major bump suggested |
| 2024-09-25 11:37 UTC | 0.6.1.2 | +70/−21 lines, 19 filesPVP: minor bump suggested |
| 2023-08-01 19:13 UTC | 0.6.1.1 | +281/−42 lines, 11 filesPVP ok |
| 2023-02-04 08:15 UTC | 0.6.1.0 | +64/−4 lines, 8 filesPVP ok |
showing 5 of 42 versions
Reverse dependencies
25 packages depend on algebraic-graphs; 9 have bounds that exclude 0.8