func (g *UndirectedGraph) AddEdge(src, dest interface{}) {
	if _, ok := g.vertices[src]; ok {
		if _, ok := g.vertices[dest]; ok {
			g.vertices[src].neighbors[dest] = g.vertices[dest]
			g.vertices[dest].neighbors[src] = g.vertices[src]
		}
	}
}
// AddEdge adds an edge for two vertices
AddEdge adds an edge for two vertices
// AddEdge adds an edge for two vertices
func (g *UndirectedGraph) AddEdge(src, dest interface{}) {
	if _, ok := g.vertices[src]; ok {
		if _, ok := g.vertices[dest]; ok {
			g.vertices[src].neighbors[dest] = g.vertices[dest]
			g.vertices[dest].neighbors[src] = g.vertices[src]
		}
	}
}
func ( g * UndirectedGraph ) AddEdge ( src , dest interface { } ) { if _ , ok := g . vertices [ src ] ; ok { if _ , ok := g . vertices [ dest ] ; ok { g . vertices [ src ] . neighbors [ dest ] = g . vertices [ dest ] g . vertices [ dest ] . neighbors [ src ] = g . vertices [ src ] } } }
AddEdge adds an edge for two vertices
AddEdge adds an edge for two vertices