func (g *Graph) EdgesNum() int {
	total := 0

	for _, b := range g.Vertices {
		total += b.Degree()
	}

	return total / 2
}
// EdgesNum returns the number of edges
EdgesNum returns the number of edges
// EdgesNum returns the number of edges
func (g *Graph) EdgesNum() int {
	total := 0
	for _, b := range g.Vertices {
		total += b.Degree()
	}
	return total / 2
}
func ( g * Graph ) EdgesNum ( ) int { total := 0 for _ , b := range g . Vertices { total += b . Degree ( ) } return total / 2 }
EdgesNum returns the number of edges
EdgesNum returns the number of edges