func (g *Graph) MaxDegree() int {
	maxDegree := 0

	for _, v := range g.Vertices {
		degree := v.Degree()
		if degree > maxDegree {
			maxDegree = degree
		}
	}

	return maxDegree
}
// MaxDegree computes the max degree
MaxDegree computes the max degree
// MaxDegree computes the max degree
func (g *Graph) MaxDegree() int {
	maxDegree := 0
	for _, v := range g.Vertices {
		degree := v.Degree()
		if degree > maxDegree {
			maxDegree = degree
		}
	}
	return maxDegree
}
func ( g * Graph ) MaxDegree ( ) int { maxDegree := 0 for _ , v := range g . Vertices { degree := v . Degree ( ) if degree > maxDegree { maxDegree = degree } } return maxDegree }
MaxDegree computes the max degree
MaxDegree computes the max degree