Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 97 for edges (0.15 sec)

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

      }
    
      @Override
      public N adjacentNode(E edge) {
        // Since the reference node is defined to be 'source' for directed graphs,
        // we can assume this edge lives in the set of outgoing edges.
        // (We're relying on callers to call this method only with an edge that's in the graph.)
        return requireNonNull(outEdgeMap.get(edge));
      }
    
      @Override
      public N removeInEdge(E edge, boolean isSelfLoop) {
        if (isSelfLoop) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 26 17:43:39 GMT 2021
    - 4.5K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/graph/AbstractStandardUndirectedNetworkTest.java

      }
    
      @Override
      @Test
      public void edges_checkReturnedSetMutability() {
        Set<String> edges = network.edges();
        UnsupportedOperationException e =
            assertThrows(UnsupportedOperationException.class, () -> edges.add(E12));
        addEdge(N1, N2, E12);
        assertThat(network.edges()).containsExactlyElementsIn(edges);
      }
    
      @Override
      @Test
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 18.9K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/graph/Network.java

       * treated as if collapsed into a single edge. For example, the {@link #degree(Object)} of a node
       * in the {@link Graph} view may be less than the degree of the same node in this {@link Network}.
       */
      Graph<N> asGraph();
    
      //
      // Network properties
      //
    
      /**
       * Returns true if the edges in this network are directed. Directed edges connect a {@link
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Jan 22 17:29:38 GMT 2024
    - 21.1K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/graph/Graph.java

      @Override
      Set<N> nodes();
    
      /** Returns all edges in this graph. */
      @Override
      Set<EndpointPair<N>> edges();
    
      //
      // Graph properties
      //
    
      /**
       * Returns true if the edges in this graph are directed. Directed edges connect a {@link
       * EndpointPair#source() source node} to a {@link EndpointPair#target() target node}, while
       * undirected edges connect a pair of nodes to each other.
       */
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Jan 22 17:29:38 GMT 2024
    - 13.6K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/graph/BaseGraph.java

      Set<N> nodes();
    
      /** Returns all edges in this graph. */
      Set<EndpointPair<N>> edges();
    
      //
      // Graph properties
      //
    
      /**
       * Returns true if the edges in this graph are directed. Directed edges connect a {@link
       * EndpointPair#source() source node} to a {@link EndpointPair#target() target node}, while
       * undirected edges connect a pair of nodes to each other.
       */
      boolean isDirected();
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Jan 22 17:29:38 GMT 2024
    - 8.8K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/graph/AbstractNetworkTest.java

      }
    
      @Test
      public void edges_oneEdge() {
        addEdge(N1, N2, E12);
        assertThat(network.edges()).containsExactly(E12);
      }
    
      @Test
      public void edges_noEdges() {
        assertThat(network.edges()).isEmpty();
        // Network with no edges, given disconnected nodes
        addNode(N1);
        addNode(N2);
        assertThat(network.edges()).isEmpty();
      }
    
      @Test
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Jan 22 17:29:38 GMT 2024
    - 33K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/graph/AbstractNetworkTest.java

      }
    
      @Test
      public void edges_oneEdge() {
        addEdge(N1, N2, E12);
        assertThat(network.edges()).containsExactly(E12);
      }
    
      @Test
      public void edges_noEdges() {
        assertThat(network.edges()).isEmpty();
        // Network with no edges, given disconnected nodes
        addNode(N1);
        addNode(N2);
        assertThat(network.edges()).isEmpty();
      }
    
      @Test
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Jan 22 17:29:38 GMT 2024
    - 32.7K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/graph/GraphBuilder.java

        GraphBuilder<N1> castBuilder = cast();
        return new ImmutableGraph.Builder<>(castBuilder);
      }
    
      /**
       * Specifies whether the graph will allow self-loops (edges that connect a node to itself).
       * Attempting to add a self-loop to a graph that does not allow them will throw an {@link
       * UnsupportedOperationException}.
       *
       * <p>The default value is {@code false}.
       */
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Jun 03 01:21:31 GMT 2022
    - 7.3K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/graph/GraphMutationTest.java

          assertThat(graph.nodes()).hasSize(NUM_NODES);
          assertThat(graph.edges()).hasSize(NUM_EDGES);
          AbstractGraphTest.validateGraph(graph);
    
          Collections.shuffle(edgeList, gen);
          int numEdgesToRemove = gen.nextInt(NUM_EDGES);
          for (int i = 0; i < numEdgesToRemove; ++i) {
            EndpointPair<Integer> edge = edgeList.get(i);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Aug 18 16:17:46 GMT 2017
    - 4.2K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/graph/AbstractStandardUndirectedNetworkTest.java

      }
    
      @Override
      @Test
      public void edges_checkReturnedSetMutability() {
        Set<String> edges = network.edges();
        UnsupportedOperationException e =
            assertThrows(UnsupportedOperationException.class, () -> edges.add(E12));
        addEdge(N1, N2, E12);
        assertThat(network.edges()).containsExactlyElementsIn(edges);
      }
    
      @Override
      @Test
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 19.3K bytes
    - Viewed (0)
Back to top