'Yields a string of HTML to visualize the graph using a force-based spring layout.
The js parameter sets the path to graph.js and canvas.js.'

@property
def html(self):

    js = (self.javascript or '')
    if (self.stylesheet == INLINE):
        css = self.style.replace('\n', '\n DCTB  DCTB ').rstrip(' DCTB ')
        css = ('<style    type="text/css">\n DCTB  DCTB %s\n DCTB </style>' % css)
    elif (self.stylesheet == DEFAULT):
        css = '<link    rel="stylesheet"    href="style.css"    type="text/css"    media="screen"    />'
    elif (self.stylesheet is not None):
        css = ('<link    rel="stylesheet"    href="%s"    type="text/css"    media="screen"    />' % self.stylesheet)
    else:
        css = ''
    s = self._script()
    s = ''.join(s)
    s = (' DCTB ' + s.replace('\n', '\n DCTB  DCTB  DCTB '))
    s = s.rstrip()
    s = (self._source % (self.title, css, js, js, self.id, self.width, self.height, s))
    return s
