Added a force-directed layout and updated samples accordingly