public Queue <float> prefixQueue() { Queue <float> prefixVrsta = new Queue <float>(); if (koren != null) { koren.prefixQueue(prefixVrsta); } return(prefixVrsta); }
public void prefixQueue(Queue <float> vrsta) { vrsta.Enqueue(podatek); if (levo != null) { levo.prefixQueue(vrsta); } if (desno != null) { desno.prefixQueue(vrsta); } }