added update for _graphs to replace old graph definitions to new ones (containing edgeDefinitions)