Question: Given a graph with n vertices and m edges. The edges are either directed or undirected. Give an algorithm to determine if it possible to
Given a graph with n vertices and m edges. The edges are either directed or undirected. Give an algorithm to determine if it possible to orient the undirected edges into directed ones (in one of the two directions), such that for each vertex, the number of incoming edges equals to the number of outgoing edges. Your algorithm has to run in polynomial time.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
