human
Program to find total number of edges in a Complete Graph | Function to find the total number of edges in a complete graph with N vertices.
Driver Code"
How can the above be solved in Python?
 ... Can you provide a code to program to find total number of edges in a Complete Graph and the other steps required?
assistant
#Here is code to program to find total number of edges in a Complete Graph and the other steps required.
 def totEdge ( n ) :
	result = ( n * ( n - 1 ) ) // 2
	return result
if __name__ == " _ _ main _ _ " :
	n = 6
	print ( totEdge ( n ) )