Skip to content

Instantly share code, notes, and snippets.

@leifwickland
Created June 3, 2011 19:38
Show Gist options
  • Save leifwickland/1007014 to your computer and use it in GitHub Desktop.
Save leifwickland/1007014 to your computer and use it in GitHub Desktop.
Graph
type Graph[T] = scala.collection.mutable.MultiMap[T,T]
def newGraph[T]: Graph[T] = new scala.collection.mutable.HashMap[T,scala.collection.mutable.Set[T]] with Graph[T]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment