Convert structure to NetworkX graph format.
Note that NetworkX must be installed for this method to work.
A NetworkX graph containing the nodes and edges from the sampler’s structure.
networkx.Graph