A dynamic layout algorithm for graph drawing in three dimensions