Clean up import graph