Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 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. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. guava/src/com/google/common/graph/ValueGraph.java

      /**
       * Returns a live view of this graph as a {@link Graph}. The resulting {@link Graph} will have an
       * edge connecting node A to node B if this {@link ValueGraph} has an edge connecting A to B.
       */
      Graph<N> asGraph();
    
      //
      // ValueGraph properties
      //
    
      /**
       * Returns true if the edges in this graph are directed. Directed edges connect a {@link
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Mar 17 20:26:29 UTC 2025
    - 16K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/graph/GraphsTest.java

        assertThat(transpose).isEqualTo(expectedTranspose);
        assertThat(transpose(transpose)).isSameInstanceAs(directedGraph);
        AbstractGraphTest.validateGraph(transpose.asGraph());
    
        assertThat(transpose.edgeValueOrDefault(N1, N2, null)).isNull();
        for (Integer node : directedGraph.nodes()) {
          assertThat(directedGraph.inDegree(node)).isSameInstanceAs(transpose.outDegree(node));
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Sep 30 17:09:51 UTC 2025
    - 30.1K bytes
    - Viewed (0)
  10. 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)
Back to top