Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for MutableNetwork (1.49 sec)

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

      }
    
      @Test
      public void transpose_undirectedNetwork() {
        MutableNetwork<Integer, String> undirectedGraph = NetworkBuilder.undirected().build();
        undirectedGraph.addEdge(N1, N2, E12);
    
        assertThat(transpose(undirectedGraph)).isSameInstanceAs(undirectedGraph);
      }
    
      @Test
      public void transpose_directedNetwork() {
        MutableNetwork<Integer, String> directedGraph =
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 24.6K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/graph/Graphs.java

       *
       * @throws IllegalArgumentException if any element in {@code nodes} is not a node in the graph
       */
      public static <N, E> MutableNetwork<N, E> inducedSubgraph(
          Network<N, E> network, Iterable<? extends N> nodes) {
        MutableNetwork<N, E> subgraph =
            (nodes instanceof Collection)
                ? NetworkBuilder.from(network).expectedNodeCount(((Collection) nodes).size()).build()
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Aug 01 00:26:14 UTC 2025
    - 22.7K bytes
    - Viewed (0)
  3. guava/src/com/google/common/graph/Graphs.java

       *
       * @throws IllegalArgumentException if any element in {@code nodes} is not a node in the graph
       */
      public static <N, E> MutableNetwork<N, E> inducedSubgraph(
          Network<N, E> network, Iterable<? extends N> nodes) {
        MutableNetwork<N, E> subgraph =
            (nodes instanceof Collection)
                ? NetworkBuilder.from(network).expectedNodeCount(((Collection) nodes).size()).build()
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Aug 01 00:26:14 UTC 2025
    - 23.3K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/graph/AbstractNetworkTest.java

      final boolean graphIsMutable() {
        return networkAsMutableNetwork != null;
      }
    
      @Before
      public void init() {
        network = createGraph();
        if (network instanceof MutableNetwork) {
          networkAsMutableNetwork = (MutableNetwork<Integer, String>) network;
        }
      }
    
      @After
      public void validateNetworkState() {
        validateNetwork(network);
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 32.7K bytes
    - Viewed (0)
  5. guava/src/com/google/common/graph/Network.java

     * create an instance of one of the built-in implementations of {@code Network}, use the {@link
     * NetworkBuilder} class:
     *
     * {@snippet :
     * MutableNetwork<Integer, MyEdge> network = NetworkBuilder.directed().build();
     * }
     *
     * <p>{@link NetworkBuilder#build()} returns an instance of {@link MutableNetwork}, which is a
     * subtype of {@code Network} that provides methods for adding and removing nodes and edges. If you
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 22:03:02 UTC 2025
    - 22.5K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/graph/TraverserTest.java

      public void forTree_acceptsDirectedNetwork() throws Exception {
        MutableNetwork<String, Integer> network = NetworkBuilder.directed().build();
        network.addEdge("a", "b", 11);
    
        Traverser.forTree(network); // Does not throw
      }
    
      @Test
      public void forTree_withUndirectedNetwork_throws() throws Exception {
        MutableNetwork<String, Integer> network = NetworkBuilder.undirected().build();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 47.5K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/graph/TraverserTest.java

      public void forTree_acceptsDirectedNetwork() throws Exception {
        MutableNetwork<String, Integer> network = NetworkBuilder.directed().build();
        network.addEdge("a", "b", 11);
    
        Traverser.forTree(network); // Does not throw
      }
    
      @Test
      public void forTree_withUndirectedNetwork_throws() throws Exception {
        MutableNetwork<String, Integer> network = NetworkBuilder.undirected().build();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 47.5K bytes
    - Viewed (0)
Back to top