Before marks that A should come before B
(a string, b string)
| 43 | |
| 44 | // Before marks that A should come before B |
| 45 | func (ord *PartialOrdering) Before(a string, b string) { |
| 46 | // Set that B depends on A / an edge from A -> B |
| 47 | err := ord.dag.AddEdge(a, b) |
| 48 | handleDAGErr(err) |
| 49 | } |
| 50 | |
| 51 | // FirstElements Sets elems to be the first elements in the ordering. |
| 52 | // So if were making an ordering over {A, B, C, D, E}, and elems provided is {D, B, A} |