Try this: Build a 2 dimensional matrix of boxes.
First dimension represents "starting" state for your directional arrow. Second dimension represents "ending" state for your directional arrow. Contents of each box is a list of the transitions relevant for that state combination. For invalid transitions, you would have an empty box. -- Raul ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm