Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 437 for Network (0.19 seconds)

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

     * subtype of {@code Network} that provides methods for adding and removing nodes and edges. If you
     * do not need to mutate a network (e.g. if you write a method than runs a read-only algorithm on
     * the network), you should use the non-mutating {@link Network} interface, or an {@link
     * ImmutableNetwork}.
     *
     * <p>You can create an immutable copy of an existing {@code Network} using {@link
     * ImmutableNetwork#copyOf(Network)}:
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 11 01:10:31 GMT 2026
    - 17.6K bytes
    - Click Count (0)
  2. android/guava-tests/test/com/google/common/graph/ImmutableNetworkTest.java

      }
    
      @Test
      public void copyOfImmutableNetwork_optimized() {
        Network<String, String> network1 =
            ImmutableNetwork.copyOf(NetworkBuilder.directed().<String, String>build());
        Network<String, String> network2 = ImmutableNetwork.copyOf(network1);
    
        assertThat(network2).isSameInstanceAs(network1);
      }
    
      @Test
      public void edgesConnecting_directed() {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Sep 30 17:09:51 GMT 2025
    - 5.4K bytes
    - Click Count (0)
  3. guava-tests/test/com/google/common/graph/ElementOrderTest.java

        addEdges(network);
    
        assertThat(network.edgeOrder()).isEqualTo(ElementOrder.insertion());
        assertThat(network.edges()).containsExactly("i", "e", "p").inOrder();
        assertThat(network.nodeOrder()).isEqualTo(ElementOrder.insertion()); // default
      }
    
      // The default ordering is INSERTION unless otherwise specified.
      @Test
      public void edgeOrder_default() {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 17 19:26:39 GMT 2026
    - 7.9K bytes
    - Click Count (0)
  4. android/guava/src/com/google/common/graph/ImmutableNetwork.java

      private ImmutableNetwork(Network<N, E> network) {
        super(
            NetworkBuilder.from(network), getNodeConnections(network), getEdgeToReferenceNode(network));
      }
    
      /** Returns an immutable copy of {@code network}. */
      public static <N, E> ImmutableNetwork<N, E> copyOf(Network<N, E> network) {
        return (network instanceof ImmutableNetwork)
            ? (ImmutableNetwork<N, E>) network
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 11 01:10:31 GMT 2026
    - 9.6K bytes
    - Click Count (0)
  5. android/guava-tests/test/com/google/common/graph/DefaultNetworkImplementationsTest.java

        network.addEdge(N1, N1, E11);
        network.addEdge(N1, N1, E11_A);
        assertThat(network.edgesConnecting(N1, N1)).containsExactly(E11, E11_A);
      }
    
      private static class NetworkForTest<N, E> extends AbstractNetwork<N, E> {
        private final Network<N, E> network;
    
        NetworkForTest(Network<N, E> network) {
          this.network = network;
        }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Dec 19 18:03:30 GMT 2024
    - 7.4K bytes
    - Click Count (0)
  6. android/guava-tests/test/com/google/common/graph/NetworkMutationTest.java

          MutableNetwork<Integer, Object> network =
              networkBuilder.allowsParallelEdges(true).allowsSelfLoops(true).build();
    
          assertThat(network.nodes()).isEmpty();
          assertThat(network.edges()).isEmpty();
          AbstractNetworkTest.validateNetwork(network);
    
          while (network.nodes().size() < NUM_NODES) {
            network.addNode(gen.nextInt(NODE_POOL_SIZE));
          }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Dec 19 18:03:30 GMT 2024
    - 4.6K bytes
    - Click Count (0)
  7. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http/RealInterceptorChain.kt

    /**
     * A concrete interceptor chain that carries the entire interceptor chain: all application
     * interceptors, the OkHttp core, all network interceptors, and finally the network caller.
     *
     * If the chain is for an application interceptor then [exchange] must be null. Otherwise it is for
     * a network interceptor and [exchange] must be non-null.
     */
    class RealInterceptorChain(
      internal val call: RealCall,
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Mar 10 21:47:20 GMT 2026
    - 12.8K bytes
    - Click Count (0)
  8. android/guava/src/com/google/common/graph/Graphs.java

      /**
       * Returns a view of {@code network} with the direction (if any) of every edge reversed. All other
       * properties remain intact, and further updates to {@code network} will be reflected in the view.
       */
      public static <N, E> Network<N, E> transpose(Network<N, E> network) {
        if (!network.isDirected()) {
          return network; // the transpose of an undirected network is an identical network
        }
    
    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)
  9. android-test/src/test/kotlin/okhttp/android/test/ShadowDnsResolver.kt

      var responder: (Request) -> Unit = {
        it.callback.onAnswer(listOf(), 0)
      }
    
      data class Request(
        val network: Network?,
        val domain: String,
        val nsType: Int,
        val flags: Int,
        val callback: DnsResolver.Callback<List<InetAddress>>,
      )
    
      @Implementation
      fun query(
        network: Network?,
        domain: String,
        nsType: Int,
        flags: Int,
        executor: Executor,
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Mon Dec 30 23:28:56 GMT 2024
    - 1.7K bytes
    - Click Count (0)
  10. okhttp/src/jvmTest/kotlin/okhttp3/InterceptorTest.kt

      }
    
      @Test
      fun networkInterceptorsRewriteRequestToServer() {
        rewriteRequestToServer(true)
      }
    
      private fun rewriteRequestToServer(network: Boolean) {
        server.enqueue(MockResponse())
        addInterceptor(network) { chain: Interceptor.Chain ->
          val originalRequest = chain.request()
          chain.proceed(
            originalRequest
              .newBuilder()
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Nov 04 16:11:23 GMT 2025
    - 28.2K bytes
    - Click Count (0)
Back to Top