Created
March 19, 2015 01:03
-
-
Save lettergram/8b5a83b35b55720cc253 to your computer and use it in GitHub Desktop.
This file contains 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
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