AddConnect add 'to' to the DAG 'd' and connect 'from' to 'to'
(from, to Vertex)
| 129 | |
| 130 | // AddConnect add 'to' to the DAG 'd' and connect 'from' to 'to' |
| 131 | func (d *DAG) AddConnect(from, to Vertex) bool { |
| 132 | if !d.AddVertex(to) { |
| 133 | return false |
| 134 | } |
| 135 | return d.Connect(from, to) |
| 136 | } |
| 137 | |
| 138 | // AddConnectRoot add 'v' to the DAG 'd' and connect root to 'v' |
| 139 | func (d *DAG) AddConnectRoot(v Vertex) bool { |