Density Flow over Networks: A Mean-field Game Theoretic Approach