Rewrote graph code to permit dynamic exploration.