def writeOut(self): g = graphml() for node in self.__outnodes: g.addNode(node,self.__gmeNodes[node].attributes['name']) for edge in self.__outedges: g.addEdge(edge['source'],edge['target']) g.writeOut(self.__root.attributes['name']+".graphml")
if token == None: token = "" if 'host' in config.keys(): host = config['host'] if 'commit' in config.keys(): commit = config['commit'] if 'root' in config.keys(): commit = config['root'] if pName != None and mUrl != None and token != None and host != None: print('configuration read successfully') print('starting to generate graphml file') w = webgme.client(host,token) db = w.connect() plist = db.getProjectList() graph = graphml() project = db.getProject(pName) if project != None: if mUrl != None: model = project.getNode(mUrl) modelNode = webgme.node(model) g = sfs2graphs.SignalFlowSystemToGraphML(modelNode) print('file generation completed') else: print('there is no selected model in the configuration') else: print('unable to find project') else: print("the given configuration is unusable!!") except SystemExit as e: if not e.code == None: