update the graph. adding some field in the data structure like artifactType, connecttoId