def __setitem__(self, target, edgeInfo):
        "Save edge in both forward and backward dicts."
        dictEdge.__setitem__(self, target, edgeInfo) # FORWARD EDGE
        try:
            d = self.graph._inverse[target]
        except __HOLE__:
            d = self.dictClass()
            self.graph._inverse[target] = d
        d[self.fromNode] = edgeInfo # SAVE BACKWARD EDGE
dataset/ETHPy150Open cjlee112/pygr/pygr/mapping.py/dictEdgeFB.__setitem__