We provide upper bounds on the L(p, q)-labeling number of graphs which have interval (or circular-arc) representations via simple greedy algorithms. We prove that there exists an L(p, q)-labeling with a span at most max{2(p+ q−1)∆−4q+2, (2p−1)µ+(2q−1)∆−2q+1} for interval k-graphs, max{p, q}∆ for interval graphs, 3 max{p, q}∆ + p for circular-arc graphs, 2(p + q − 1)∆ − 2q + 1 for permutation graphs and (2p − 1)∆ + (2q − 1)(µ − 1) for cointerval graphs. In particular, these improve existing bounds on L(p, q)-labeling of interval graphs and L(2, 1)-labeling of permutation graphs. Furthermore, we provide upper bounds on the coloring of the squares of aforementioned classes.