index -> uid

replace logic for getting edge and node by uid not by index;
now edge keep reference to the actual node not just the index;