Knots and graphs in chemistry