add methods to add edges from nodes