NL_I_PMDeletePackets deletes the list of packets with indexes included into the vector P from the packet manager R.
Examples
n=100;//network size[nd,nf]=NL_F_RandIntNiNj(n);//generation of connection extreme nodes bs=15;//constant buffer sizenetwork=NL_I_NetworkMatrixInit(n,bs);//initialization of the reception network matrix networks=NL_I_NetworkMatrixInit(n,bs);//initialization of the emission network matrixtpmax=n*bs;//maximal quantity of packets simultaneously supported by each network matrix rp=NL_I_PacketManagerInit(tpmax);//initialization of the packet managercpt=1;//connection type: TCPcpmax=6;//quantity of connection packets[rp,ps,npn]=NL_I_PMAddConnections(rp,nd,nf,cpt,cpmax);//packet manager update with connection packetsrp(1:cpmax,:)//initial state of the packet managerp=[124]//packets that will be removed[rp]=NL_I_PMDeletePackets(rp,p);//application of NL_I_PMDeletePacketsrp(1:cpmax,:)//new state of the packet manager