isInQueue is a method that avoids duplicates in the tree
(nv int)
| 220 | |
| 221 | // isInQueue is a method that avoids duplicates in the tree |
| 222 | func (n *Tree) isInQueue(nv int) bool { |
| 223 | if _, ok := n.Nodes[nv]; ok { |
| 224 | return true |
| 225 | } |
| 226 | |
| 227 | n.Nodes[nv] = struct{}{} |
| 228 | return false |
| 229 | } |
no outgoing calls
no test coverage detected