Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for addEdge (0.04 sec)

  1. compat/maven-model-builder/src/main/java/org/apache/maven/model/building/DefaultTransformerContextBuilder.java

                        // gathered with problem collector
                    }
                    return null;
                }
            };
        }
    
        private boolean addEdge(Path from, Path p, DefaultModelProblemCollector problems) {
            try {
                dag.addEdge(from.toString(), p.toString());
                return true;
            } catch (Graph.CycleDetectedException e) {
                problems.add(new DefaultModelProblem(
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  2. impl/maven-core/src/main/java/org/apache/maven/internal/impl/DefaultLifecycleRegistry.java

            Graph.Vertex ep3 = graph.addVertex("$$$" + phase.name());
            graph.addEdge(ep0, ep1);
            graph.addEdge(ep1, ep2);
            graph.addEdge(ep2, ep3);
            if (before != null) {
                graph.addEdge(before, ep0);
            }
            if (after != null) {
                graph.addEdge(ep3, after);
            }
            phase.links().forEach(link -> {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 19.4K bytes
    - Viewed (0)
  3. compat/maven-compat/src/test/java/org/apache/maven/repository/metadata/DefaultClasspathTransformationTestType.java

            // v1-->v2
            graph.addEdge(v1, v2, new MetadataGraphEdge("1.1", true, null, null, 2, 1));
            graph.addEdge(v1, v2, new MetadataGraphEdge("1.2", true, null, null, 2, 2));
    
            // v1-->v3
            graph.addEdge(v1, v3, new MetadataGraphEdge("1.1", true, null, null, 2, 1));
            graph.addEdge(v1, v3, new MetadataGraphEdge("1.2", true, null, null, 4, 2));
    
            // v3-->v4
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  4. compat/maven-compat/src/test/java/org/apache/maven/repository/metadata/DefaultGraphConflictResolverTest.java

            // v1-->v2
            graph.addEdge(v1, v2, new MetadataGraphEdge("1.1", true, null, null, 2, 1));
            graph.addEdge(v1, v2, new MetadataGraphEdge("1.2", true, null, null, 2, 2));
    
            // v1-->v3
            graph.addEdge(v1, v3, new MetadataGraphEdge("1.1", true, null, null, 2, 1));
            graph.addEdge(v1, v3, new MetadataGraphEdge("1.2", true, null, null, 4, 2));
    
            // v3-->v4
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  5. compat/maven-model-builder/src/test/java/org/apache/maven/model/building/GraphTest.java

    public class GraphTest {
    
        @Test
        void testCycle() throws Graph.CycleDetectedException {
            Graph graph = new Graph();
            graph.addEdge("a1", "a2");
            assertThrows(Graph.CycleDetectedException.class, () -> graph.addEdge("a2", "a1"));
        }
    
        @Test
        public void testPerf() throws IOException {
            List<String[]> data = new ArrayList<>();
            String k = null;
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  6. compat/maven-compat/src/main/java/org/apache/maven/repository/metadata/MetadataGraph.java

            {
                ArtifactMetadata md = node.getMd();
                MetadataGraphEdge e =
                        new MetadataGraphEdge(md.version, md.resolved, md.artifactScope, md.artifactUri, depth, pomOrder);
                addEdge(parentVertex, vertex, e);
            } else {
                entry = vertex;
            }
    
            MetadataTreeNode[] kids = node.getChildren();
            if (kids == null || kids.length < 1) {
                return;
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 13.1K bytes
    - Viewed (0)
  7. compat/maven-model-builder/src/main/java/org/apache/maven/model/building/Graph.java

     * @deprecated use {@link org.apache.maven.api.services.ModelBuilder} instead
     */
    @Deprecated(since = "4.0.0")
    class Graph {
    
        final Map<String, Set<String>> graph = new LinkedHashMap<>();
    
        synchronized void addEdge(String from, String to) throws CycleDetectedException {
            if (graph.computeIfAbsent(from, l -> new HashSet<>()).add(to)) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  8. impl/maven-core/src/main/java/org/apache/maven/internal/impl/Graph.java

        public Collection<Vertex> getVertices() {
            return vertices.values();
        }
    
        Vertex addVertex(String label) {
            return vertices.computeIfAbsent(label, Vertex::new);
        }
    
        void addEdge(Vertex from, Vertex to) throws CycleDetectedException {
            from.children.add(to);
            to.parents.add(from);
            List<String> cycle = findCycle(to);
            if (cycle != null) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  9. compat/maven-compat/src/main/java/org/apache/maven/repository/metadata/DefaultGraphConflictResolver.java

                        MetadataGraphVertex newV = res.addVertex(newMd);
                        MetadataGraphVertex sourceV = res.addVertex(edge.getSource().getMd());
    
                        res.addEdge(sourceV, newV, edge);
                    }
                }
                // System.err.println("Original graph("+graph.getVertices().size()+"):\n"+graph.toString());
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 8.2K bytes
    - Viewed (0)
Back to top