Imported networkx algorithms. Added debug lines to figure out format of data given by Facebook.