Graph provides a structure to store an undirected graph. It is safe to use its empty object.
| 12 | // Graph provides a structure to store an undirected graph. |
| 13 | // It is safe to use its empty object. |
| 14 | type Graph struct { |
| 15 | vertices int |
| 16 | edges map[int]map[int]struct{} |
| 17 | } |
| 18 | |
| 19 | // AddVertex will add a new vertex in the graph, if the vertex already |
| 20 | // exist it will do nothing |
nothing calls this directly
no outgoing calls
no test coverage detected