/unmaintained/graph-theory/reversals/reversals.factor
http://github.com/abeaumont/factor · Factor · 22 lines · 11 code · 9 blank · 2 comment · 0 complexity · 6b49208a4fe887493db3d53986850166 MD5 · raw file
- ! Copyright (C) 2008 William Schlieper <schlieper@unc.edu>
- ! See http://factorcode.org/license.txt for BSD license.
- USING: accessors kernel graph-theory ;
- IN: graph-theory.reversals
- TUPLE: reversal graph ;
- GENERIC: reverse-graph ( graph -- reversal )
- M: graph reverse-graph reversal boa ;
- M: reversal reverse-graph graph>> ;
- INSTANCE: reversal graph
- M: reversal vertices
- graph>> vertices ;
- M: reversal adj?
- swapd graph>> adj? ;