I am using networkx package. Is there a function in networkx that can accomplish this task for me?
I found the function http://networkx.lanl.gov/reference/generated/networkx.DiGraph.to_undirected.html?highlight=digraph