Inductive graphs and functional graph algorithms
Martin Erwig · Journal of Functional Programming · 2001
We propose a new style of writing graph algorithms in functional languages which is based on an alternative view of graphs as inductively defined data types. We show how this graph model can be implemented efficiently, and then we demonstrate how graph algorithms can be succinctly given by recursive function definitions based on the inductive graph view. We also regard this as a contribution to the teaching of algorithms and data structures in functional languages since we can use the functional-style graph algorithms instead of the imperative algorithms that are dominant today.
Cited by 72 works. doi:10.1017/s0956796801004075 Open-access PDF
Authors
References
- The Science of Programming
- Purely Functional Data Structures
- Introduction to Functional Programming using Haskell
- Views: a way for pattern matching to cohabit with data abstraction
- The aggregate update problem in functional programming systems
- Elements of functional programming
- ML for the working programmer (2nd ed.)
- Real-time queue operations in pure LISP
- An efficient representation for sparse sets
- Uniqueness typing for functional languages with graph rewriting semantics