private static PriorityQueue A = new PriorityQueue(); public static void graphSearch(PriorityQueue B){ B.add(new Node(some parameters));