Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 48 for Graphs (0.03 sec)

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

       * properties remain intact, and further updates to {@code graph} will be reflected in the view.
       */
      public static <N> Graph<N> transpose(Graph<N> graph) {
        if (!graph.isDirected()) {
          return graph; // the transpose of an undirected graph is an identical graph
        }
    
        if (graph instanceof TransposedGraph) {
          return ((TransposedGraph<N>) graph).graph;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Aug 01 00:26:14 UTC 2025
    - 22.7K bytes
    - Viewed (0)
  2. guava/src/com/google/common/graph/Graphs.java

       * properties remain intact, and further updates to {@code graph} will be reflected in the view.
       */
      public static <N> Graph<N> transpose(Graph<N> graph) {
        if (!graph.isDirected()) {
          return graph; // the transpose of an undirected graph is an identical graph
        }
    
        if (graph instanceof TransposedGraph) {
          return ((TransposedGraph<N>) graph).graph;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Aug 01 00:26:14 UTC 2025
    - 23.3K bytes
    - Viewed (0)
  3. guava/src/com/google/common/graph/Network.java

     * "Choosing the right graph type"</a> section of the Guava User Guide for more details.
     *
     * <h3>Capabilities</h3>
     *
     * <p>{@code Network} supports the following use cases (<a
     * href="https://github.com/google/guava/wiki/GraphsExplained#definitions">definitions of
     * terms</a>):
     *
     * <ul>
     *   <li>directed graphs
     *   <li>undirected graphs
     *   <li>graphs that do/don't allow parallel edges
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 22:03:02 UTC 2025
    - 22.5K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/graph/GraphsTest.java

     * limitations under the License.
     */
    
    package com.google.common.graph;
    
    import static com.google.common.graph.Graphs.copyOf;
    import static com.google.common.graph.Graphs.inducedSubgraph;
    import static com.google.common.graph.Graphs.reachableNodes;
    import static com.google.common.graph.Graphs.transitiveClosure;
    import static com.google.common.graph.Graphs.transpose;
    import static com.google.common.truth.Truth.assertThat;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 24.6K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/graph/DirectedGraphConnections.java

     * limitations under the License.
     */
    
    package com.google.common.graph;
    
    import static com.google.common.base.Preconditions.checkArgument;
    import static com.google.common.base.Preconditions.checkNotNull;
    import static com.google.common.base.Preconditions.checkState;
    import static com.google.common.graph.GraphConstants.INNER_CAPACITY;
    import static com.google.common.graph.GraphConstants.INNER_LOAD_FACTOR;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Jan 18 02:54:30 UTC 2025
    - 17.8K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/graph/AbstractNetworkTest.java

     * limitations under the License.
     */
    
    package com.google.common.graph;
    
    import static com.google.common.graph.TestUtil.assertEdgeNotInGraphErrorMessage;
    import static com.google.common.graph.TestUtil.assertEdgeRemovedFromGraphErrorMessage;
    import static com.google.common.graph.TestUtil.assertNodeNotInGraphErrorMessage;
    import static com.google.common.graph.TestUtil.assertNodeRemovedFromGraphErrorMessage;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 32.7K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/graph/TraverserTest.java

        graph.putEdge("a", "b");
    
        Traverser.forTree(graph); // Does not throw
      }
    
      @Test
      public void forTree_withUndirectedGraph_throws() throws Exception {
        MutableGraph<String> graph = GraphBuilder.undirected().build();
        graph.putEdge("a", "b");
    
        assertThrows(IllegalArgumentException.class, () -> Traverser.forTree(graph));
      }
    
      @Test
      @SuppressWarnings("CheckReturnValue")
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 47.5K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/graph/TraverserTest.java

        graph.putEdge("a", "b");
    
        Traverser.forTree(graph); // Does not throw
      }
    
      @Test
      public void forTree_withUndirectedGraph_throws() throws Exception {
        MutableGraph<String> graph = GraphBuilder.undirected().build();
        graph.putEdge("a", "b");
    
        assertThrows(IllegalArgumentException.class, () -> Traverser.forTree(graph));
      }
    
      @Test
      @SuppressWarnings("CheckReturnValue")
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 47.5K bytes
    - Viewed (0)
  9. guava/src/com/google/common/net/MediaType.java

       * <a href="https://en.wikipedia.org/wiki/RDF/XML">RDF/XML</a> documents, which are XML
       * serializations of <a
       * href="https://en.wikipedia.org/wiki/Resource_Description_Framework">Resource Description
       * Framework</a> graphs.
       *
       * @since 14.0
       */
      public static final MediaType RDF_XML_UTF_8 = createConstantUtf8(APPLICATION_TYPE, "rdf+xml");
    
      public static final MediaType RTF_UTF_8 = createConstantUtf8(APPLICATION_TYPE, "rtf");
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 48K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/net/MediaType.java

       * <a href="https://en.wikipedia.org/wiki/RDF/XML">RDF/XML</a> documents, which are XML
       * serializations of <a
       * href="https://en.wikipedia.org/wiki/Resource_Description_Framework">Resource Description
       * Framework</a> graphs.
       *
       * @since 14.0
       */
      public static final MediaType RDF_XML_UTF_8 = createConstantUtf8(APPLICATION_TYPE, "rdf+xml");
    
      public static final MediaType RTF_UTF_8 = createConstantUtf8(APPLICATION_TYPE, "rtf");
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 48K bytes
    - Viewed (0)
Back to top