- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 72 for Graph (0.02 seconds)
-
android/guava/src/com/google/common/graph/Graph.java
* MutableGraph<Integer> graph = GraphBuilder.undirected().build(); * } * * <p>{@link GraphBuilder#build()} returns an instance of {@link MutableGraph}, which is a subtype * of {@code Graph} that provides methods for adding and removing nodes and edges. If you do not * need to mutate a graph (e.g. if you write a method than runs a read-only algorithm on the graph),
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Mon Mar 17 20:26:29 GMT 2025 - 13.6K bytes - Click Count (0) -
guava/src/com/google/common/graph/Graph.java
* MutableGraph<Integer> graph = GraphBuilder.undirected().build(); * } * * <p>{@link GraphBuilder#build()} returns an instance of {@link MutableGraph}, which is a subtype * of {@code Graph} that provides methods for adding and removing nodes and edges. If you do not * need to mutate a graph (e.g. if you write a method than runs a read-only algorithm on the graph),
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Mon Mar 17 20:26:29 GMT 2025 - 13.6K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/graph/AbstractGraphTest.java
assertThat(graph.degree(node)).isEqualTo(graph.adjacentNodes(node).size() + selfLoopCount); assertThat(graph.predecessors(node)).isEqualTo(graph.adjacentNodes(node)); assertThat(graph.successors(node)).isEqualTo(graph.adjacentNodes(node)); assertThat(graph.inDegree(node)).isEqualTo(graph.degree(node)); assertThat(graph.outDegree(node)).isEqualTo(graph.degree(node));
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Oct 07 15:57:03 GMT 2025 - 17.3K bytes - Click Count (0) -
impl/maven-core/src/main/java/org/apache/maven/internal/impl/DefaultLifecycleRegistry.java
private static void addPhase( Graph graph, Graph.Vertex before, Graph.Vertex after, org.apache.maven.api.Lifecycle.Phase phase) { Graph.Vertex ep0 = graph.addVertex(BEFORE + phase.name()); Graph.Vertex ep1 = graph.addVertex("$$" + phase.name()); Graph.Vertex ep2 = graph.addVertex(phase.name()); Graph.Vertex ep3 = graph.addVertex(AFTER + phase.name()); graph.addEdge(ep0, ep1);
Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Mon Sep 29 14:45:25 GMT 2025 - 20.1K bytes - Click Count (0) -
impl/maven-core/src/test/java/org/apache/maven/graph/DefaultProjectDependencyGraphTest.java
ProjectDependencyGraph graph = new DefaultProjectDependencyGraph(Arrays.asList(aProject, bProject, cProject, dProject, eProject)); graph = new FilteredProjectDependencyGraph(graph, Arrays.asList(aProject, dProject, eProject)); final List<MavenProject> downstreamProjects = graph.getDownstreamProjects(aProject, false); assertEquals(2, downstreamProjects.size());Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Wed Sep 17 10:01:14 GMT 2025 - 10.3K bytes - Click Count (0) -
impl/maven-core/src/main/java/org/apache/maven/project/ProjectSorter.java
import org.apache.maven.api.model.Parent; import org.apache.maven.api.model.Plugin; import org.apache.maven.artifact.ArtifactUtils; import org.apache.maven.project.Graph.Vertex; /** * ProjectSorter */ public class ProjectSorter { private Graph graph; private List<MavenProject> sortedProjects; private Map<String, MavenProject> projectMap; /** * Sort a list of projects. * <ul>Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Fri Oct 25 12:31:46 GMT 2024 - 10.3K bytes - Click Count (0) -
compat/maven-compat/src/main/java/org/apache/maven/repository/metadata/MetadataGraph.java
/** * null in dirty graph, actual * scope for conflict-resolved graph */ ArtifactScopeEnum scope; // ------------------------------------------------------------------------ /** * init graph */ public MetadataGraph(int nVertices) { init(nVertices, 2 * nVertices); } public MetadataGraph(int nVertices, int nEdges) {Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Wed Jul 23 17:27:08 GMT 2025 - 13K bytes - Click Count (0) -
guava/src/com/google/common/graph/ValueGraph.java
// ValueGraph-level accessors // /** Returns all nodes in this graph, in the order specified by {@link #nodeOrder()}. */ @Override Set<N> nodes(); /** Returns all edges in this graph. */ @Override Set<EndpointPair<N>> edges(); /** * Returns a live view of this graph as a {@link Graph}. The resulting {@link Graph} will have anCreated: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Mon Mar 17 20:26:29 GMT 2025 - 16K bytes - Click Count (0) -
impl/maven-core/src/main/java/org/apache/maven/graph/DefaultGraphBuilder.java
ProjectDependencyGraph graph = new DefaultProjectDependencyGraph(session.getAllProjects()); if (session.getProjects() != null) { graph = new FilteredProjectDependencyGraph(graph, session.getProjects()); } result = Result.success(graph); } return result; }
Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Tue Feb 11 16:38:19 GMT 2025 - 18.5K bytes - Click Count (0) -
guava-tests/test/com/google/common/graph/TraverserTest.java
graph.putEdge("a", "b"); Traverser.forTree(graph); // Does not throw } @Test public void forTree_withUndirectedGraph_throws() throws Exception { MutableGraph<String> graph = GraphBuilder.undirected().build(); graph.putEdge("a", "b"); assertThrows(IllegalArgumentException.class, () -> Traverser.forTree(graph)); } @Test @SuppressWarnings("CheckReturnValue")
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Sep 30 17:09:51 GMT 2025 - 47.4K bytes - Click Count (2)