def number_of_edges(self, u=None, v=None):
        if u is None: return self.size()
        try:
            edgedata=self.adj[u][v]
        except KeyError:
            return 0 # no such edge
        return len(edgedata)
Set subdir to 'new' or 'cur'.
dataset/ETHPy150Open networkx/networkx/networkx/classes/tests/timingclasses.py/TimingMultiGraph.number_of_edges--crossover with--dataset/ETHPy150Open babble/babble/include/jython/Lib/mailbox.py/MaildirMessage.set_subdir