On order and rank of graphs