title: Deep copy of a graph in python
body: <p>How can I make a deep copy of a directed graph in Python? Are there any existing modules in python to deal with graph structures? Each node has a <code>data</code> field and a <code>neighbors</code> field, which is a <code>list</code> storing references to neighboring nodes.</p>