added prob to edge and node