anchor.diff:           get_bucket_sample/0,
            is_leaf/1,
            get_closest_dcid/1,
  +         get_all_nodes/0,
            do_replicate/1]).
   
   -record(state, {groups,
  
positive.code: 
  get_bucket_sample() ->
      gen_server:call(?MODULE, get_bucket_sample, infinity).
      
      
  init([]) ->
  
negative.code:     end,
      file:close(TreeFile),
      {ok, S1#state{map=dict:new()}}.
  
  handle_call({get_all_nodes}, _From, S0=#state{tree=Tree, myid=MyId}) ->
      Nodes = dict:fetch_keys(Tree),
      {reply, {ok, lists:delete(MyId, Nodes)}, S0};
  
  handle_call({get_mypath}, _From, S0=#state{myid=MyId, paths=Paths}) ->
      {reply, {ok, dict:fetch(MyId, Paths)}, S0};
  