Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 51 - 60 of 240 for Graphs (0.03 seconds)

  1. android/guava/src/com/google/common/cache/CacheLoader.java

     * overridden as desired.
     *
     * <p>Usage example:
     *
     * {@snippet :
     * CacheLoader<Key, Graph> loader = new CacheLoader<Key, Graph>() {
     *   public Graph load(Key key) throws AnyException {
     *     return createExpensiveGraph(key);
     *   }
     * };
     * LoadingCache<Key, Graph> cache = CacheBuilder.newBuilder().build(loader);
     * }
     *
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Jan 28 22:39:02 GMT 2026
    - 9.7K bytes
    - Click Count (0)
  2. android/guava-tests/test/com/google/common/graph/AbstractStandardUndirectedGraphTest.java

    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Oct 06 20:14:55 GMT 2025
    - 13.2K bytes
    - Click Count (0)
  3. android/guava/src/com/google/common/graph/AbstractGraph.java

      /** Constructor for use by subclasses. */
      public AbstractGraph() {}
    
      @Override
      public final boolean equals(@Nullable Object obj) {
        if (obj == this) {
          return true;
        }
        if (!(obj instanceof Graph)) {
          return false;
        }
        Graph<?> other = (Graph<?>) obj;
    
        return isDirected() == other.isDirected()
            && nodes().equals(other.nodes())
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 11 01:10:31 GMT 2026
    - 1.8K bytes
    - Click Count (0)
  4. android/guava-tests/test/com/google/common/graph/GraphMutationTest.java

          MutableGraph<Integer> graph = graphBuilder.allowsSelfLoops(true).build();
    
          assertThat(graph.nodes()).isEmpty();
          assertThat(graph.edges()).isEmpty();
          AbstractGraphTest.validateGraph(graph);
    
          while (graph.nodes().size() < NUM_NODES) {
            graph.addNode(gen.nextInt(NODE_POOL_SIZE));
          }
          ArrayList<Integer> nodeList = new ArrayList<>(graph.nodes());
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Dec 19 18:03:30 GMT 2024
    - 4.2K bytes
    - Click Count (0)
  5. android/guava/src/com/google/common/graph/BaseGraph.java

     */
    
    package com.google.common.graph;
    
    import java.util.Set;
    
    /**
     * A non-public interface for the methods shared between {@link Graph} and {@link ValueGraph}.
     *
     * @author James Sexton
     * @param <N> Node parameter type
     */
    interface BaseGraph<N> extends ArchetypeGraph<N> {
      //
      // Graph-level accessors
      //
    
      /** Returns all edges in this graph. */
      Set<EndpointPair<N>> edges();
    
      /**
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Nov 11 17:11:16 GMT 2025
    - 2.9K bytes
    - Click Count (0)
  6. guava-tests/test/com/google/common/graph/AbstractStandardUndirectedGraphTest.java

    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Oct 06 20:14:55 GMT 2025
    - 13.2K bytes
    - Click Count (0)
  7. android/guava/src/com/google/common/graph/MutableValueGraph.java

       *
       * <p>If the graph is directed, the resultant edge will be directed; otherwise, it will be
       * undirected.
       *
       * <p>If this graph is directed, {@code endpoints} must be ordered.
       *
       * <p>Values do not have to be unique. However, values must be non-null.
       *
       * <p>If either or both endpoints are not already present in this graph, this method will silently
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 11 01:10:31 GMT 2026
    - 4.3K bytes
    - Click Count (0)
  8. guava-tests/test/com/google/common/graph/GraphMutationTest.java

          MutableGraph<Integer> graph = graphBuilder.allowsSelfLoops(true).build();
    
          assertThat(graph.nodes()).isEmpty();
          assertThat(graph.edges()).isEmpty();
          AbstractGraphTest.validateGraph(graph);
    
          while (graph.nodes().size() < NUM_NODES) {
            graph.addNode(gen.nextInt(NODE_POOL_SIZE));
          }
          ArrayList<Integer> nodeList = new ArrayList<>(graph.nodes());
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Dec 19 18:03:30 GMT 2024
    - 4.2K bytes
    - Click Count (0)
  9. android/guava/src/com/google/common/graph/AbstractBaseGraph.java

          }
    
          @Override
          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());
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Oct 07 15:57:03 GMT 2025
    - 11.5K bytes
    - Click Count (0)
  10. android/guava/src/com/google/common/graph/IncidentEdgeSet.java

      final N node;
      final ArchetypeGraph<N> graph;
      final EdgeType edgeType;
    
      enum EdgeType {
        INCOMING, // incoming incident edges only
        OUTGOING, // outgoing incident edges only
        BOTH // both incoming and outgoing incident edges
      }
    
      IncidentEdgeSet(ArchetypeGraph<N> graph, N node, EdgeType edgeType) {
        this.graph = graph;
        this.node = node;
        this.edgeType = edgeType;
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Oct 07 15:57:03 GMT 2025
    - 3.3K bytes
    - Click Count (0)
Back to Top