`coxeter/text/diagram` := TEXT(`    `,
`FUNCTION:  diagram - Dynkin diagram of a root system`,`    `,
`CALLING SEQUENCE:  diagram(R);`,`    `,
`PARAMETERS:  R = a root system data structure`,`   `,`SYNOPSIS:   `,
`  diagram(R) displays the Dynkin diagram of the root system R, with the`,
`  nodes numbered according to the ordering of simple roots used by base(R).`,
`   `,`  The displays for G2, H3, H4 and I2[m] are ugly.`,`   `,
`  For a description of root system data structures, see coxeter[structure].`,
`   `,`EXAMPLES:   `,`  diagram(E8);         yields`,`   `,
`                    2`,`                    |`,
`            1---3---4---5---6---7---8`,`   `,`  diagram(B3*D4);      yields`,
`   `,`                1=<=2---3`,`   `,`                    5`,
`                    |`,`                4---6---7`,`    `,
`SEE ALSO:  base, name_of, structure`):

if `+`(0)=0 then # Maple V.4 or later
  print(INTERFACE_HELP(insert, topic=`coxeter/diagram`,
  helpfile=HomeLib, text=`coxeter/text/diagram`))
elif ceil(0)=0 then # Maple V.2 or V.3
  `help/coxeter/text/diagram`:=`coxeter/text/diagram`:
  save `help/coxeter/text/diagram`, cat(HomeLib,`/help/coxeter/text/diagram.m`);
fi:
