def connect_graph(self):
        for node1 in self.nodes.values():
            for node2 in self.nodes.values():
                if node1['address'] != node2['address'] and node2['rel'] != 'TOP':
                    relation = node2['rel']
                    node1['deps'].setdefault(relation, [])
                    node1['deps'][relation].append(node2['address'])
                    #node1['deps'].append(node2['address'])
Fully connects all non-root nodes.  All nodes are set to be dependents
dataset/ETHPy150Open nltk/nltk/nltk/parse/dependencygraph.py/DependencyGraph.connect_graph