Subversion Repositories programming

Rev

Rev 395 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 395 Rev 396
Line 60... Line 60...
60
			count += 1
60
			count += 1
61
 
61
 
62
		print # nothing, to end the getattr() print above
62
		print # nothing, to end the getattr() print above
63
		print '%d nodes in the solution' % len(g.vertices)
63
		print '%d nodes in the solution' % len(g.vertices)
64
 
64
 
65
	def render_graphviz (self, filename, layout_engine=yapgvb.engines.neato):
65
	def render_graphviz (self, filename, layout_engine='neato'):
66
		"""Draw the graph given into the file given. This will render
66
		"""Draw the graph given into the file given. This will render
67
		to SVG, PNG, and JPG."""
67
		to SVG, PNG, and JPG."""
68
 
68
 
69
		if no_graphviz:
69
		if no_graphviz:
70
			raise ValueError # no yapgvb / graphviz installed!
70
			raise ValueError # no yapgvb / graphviz installed!