

def setup_networkx(self):
    self.nx_ER_G = nx.Graph()
    for i in self.ER_G.nodes_iter():
        self.nx_ER_G.add_node(i)
    for (i, j, w) in self.ER_G.edges_iter(weight=True):
        self.nx_ER_G.add_edge(i, j, weight=w)

dataset/ETHPy150Open networkdynamics/zenlib/src/zen/benchmarks/spanning.py MinimumSpanningTreeBenchmark.setup_networkx/original