move relationship checking to new function
edge weight update
add checking relationship
add new rel