Skip to content

Instantly share code, notes, and snippets.

@lettergram
Created March 19, 2015 01:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lettergram/8b5a83b35b55720cc253 to your computer and use it in GitHub Desktop.
Save lettergram/8b5a83b35b55720cc253 to your computer and use it in GitHub Desktop.
package graph
type Graph struct {
Node map[string]Node
Edge []Edge
}
/**
* Node will take in a string representations and save
* the nodes input as an interface. There is then an array
* of outbound edges, which which will be used to connect with other nodes
*/
type Node struct {
Code string
Data interface{}
OutEdges []Edge
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment