Created
October 26, 2012 03:51
-
-
Save nyuichi/3956761 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (defparameter list nil) | |
| (defparameter set nil) | |
| (defun visit (node) | |
| (unless (visitedp node) | |
| (mark-visited node) | |
| (loop for m in (connected-nodes node) do | |
| (visit m)) | |
| (push node))) | |
| (loop for n in set do | |
| (visit n)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment