Skip to content

Instantly share code, notes, and snippets.

@5outh
Created December 5, 2012 22:03
Show Gist options
  • Save 5outh/4219915 to your computer and use it in GitHub Desktop.
Save 5outh/4219915 to your computer and use it in GitHub Desktop.
import Data.List --for later
import System.Environment --for later
import Graph
data Letter = A | B | C | D | E | F deriving (Show, Eq, Enum)
sample :: Graph Letter
sample = Graph [A,B,C,D,E,F] [(A, B), (A, C), (B, D), (C, D), (D, E), (D, F), (B, C), (F, E)]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment