public GraphEvent popNext(){
synchronized (queue) {
    return queue.pollFirst();
  }
}

public GraphEvent popNext ( ) { synchronized ( queue ) { return queue . pollFirst ( ) ; } }
provides the next graph event ( synchronous ) or null if no more event .
