Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 14 for asGraph (0.03 sec)

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

        Graph<Integer> asGraph = graph.asGraph();
        AbstractGraphTest.validateGraph(asGraph);
        assertThat(graph.nodes()).isEqualTo(asGraph.nodes());
        assertThat(graph.edges()).isEqualTo(asGraph.edges());
        assertThat(graph.nodeOrder()).isEqualTo(asGraph.nodeOrder());
        assertThat(graph.incidentEdgeOrder()).isEqualTo(asGraph.incidentEdgeOrder());
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Oct 07 15:57:03 UTC 2025
    - 18.1K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/graph/ValueGraphTest.java

        Graph<Integer> asGraph = graph.asGraph();
        AbstractGraphTest.validateGraph(asGraph);
        assertThat(graph.nodes()).isEqualTo(asGraph.nodes());
        assertThat(graph.edges()).isEqualTo(asGraph.edges());
        assertThat(graph.nodeOrder()).isEqualTo(asGraph.nodeOrder());
        assertThat(graph.incidentEdgeOrder()).isEqualTo(asGraph.incidentEdgeOrder());
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Oct 07 15:57:03 UTC 2025
    - 20.7K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/graph/ImmutableValueGraph.java

        return checkNotNull(graph);
      }
    
      @Override
      public ElementOrder<N> incidentEdgeOrder() {
        return ElementOrder.stable();
      }
    
      @Override
      public ImmutableGraph<N> asGraph() {
        return new ImmutableGraph<>(this); // safe because the view is effectively immutable
      }
    
      private static <N, V> ImmutableMap<N, GraphConnections<N, V>> getNodeConnections(
          ValueGraph<N, V> graph) {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Mar 17 20:26:29 UTC 2025
    - 7.9K bytes
    - Viewed (0)
  4. 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(
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Oct 07 15:57:03 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  5. guava/src/com/google/common/graph/AbstractValueGraph.java

    public abstract class AbstractValueGraph<N, V> extends AbstractBaseGraph<N>
        implements ValueGraph<N, V> {
      /** Constructor for use by subclasses. */
      public AbstractValueGraph() {}
    
      @Override
      public Graph<N> asGraph() {
        return new AbstractGraph<N>() {
          @Override
          public Set<N> nodes() {
            return AbstractValueGraph.this.nodes();
          }
    
          @Override
          public Set<EndpointPair<N>> edges() {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Wed Feb 19 21:24:11 UTC 2025
    - 4.3K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/graph/AbstractStandardUndirectedNetworkTest.java

      }
    
      @Test
      public void edges_containsOrderMismatch() {
        addEdge(N1, N2, E12);
        assertThat(network.asGraph().edges()).doesNotContain(ENDPOINTS_N2N1);
        assertThat(network.asGraph().edges()).doesNotContain(ENDPOINTS_N1N2);
      }
    
      @Test
      public void edgesConnecting_orderMismatch() {
        addEdge(N1, N2, E12);
        IllegalArgumentException e =
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Sep 30 17:09:51 UTC 2025
    - 19K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/graph/AbstractGraphTest.java

        assertThat(asNetwork.edgeOrder()).isEqualTo(ElementOrder.unordered());
        assertThat(asNetwork.allowsParallelEdges()).isFalse();
        assertThat(asNetwork.asGraph()).isEqualTo(graph);
    
        Set<EndpointPair<N>> allEndpointPairs = new HashSet<>();
    
        for (N node : sanityCheckSet(graph.nodes())) {
          assertThat(nodeString).contains(node.toString());
    
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Oct 07 15:57:03 UTC 2025
    - 17.3K bytes
    - Viewed (0)
  8. guava/src/com/google/common/graph/ImmutableValueGraph.java

        return checkNotNull(graph);
      }
    
      @Override
      public ElementOrder<N> incidentEdgeOrder() {
        return ElementOrder.stable();
      }
    
      @Override
      public ImmutableGraph<N> asGraph() {
        return new ImmutableGraph<>(this); // safe because the view is effectively immutable
      }
    
      private static <N, V> ImmutableMap<N, GraphConnections<N, V>> getNodeConnections(
          ValueGraph<N, V> graph) {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Mar 17 20:26:29 UTC 2025
    - 7.9K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/graph/AbstractNetwork.java

     * @since 20.0
     */
    @Beta
    public abstract class AbstractNetwork<N, E> implements Network<N, E> {
      /** Constructor for use by subclasses. */
      public AbstractNetwork() {}
    
      @Override
      public Graph<N> asGraph() {
        return new AbstractGraph<N>() {
          @Override
          public Set<N> nodes() {
            return AbstractNetwork.this.nodes();
          }
    
          @Override
          public Set<EndpointPair<N>> edges() {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Wed Feb 19 21:24:11 UTC 2025
    - 10K bytes
    - Viewed (0)
  10. guava/src/com/google/common/graph/AbstractNetwork.java

     * @since 20.0
     */
    @Beta
    public abstract class AbstractNetwork<N, E> implements Network<N, E> {
      /** Constructor for use by subclasses. */
      public AbstractNetwork() {}
    
      @Override
      public Graph<N> asGraph() {
        return new AbstractGraph<N>() {
          @Override
          public Set<N> nodes() {
            return AbstractNetwork.this.nodes();
          }
    
          @Override
          public Set<EndpointPair<N>> edges() {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Wed Feb 19 21:24:11 UTC 2025
    - 10.3K bytes
    - Viewed (0)
Back to top