Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 23 for ValueGraph (0.06 sec)

  1. 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
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Sep 30 17:09:51 UTC 2025
    - 6.4K bytes
    - Viewed (0)
  2. guava/src/com/google/common/graph/PredecessorsFunction.java

     * }
     *
     * you will invoke it depending on the graph representation you're using.
     *
     * <p>If you have an instance of one of the primary {@code common.graph} types ({@link Graph},
     * {@link ValueGraph}, and {@link Network}):
     *
     * {@snippet :
     * someGraphAlgorithm(startNode, graph);
     * }
     *
     * This works because those types each implement {@code PredecessorsFunction}. It will also work
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Mar 17 20:26:29 UTC 2025
    - 4K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/graph/ArchetypeGraph.java

     * limitations under the License.
     */
    
    package com.google.common.graph;
    
    import java.util.Set;
    
    /**
     * A non-public interface for the methods shared between {@link Graph}, {@link ValueGraph}, and
     * {@link Network}.
     *
     * @author Joshua O'Madadhain
     * @param <N> Node parameter type
     */
    interface ArchetypeGraph<N> extends SuccessorsFunction<N>, PredecessorsFunction<N> {
      //
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Nov 11 17:11:16 UTC 2025
    - 7.5K bytes
    - Viewed (0)
  4. 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);
    
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Sep 30 17:09:51 UTC 2025
    - 47.4K bytes
    - Viewed (2)
  5. guava/src/com/google/common/graph/GraphConstants.java

      static final String ENDPOINTS_MISMATCH =
          "Mismatch: endpoints' ordering is not compatible with directionality of the graph";
    
      /** Singleton edge value for {@link Graph} implementations backed by {@link ValueGraph}s. */
      enum Presence {
        EDGE_EXISTS
      }
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Sat Jan 18 02:54:30 UTC 2025
    - 3.1K bytes
    - Viewed (0)
  6. 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);
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Sep 30 17:09:51 UTC 2025
    - 30.1K bytes
    - Viewed (0)
  7. guava/src/com/google/common/graph/AbstractBaseGraph.java

          public Graph<N> asGraph() {
            if (AbstractBaseGraph.this instanceof Graph) {
              return (Graph<N>) AbstractBaseGraph.this;
            } else if (AbstractBaseGraph.this instanceof ValueGraph) {
              return ((ValueGraph<N, ?>) AbstractBaseGraph.this).asGraph();
            }
            throw new UnsupportedOperationException(
                "Unexpected graph type: " + AbstractBaseGraph.this.getClass());
          }
    
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Oct 07 15:57:03 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  8. guava/src/com/google/common/graph/StandardValueGraph.java

    import java.util.Iterator;
    import java.util.Map;
    import java.util.Set;
    import java.util.TreeMap;
    import org.jspecify.annotations.Nullable;
    
    /**
     * Standard implementation of {@link ValueGraph} that supports the options supplied by {@link
     * AbstractGraphBuilder}.
     *
     * <p>This class maintains a map of nodes to {@link GraphConnections}.
     *
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Oct 07 15:57:03 UTC 2025
    - 6K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/graph/ElementOrder.java

       *
       * <p>{@code incidentEdgeOrder(ElementOrder.stable())} guarantees the ordering of the returned
       * collections of the following methods:
       *
       * <ul>
       *   <li>For {@link Graph} and {@link ValueGraph}:
       *       <ul>
       *         <li>{@code edges()}: Stable order
       *         <li>{@code adjacentNodes(node)}: Connecting edge insertion order
       *         <li>{@code predecessors(node)}: Connecting edge insertion order
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Jul 08 18:32:10 UTC 2025
    - 6.6K bytes
    - Viewed (0)
  10. guava/src/com/google/common/graph/ElementOrder.java

       *
       * <p>{@code incidentEdgeOrder(ElementOrder.stable())} guarantees the ordering of the returned
       * collections of the following methods:
       *
       * <ul>
       *   <li>For {@link Graph} and {@link ValueGraph}:
       *       <ul>
       *         <li>{@code edges()}: Stable order
       *         <li>{@code adjacentNodes(node)}: Connecting edge insertion order
       *         <li>{@code predecessors(node)}: Connecting edge insertion order
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Jul 08 18:32:10 UTC 2025
    - 6.6K bytes
    - Viewed (0)
Back to top