A node ranking problem is also called an , which labels a graph with such that for every path between any two nodes and , with , there is a node on the path with . The value is called the or color of the node . Node ranking is the problem of finding the minimum such that the maximum rank in is . There are two versions of the node ranking problem: off-line and on-line. In the off-line version, all the vertices and edges are given in advance. In the on-line version, the vertices are given one by one in an arbitrary order (say ) and only the edges of the induced subgraph are known when the rank of has to be chosen. This paper establishes the node ranking number of complete -partite graphs for the off-line version and gives a tight bound for the on-line version with the algorithms to accomplish them in linear time.