Working on data flow for node sorting and expansion calculation