The Molecule example

The molecule example displays a chemical molecule. The atoms are the nodes of the graph and the bonds between the atoms are the links of the graph, see the following figure.
Diagram
of the phenol molecule with its six-carbon ring. It shows five carbon-hydrogen
bonds, and one hydroxy bond. The oxygen molecule is shown in red,
the hydrogen molecules in blue, and the carbon molecules in gray.
Double bonds alternate with single bonds in the carbon ring.
The Molecule example: Phenol
The example is supplied with Rogue Wave® JViews Diagrammer in the directory <installdir>/jviews-diagrammer89/codefragments/datamodel/molecule.