code: private void addModuleToGraph(final DbModule module, final AbstractGraph graph, final int depth) {
          if (graph.isTreated(graph.getId(module))) {
              return;
          }
  
          final String moduleElementId = graph.getId(module);
          graph.addElement(moduleElementId, module.getVersion(), depth == 0);
  
          if (filters.getDepthHandler().shouldGoDeeper(depth)) {
              for (final DbDependency dep : DataUtils.getAllDbDependencies(module)) {
                  if(filters.shouldBeInReport(dep)){
                      addDependencyToGraph(dep, graph, depth + 1, moduleElementId);
                  }
              }
          }
      }
docs: Manage the artifact add to the Module AbstractGraph
  
  @param graph
  @param depth