Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 105 for edges (0.24 sec)

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

      Optional<Integer> expectedNodeCount = Optional.absent();
    
      /**
       * Creates a new instance with the specified edge directionality.
       *
       * @param directed if true, creates an instance for graphs whose edges are each directed; if
       *     false, creates an instance for graphs whose edges are each undirected.
       */
      AbstractGraphBuilder(boolean directed) {
        this.directed = directed;
      }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 26 17:43:39 GMT 2021
    - 1.4K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/graph/DefaultNetworkImplementationsTest.java

          return network.outEdges(node);
        }
    
        @Override
        public EndpointPair<N> incidentNodes(E edge) {
          return network.incidentNodes(edge);
        }
    
        @Override
        public Set<E> adjacentEdges(E edge) {
          return network.adjacentEdges(edge);
        }
    
        // _don't_ override edge*Connecting*; we want the behavior from AbstractNetwork
      }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 7.4K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/graph/ForwardingValueGraph.java

      @Override
      public Set<N> nodes() {
        return delegate().nodes();
      }
    
      /**
       * Defer to {@link AbstractValueGraph#edges()} (based on {@link #successors(Object)}) for full
       * edges() implementation.
       */
      @Override
      protected long edgeCount() {
        return delegate().edges().size();
      }
    
      @Override
      public boolean isDirected() {
        return delegate().isDirected();
      }
    
      @Override
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 26 17:43:39 GMT 2021
    - 2.9K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/graph/StandardImmutableGraphAdditionalTest.java

        assertThat(graph.nodes()).containsExactly("A");
        assertThat(graph.edges()).isEmpty();
      }
    
      @Test
      public void immutableGraphBuilder_putEdgeFromNodes() {
        ImmutableGraph<String> graph =
            GraphBuilder.directed().<String>immutable().putEdge("A", "B").build();
    
        assertThat(graph.nodes()).containsExactly("A", "B");
        assertThat(graph.edges()).containsExactly(EndpointPair.ordered("A", "B"));
      }
    
      @Test
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Jan 09 20:24:43 GMT 2020
    - 4.5K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/graph/ImmutableNetworkTest.java

        assertThat(network.edges()).isEmpty();
      }
    
      @Test
      public void immutableNetworkBuilder_putEdgeFromNodes() {
        ImmutableNetwork<String, Integer> network =
            NetworkBuilder.directed().<String, Integer>immutable().addEdge("A", "B", 10).build();
    
        assertThat(network.nodes()).containsExactly("A", "B");
        assertThat(network.edges()).containsExactly(10);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Sun May 05 18:02:35 GMT 2019
    - 5.5K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/graph/ImmutableValueGraphTest.java

        ImmutableValueGraph<String, Integer> graph =
            ValueGraphBuilder.directed().<String, Integer>immutable().addNode("A").build();
    
        assertThat(graph.nodes()).containsExactly("A");
        assertThat(graph.edges()).isEmpty();
      }
    
      @Test
      public void immutableValueGraphBuilder_putEdgeFromNodes() {
        ImmutableValueGraph<String, Integer> graph =
            ValueGraphBuilder.directed()
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Jan 09 20:24:43 GMT 2020
    - 6.4K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/graph/MutableValueGraph.java

       *
       * @return the value previously associated with the edge connecting {@code nodeU} to {@code
       *     nodeV}, or null if there was no such edge.
       * @throws IllegalArgumentException if the introduction of the edge would violate {@link
       *     #allowsSelfLoops()}
       */
      @CanIgnoreReturnValue
      @CheckForNull
      V putEdgeValue(N nodeU, N nodeV, V value);
    
      /**
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 26 17:43:39 GMT 2021
    - 4.4K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/graph/EndpointPairIterator.java

    import java.util.Iterator;
    import java.util.Set;
    import javax.annotation.CheckForNull;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * A class to facilitate the set returned by {@link Graph#edges()}.
     *
     * @author James Sexton
     */
    @ElementTypesAreNonnullByDefault
    abstract class EndpointPairIterator<N> extends AbstractIterator<EndpointPair<N>> {
      private final BaseGraph<N> graph;
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Jul 09 17:31:04 GMT 2021
    - 5K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/graph/ImmutableNetwork.java

        // whatever ordering the network's edges do, so ImmutableSortedMap is unnecessary even if the
        // input edges are sorted.
        ImmutableMap.Builder<E, N> edgeToReferenceNode = ImmutableMap.builder();
        for (E edge : network.edges()) {
          edgeToReferenceNode.put(edge, network.incidentNodes(edge).nodeU());
        }
        return edgeToReferenceNode.buildOrThrow();
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 01 16:30:37 GMT 2022
    - 9.6K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/graph/GraphConnections.java

      /**
       * Returns an iterator over the incident edges.
       *
       * @param thisNode The node that this all of the connections in this class are connected to.
       */
      Iterator<EndpointPair<N>> incidentEdgeIterator(N thisNode);
    
      /**
       * Returns the value associated with the edge connecting the origin node to {@code node}, or null
       * if there is no such edge.
       */
      @CheckForNull
      V value(N node);
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 26 17:43:39 GMT 2021
    - 2.4K bytes
    - Viewed (0)
Back to top