dot.py 324 B

12345678910111213141516
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. def demarrer_graphe ( horizontal=False) :
  4. print 'digraph G {'
  5. if ( horizontal ):
  6. print ' graph [ rankdir=LR ];'
  7. def ajouter_noeud_mot ( word, id=False, label=False ):
  8. print ' '
  9. def lier( id_a, id_b ):
  10. print ' '
  11. def clore_graphe () :
  12. print '}'