Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 6 of 6 for MutableValueGraph (0.1 seconds)

  1. guava-tests/test/com/google/common/graph/GraphsTest.java

      @Test
      public void transpose_undirectedValueGraph() {
        MutableValueGraph<Integer, String> undirectedGraph = ValueGraphBuilder.undirected().build();
        undirectedGraph.putEdgeValue(N1, N2, E12);
    
        assertThat(transpose(undirectedGraph)).isSameInstanceAs(undirectedGraph);
      }
    
      @Test
      public void transpose_directedValueGraph() {
        MutableValueGraph<Integer, String> directedGraph =
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Jan 09 23:46:06 GMT 2026
    - 30.1K bytes
    - Click Count (0)
  2. android/guava/src/com/google/common/graph/Graphs.java

       * nodes}.
       *
       * @throws IllegalArgumentException if any element in {@code nodes} is not a node in the graph
       */
      public static <N, V> MutableValueGraph<N, V> inducedSubgraph(
          ValueGraph<N, V> graph, Iterable<? extends N> nodes) {
        MutableValueGraph<N, V> subgraph =
            (nodes instanceof Collection)
                ? ValueGraphBuilder.from(graph).expectedNodeCount(((Collection) nodes).size()).build()
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 11 01:10:31 GMT 2026
    - 24.4K bytes
    - Click Count (0)
  3. android/guava/src/com/google/common/graph/ValueGraph.java

     * ValueGraphBuilder} class:
     *
     * {@snippet :
     * MutableValueGraph<Integer, Double> graph = ValueGraphBuilder.directed().build();
     * }
     *
     * <p>{@link ValueGraphBuilder#build()} returns an instance of {@link MutableValueGraph}, which is a
     * subtype of {@code ValueGraph} that provides methods for adding and removing nodes and edges. If
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 11 01:10:31 GMT 2026
    - 15K bytes
    - Click Count (0)
  4. android/guava-tests/test/com/google/common/graph/ValueGraphTest.java

    // TODO(user): Expand coverage and move to proper test suite.
    @RunWith(JUnit4.class)
    @NullUnmarked
    public final class ValueGraphTest {
      private static final String DEFAULT = "default";
    
      MutableValueGraph<Integer, String> graph;
    
      @After
      public void validateGraphState() {
        assertStronglyEquivalent(graph, Graphs.copyOf(graph));
        assertStronglyEquivalent(graph, ImmutableValueGraph.copyOf(graph));
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 17 19:26:39 GMT 2026
    - 17.9K bytes
    - Click Count (0)
  5. guava-tests/test/com/google/common/graph/ValueGraphTest.java

    // TODO(user): Expand coverage and move to proper test suite.
    @RunWith(JUnit4.class)
    @NullUnmarked
    public final class ValueGraphTest {
      private static final String DEFAULT = "default";
    
      MutableValueGraph<Integer, String> graph;
    
      @After
      public void validateGraphState() {
        assertStronglyEquivalent(graph, Graphs.copyOf(graph));
        assertStronglyEquivalent(graph, ImmutableValueGraph.copyOf(graph));
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 17 19:26:39 GMT 2026
    - 20.5K bytes
    - Click Count (0)
  6. android/guava-tests/test/com/google/common/graph/TraverserTest.java

      public void forTree_acceptsDirectedValueGraph() throws Exception {
        MutableValueGraph<String, Integer> valueGraph = ValueGraphBuilder.directed().build();
        valueGraph.putEdgeValue("a", "b", 11);
    
        Traverser.forTree(valueGraph); // Does not throw
      }
    
      @Test
      public void forTree_withUndirectedValueGraph_throws() throws Exception {
        MutableValueGraph<String, Integer> valueGraph = ValueGraphBuilder.undirected().build();
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Sep 30 17:09:51 GMT 2025
    - 47.4K bytes
    - Click Count (0)
Back to Top