A node class for parallel BFS