Hy, I am here again to ask for help.
1) In fact it was just like that, I can not select a node to become "SPREADER" within the "IGNORANT" neighbours of the current "SPREADERS" without considering the number SPREADER nodes in the neighborhood.
But what happens if I simply remove the funcion "unique"? Will it work? Or maybe can I Remove the "unique" function, then sampling the vector (in wich some nodes may appear 2,3... or more times) and, then, apply "unique" fuction to the vector obtained by the "sample"? What do you think? Any suggestions?
2) In the while cycle, till now, I selected the nodes to become "STIFLER" (such as nodes that recover from a disease, but this is not a disease, is innovation spreading) within the whole "SPREADER" nodes, included that nodes that become "SPREADER" in that same iteration. Now I have to change this and select the nodes to become "SPREADER" only within the nodes that were already "SPREADER", I mean before the single iteration. Otherwise, it can happens that a node become "SPREADER" and, in the same iteration, it become "STIFLER", and if there are not others "SPREADER", the algorithm stops.
Any suggestion?
Thanks in advance.
Giorgio