예제 #1
0
파일: api.py 프로젝트: clics/clics-data
 def save_graph(self, graph, network, threshold, edgefilter):
     network = Network(network, threshold, edgefilter, self.existing_dir('graphs'))
     return self.file_written(network.save(graph))
예제 #2
0
파일: api.py 프로젝트: clics/pyclics
 def load_graph(self, network, threshold, edgefilter):
     return Network(network, threshold, edgefilter, self.graph_dir).graph
예제 #3
0
파일: api.py 프로젝트: clics/pyclics
 def save_graph(self, graph, network, threshold, edgefilter):
     network = Network(network, threshold, edgefilter, self.graph_dir)
     return self.file_written(network.save(graph))
예제 #4
0
 def load_network(self, nname, threshold, edgefilter):
     return Network(nname, threshold, edgefilter,
                    self.existing_dir('graphs'))
예제 #5
0
 def load_graph(self, network, threshold, edgefilter):
     return Network(network, threshold, edgefilter,
                    self.existing_dir('graphs')).graph
예제 #6
0
 def save_graph(self, graph, network, threshold, edgefilter):
     network = Network(network, threshold, edgefilter,
                       self.existing_dir('graphs'))
     return self.file_written(network.save(graph))