def pydot_from_networkx(N):
 from warnings import warn
 warn('pydot_from_networkx is replaced by to_pydot', DeprecationWarning)
 return to_pydot(N)

def pydot_from_networkx ( N ) : from warnings import warn warn ( 'pydot_from_networkx is replaced by to_pydot' , DeprecationWarning ) return to_pydot ( N )
create a pydot graph from a networkx graph .