Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for visitCycle (0.08 sec)

  1. impl/maven-core/src/main/java/org/apache/maven/internal/impl/Graph.java

        }
    
        private static List<String> visitCycle(
                Collection<Vertex> children, Map<Vertex, DfsState> stateMap, LinkedList<String> cycle) {
            for (Vertex v : children) {
                DfsState state = stateMap.putIfAbsent(v, DfsState.VISITING);
                if (state == null) {
                    cycle.addLast(v.label);
                    List<String> ret = visitCycle(v.children, stateMap, cycle);
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  2. compat/maven-model-builder/src/main/java/org/apache/maven/model/building/Graph.java

        synchronized void addEdge(String from, String to) throws CycleDetectedException {
            if (graph.computeIfAbsent(from, l -> new HashSet<>()).add(to)) {
                List<String> cycle = visitCycle(graph, Collections.singleton(to), new HashMap<>(), new LinkedList<>());
                if (cycle != null) {
                    // remove edge which introduced cycle
                    throw new CycleDetectedException(
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 3.4K bytes
    - Viewed (0)
Back to top