def __init__(self, data=None, **attr):
        self.graph = {}   # dictionary for graph attributes
        self.node = {}    # empty node dict (created before convert)
        self.adj = {}     # empty adjacency dict
        # attempt to load graph with data
        if data is not None:
            convert.to_networkx_graph(data,create_using=self)
        # load graph attributes (must be after convert)
        self.graph.update(attr)
        self.edge = self.adj
Cookies of the current API session (cookies setter shortcut)
dataset/ETHPy150Open networkx/networkx/networkx/classes/tests/timingclasses.py/TimingGraph.__init__--crossover with--dataset/ETHPy150Open shichao-an/115wangpan/u115/api.py/API.cookies