DiscardLowFrequencyNodePtrs returns a NodePtrSet of nodes at or over a specific cum value cutoff.
(nodeCutoff int64)
| 756 | // DiscardLowFrequencyNodePtrs returns a NodePtrSet of nodes at or over a |
| 757 | // specific cum value cutoff. |
| 758 | func (g *Graph) DiscardLowFrequencyNodePtrs(nodeCutoff int64) NodePtrSet { |
| 759 | cutNodes := getNodesAboveCumCutoff(g.Nodes, nodeCutoff) |
| 760 | kept := make(NodePtrSet, len(cutNodes)) |
| 761 | for _, n := range cutNodes { |
| 762 | kept[n] = true |
| 763 | } |
| 764 | return kept |
| 765 | } |
| 766 | |
| 767 | func makeNodeSet(nodes Nodes, nodeCutoff int64) NodeSet { |
| 768 | cutNodes := getNodesAboveCumCutoff(nodes, nodeCutoff) |
no test coverage detected