def add_weighted_edges_from(self, ebunch, weight='weight', **attr):
        self.add_edges_from(((u,v,{weight:d}) for u,v,d in ebunch),**attr)
Add all the edges in ebunch as weighted edges with specified
dataset/ETHPy150Open networkx/networkx/networkx/classes/tests/timingclasses.py/TimingGraph.add_weighted_edges_from