Exemplo n.º 1
0
 def load_edges(self):
     for etype, file_or_dir in self.etype2files.items():
         file_list = [f for f in helper.get_files(file_or_dir)]
         filepath = ";".join(file_list)
         log.info("load edges of type %s from %s" % (etype, filepath))
         self._client.load_edge_file(etype, filepath, False)
         if self.symmetry:
             r_etype = helper.get_inverse_etype(etype)
             self._client.load_edge_file(r_etype, filepath, True)
Exemplo n.º 2
0
 def load_node_types(self):
     for ntype, file_or_dir in self.ntype2files.items():
         file_list = [f for f in helper.get_files(file_or_dir)]
         filepath = ";".join(file_list)
         log.info("load nodes of type %s from %s" % (ntype, filepath))
         self._client.load_node_file(ntype, filepath)