add the in/out degree of the dependency graph
add semantic node modify method