AddEdge will add a new edge between the provided vertices in the graph
(one, two int)
| 34 | |
| 35 | // AddEdge will add a new edge between the provided vertices in the graph |
| 36 | func (g *Graph) AddEdge(one, two int) { |
| 37 | // Add an edge with 0 weight |
| 38 | g.AddWeightedEdge(one, two, 0) |
| 39 | } |
| 40 | |
| 41 | // AddWeightedEdge will add a new weighted edge between the provided vertices in the graph |
| 42 | func (g *Graph) AddWeightedEdge(one, two, weight int) { |