Labeling the vertices as well as edges with some given conditions is a problem called ' graph labeling problem' and lot of literature is available on this topic. Initially this topic was initiated by Professor A. Rosa. Also see 'Dynamic survey on graph labeling' by Gallian