Chemical applications of graph theory