The Effect Of Watts-Strogatz And Barabási-Albert Graphs On Memory Formation