code: private List<DependencyNode> depLevelOrderList(DependencyNode rootNode)
    {
  
      // Create list to store aggregate list of all nodes in tree
      List <DependencyNode> aggDepNodeList = new LinkedList<DependencyNode> ();
      
      // Create list that stores current breadth
      List <DependencyNode> nodeChildList = rootNode.getChildren();
      //LevelOrderList.add(rootNode);
  
      while (!nodeChildList.isEmpty()) {
        nodeChildList = levelTraverseTreeList(nodeChildList, aggDepNodeList);
      }
      
      return aggDepNodeList;
    }
docs: Get List of Nodes of Dependency tree serialised by traversing nodes
  in Level-Order way (also called BFS algorithm)
  
  @param rootNode root node of the project Dependency tree
  @return the dependency tree string of comma separated list
  of groupId:artifactId