NodePtrSet is a collection of nodes. Trimming a graph or tree requires a set of objects which uniquely identify the nodes to keep. In a graph, NodeInfo works as a unique identifier; however, in a tree multiple nodes may share identical NodeInfos. A *Node does uniquely identify a node so we can use t
| 227 | // NodeSet, so there would not be the required context of the initial graph to |
| 228 | // allow for the use of *Node. |
| 229 | type NodePtrSet map[*Node]bool |
| 230 | |
| 231 | // FindOrInsertNode takes the info for a node and either returns a matching node |
| 232 | // from the node map if one exists, or adds one to the map if one does not. |
nothing calls this directly
no outgoing calls
no test coverage detected