refreshing and replacing graphs is now working with gephi