added old graphclear code that includes map to graph tools