def __output__(self, projectstructure, output=None):
_graphoutput = super(Directedgraph, self).__output__(projectstructure)
if output is None:
raise ValueError('output file be specified for Multipgraph output')
else:
networkx.write_gml(_graphoutput, output)
return True # TODO inconsistent return json object vs true
评论列表
文章目录