anchor.diff:  -record(state, {n,topology}).
   
   init([IslandsNr,Topology]) ->
  -  misc_util:seedRandom(),
  -  {ok, #state{n = IslandsNr, topology = Topology}}.
  +    misc_util:seedRandom(),
  +    {ok, #state{n = IslandsNr, topology = Topology}}.
   
   handle_call({destination, X}, _From, State) ->
       Ans = case State#state.n of
  
positive.code:           end,
      {reply, Ans, State}.
  
  handle_cast(close, State) ->
    {stop, normal, State}.
  
  handle_info(_Request, State) ->
    {noreply, State}.
  
  terminate(_Reason, _State) ->
    ok.
  
  code_change(_OldVsn, State, _Extra) ->
    {ok, State}.
  
negative.code: %% ====================================================================
  -spec start_link(integer(),topology()) -> {ok,pid()}.
  start_link(IslandsNr,Topology) ->
      gen_server:start_link({local, ?MODULE}, ?MODULE, [IslandsNr,Topology], []).
  
  -spec close() -> ok.
  close() ->
      gen_server:cast(whereis(?MODULE),close).
  
  -spec getDestination(integer()) -> integer().
  %% @doc Funkcja komunikujaca sie synchronicznie z procesem topology i zwracajaca docelowa wyspe
  %%  na podstawie przeslanego argumentu
  getDestination(X) ->
      gen_server:call(whereis(?MODULE),{destination,X}).
  
  %% ====================================================================
  %% Callbacks
  