Exemplo n.º 1
0
 def saveHTML(self, name, forceInit=True):
     """Creates an HTML file with the graph representation. Heavily inspired from: http://stackoverflow.com/questions/22595493/reading-dot-files-in-javascript-d3"""
     from Mariana.HTML_Templates.aqua import getHTML
     import time
     temp = getHTML(self.toDOT(name, forceInit), name, time.ctime())
     f = open(name + '.mariana.dot.html', 'wb')
     f.write(temp)
     f.close()
Exemplo n.º 2
0
	def saveHTML(self, name, forceInit = True) :
		"""Creates an HTML file with the graph representation. Heavily inspired from: http://stackoverflow.com/questions/22595493/reading-dot-files-in-javascript-d3"""
		from Mariana.HTML_Templates.aqua import getHTML
		import time
		temp = getHTML(self.toDOT(name, forceInit), name, time.ctime())
		f = open(name + '.mariana.dot.html', 'wb')
		f.write(temp)
		f.close()
Exemplo n.º 3
0
 def saveHTML_old(self, name, forceInit=True):
     """Creates an HTML file with the graph representation."""
     from Mariana.HTML_Templates.aqua import getHTML
     import time
     temp = getHTML(self.toDOT(name, forceInit), name, time.ctime())
     f = open(name + '.mariana.dot.html', 'wb')
     f.write(temp)
     f.close()