Created
May 3, 2022 03:25
-
-
Save sausheong/300654c70871f14b3d442a0983525a7e to your computer and use it in GitHub Desktop.
mst
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
| func (g *Graph) HasNode(name string) (yes bool) { | |
| for _, n := range g.Nodes { | |
| if n.name == name { | |
| yes = true | |
| } | |
| } | |
| return | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment