add a metohd for the semantic graph, modify the semantic edge