'Write a colored edge to the output stream.'

def _write_edge(self, string, index, sub=0):

    if (not self._frontier[index]):
        return
    name = self._frontier[index][sub]
    edge = ('@%s{%s}' % (self._name_to_color[name], string))
    self._out.write(edge)
