Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 23 for ValueGraph (0.32 sec)

  1. android/guava/src/com/google/common/graph/ValueGraph.java

     * subtype of {@code ValueGraph} 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), you should use the non-mutating {@link ValueGraph} interface, or an {@link
     * ImmutableValueGraph}.
     *
     * <p>You can create an immutable copy of an existing {@code ValueGraph} using {@link
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Jan 22 17:29:38 GMT 2024
    - 15K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/graph/AbstractValueGraph.java

        };
      }
    
      @Override
      public final boolean equals(@CheckForNull Object obj) {
        if (obj == this) {
          return true;
        }
        if (!(obj instanceof ValueGraph)) {
          return false;
        }
        ValueGraph<?, ?> other = (ValueGraph<?, ?>) obj;
    
        return isDirected() == other.isDirected()
            && nodes().equals(other.nodes())
            && edgeValueMap(this).equals(edgeValueMap(other));
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 17 13:59:28 GMT 2023
    - 4K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/graph/MutableValueGraph.java

    /**
     * A subinterface of {@link ValueGraph} which adds mutation methods. When mutation is not required,
     * users should prefer the {@link ValueGraph} interface.
     *
     * @author James Sexton
     * @param <N> Node parameter type
     * @param <V> Value parameter type
     * @since 20.0
     */
    @Beta
    @ElementTypesAreNonnullByDefault
    public interface MutableValueGraph<N, V> extends ValueGraph<N, V> {
    
      /**
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 26 17:43:39 GMT 2021
    - 4.4K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/graph/Graphs.java

      private static class TransposedValueGraph<N, V> extends ForwardingValueGraph<N, V> {
        private final ValueGraph<N, V> graph;
    
        TransposedValueGraph(ValueGraph<N, V> graph) {
          this.graph = graph;
        }
    
        @Override
        ValueGraph<N, V> delegate() {
          return graph;
        }
    
        @Override
        public Set<N> predecessors(N node) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 21.2K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/graph/ImmutableValueGraphTest.java

        assertThat(immutableValueGraph).isNotEqualTo(mutableValueGraph);
      }
    
      @Test
      public void copyOfImmutableValueGraph_optimized() {
        ValueGraph<String, Integer> graph1 =
            ImmutableValueGraph.copyOf(ValueGraphBuilder.directed().<String, Integer>build());
        ValueGraph<String, Integer> graph2 = ImmutableValueGraph.copyOf(graph1);
    
        assertThat(graph2).isSameInstanceAs(graph1);
      }
    
      @Test
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Jan 09 20:24:43 GMT 2020
    - 6.4K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/graph/ValueGraphBuilder.java

        return newBuilder;
      }
    
      /**
       * Specifies the order of iteration for the elements of {@link ValueGraph#edges()}, {@link
       * ValueGraph#adjacentNodes(Object)}, {@link ValueGraph#predecessors(Object)}, {@link
       * ValueGraph#successors(Object)} and {@link ValueGraph#incidentEdges(Object)}.
       *
       * <p>The default value is {@link ElementOrder#unordered() unordered} for mutable graphs. For
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Jun 03 01:21:31 GMT 2022
    - 8K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/graph/GraphsTest.java

      public void copyOf_directedValueGraph() {
        ValueGraph<Integer, String> directedGraph = buildDirectedValueGraph();
    
        ValueGraph<Integer, String> copy = copyOf(directedGraph);
        assertThat(copy).isEqualTo(directedGraph);
      }
    
      @Test
      public void copyOf_undirectedValueGraph() {
        ValueGraph<Integer, String> undirectedGraph = buildUndirectedValueGraph();
    
        ValueGraph<Integer, String> copy = copyOf(undirectedGraph);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 24.9K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/graph/ImmutableValueGraph.java

    import com.google.errorprone.annotations.CanIgnoreReturnValue;
    import com.google.errorprone.annotations.Immutable;
    
    /**
     * A {@link ValueGraph} whose elements and structural relationships will never change. Instances of
     * this class may be obtained with {@link #copyOf(ValueGraph)}.
     *
     * <p>See the Guava User's Guide's <a
     * href="https://github.com/google/guava/wiki/GraphsExplained#immutable-implementations">discussion
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 01 16:30:37 GMT 2022
    - 7.7K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/graph/TraverserTest.java

        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();
        valueGraph.putEdgeValue("a", "b", 11);
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 47.5K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/graph/ForwardingValueGraph.java

    /**
     * A class to allow {@link ValueGraph} implementations to be backed by a provided delegate. This is
     * not currently planned to be released as a general-purpose forwarding class.
     *
     * @author James Sexton
     * @author Joshua O'Madadhain
     */
    @ElementTypesAreNonnullByDefault
    abstract class ForwardingValueGraph<N, V> extends AbstractValueGraph<N, V> {
    
      abstract ValueGraph<N, V> delegate();
    
      @Override
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 26 17:43:39 GMT 2021
    - 2.9K bytes
    - Viewed (0)
Back to top