added graph visualization stuff