Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 79 for addRole (0.09 sec)

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

    @RunWith(JUnit4.class)
    public class ImmutableValueGraphTest {
    
      @Test
      public void immutableValueGraph() {
        MutableValueGraph<String, Integer> mutableValueGraph = ValueGraphBuilder.directed().build();
        mutableValueGraph.addNode("A");
        ImmutableValueGraph<String, Integer> immutableValueGraph =
            ImmutableValueGraph.copyOf(mutableValueGraph);
    
        assertThat(immutableValueGraph.asGraph()).isInstanceOf(ImmutableGraph.class);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Jan 09 20:24:43 UTC 2020
    - 6.4K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/graph/StandardMutableDirectedNetworkTest.java

            .allowsParallelEdges(allowsParallelEdges)
            .nodeOrder(nodeOrder)
            .edgeOrder(edgeOrder)
            .build();
      }
    
      @Override
      void addNode(Integer n) {
        networkAsMutableNetwork.addNode(n);
      }
    
      @Override
      void addEdge(Integer n1, Integer n2, String e) {
        networkAsMutableNetwork.addEdge(n1, n2, e);
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Apr 09 17:01:22 UTC 2020
    - 2.6K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/graph/StandardMutableUndirectedNetworkTest.java

            .allowsParallelEdges(allowsParallelEdges)
            .nodeOrder(nodeOrder)
            .edgeOrder(edgeOrder)
            .build();
      }
    
      @Override
      void addNode(Integer n) {
        networkAsMutableNetwork.addNode(n);
      }
    
      @Override
      void addEdge(Integer n1, Integer n2, String e) {
        networkAsMutableNetwork.addEdge(n1, n2, e);
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Apr 09 17:01:22 UTC 2020
    - 2.6K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/graph/StandardMutableDirectedNetworkTest.java

            .allowsParallelEdges(allowsParallelEdges)
            .nodeOrder(nodeOrder)
            .edgeOrder(edgeOrder)
            .build();
      }
    
      @Override
      void addNode(Integer n) {
        networkAsMutableNetwork.addNode(n);
      }
    
      @Override
      void addEdge(Integer n1, Integer n2, String e) {
        networkAsMutableNetwork.addEdge(n1, n2, e);
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Apr 09 17:01:22 UTC 2020
    - 2.6K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/graph/StandardImmutableDirectedNetworkTest.java

                .nodeOrder(nodeOrder)
                .edgeOrder(edgeOrder)
                .immutable();
    
        return networkBuilder.build();
      }
    
      @Override
      void addNode(Integer n) {
        networkBuilder.addNode(n);
        network = networkBuilder.build();
      }
    
      @Override
      void addEdge(Integer n1, Integer n2, String e) {
        networkBuilder.addEdge(n1, n2, e);
        network = networkBuilder.build();
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Apr 09 17:01:22 UTC 2020
    - 2.8K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/graph/GraphEquivalenceTest.java

        }
        throw new IllegalStateException("Unexpected edge type: " + edgeType);
      }
    
      @Test
      public void equivalent_nodeSetsDiffer() {
        graph.addNode(N1);
    
        MutableGraph<Integer> g2 = createGraph(edgeType);
        g2.addNode(N2);
    
        assertThat(graph).isNotEqualTo(g2);
      }
    
      // Node/edge sets are the same, but node/edge connections differ due to edge type.
      @Test
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 16 17:21:56 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/graph/GraphEquivalenceTest.java

        }
        throw new IllegalStateException("Unexpected edge type: " + edgeType);
      }
    
      @Test
      public void equivalent_nodeSetsDiffer() {
        graph.addNode(N1);
    
        MutableGraph<Integer> g2 = createGraph(edgeType);
        g2.addNode(N2);
    
        assertThat(graph).isNotEqualTo(g2);
      }
    
      // Node/edge sets are the same, but node/edge connections differ due to edge type.
      @Test
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 16 17:21:56 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/graph/GraphPropertiesTest.java

        assertThat(hasCycle(undirectedGraph)).isFalse();
      }
    
      @Test
      public void hasCycle_isolatedNodes() {
        for (MutableGraph<Integer> graph : graphsToTest) {
          graph.addNode(1);
          graph.addNode(2);
        }
        assertThat(hasCycle(directedGraph)).isFalse();
        assertThat(hasCycle(undirectedGraph)).isFalse();
      }
    
      @Test
      public void hasCycle_oneEdge() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Jul 18 17:56:35 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/graph/MutableNetwork.java

       * <p><b>Nodes must be unique</b>, just as {@code Map} keys must be. They must also be non-null.
       *
       * @return {@code true} if the network was modified as a result of this call
       */
      @CanIgnoreReturnValue
      boolean addNode(N node);
    
      /**
       * Adds {@code edge} connecting {@code nodeU} to {@code nodeV}.
       *
       * <p>If the graph is directed, {@code edge} will be directed in this graph; otherwise, it will be
       * undirected.
       *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Apr 26 17:43:39 UTC 2021
    - 4.4K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/graph/NetworkMutationTest.java

          assertThat(network.nodes()).isEmpty();
          assertThat(network.edges()).isEmpty();
          AbstractNetworkTest.validateNetwork(network);
    
          while (network.nodes().size() < NUM_NODES) {
            network.addNode(gen.nextInt(NODE_POOL_SIZE));
          }
          ArrayList<Integer> nodeList = new ArrayList<>(network.nodes());
          for (int i = 0; i < NUM_EDGES; ++i) {
            // Parallel edges are allowed, so this should always succeed.
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Apr 10 19:42:18 UTC 2024
    - 4.5K bytes
    - Viewed (0)
Back to top