implemented edge topic assignment step minus some data structure updating.