createEdges creates directed edges from the parent to each of the children.
(parent *Node, children ...*Node)
| 139 | |
| 140 | // createEdges creates directed edges from the parent to each of the children. |
| 141 | func createEdges(parent *Node, children ...*Node) { |
| 142 | for _, child := range children { |
| 143 | edge := &Edge{ |
| 144 | Src: parent, |
| 145 | Dest: child, |
| 146 | } |
| 147 | parent.Out[child] = edge |
| 148 | child.In[parent] = edge |
| 149 | } |
| 150 | } |
| 151 | |
| 152 | // createEmptyNode creates a node without any edges. |
| 153 | func createEmptyNode() *Node { |
no outgoing calls
no test coverage detected
searching dependent graphs…