Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 140 for graaph (0.16 sec)

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

       */
      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;
        }
    
        return new TransposedGraph<>(graph);
      }
    
      /**
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 21.2K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/graph/GraphPropertiesTest.java

     */
    
    package com.google.common.graph;
    
    import static com.google.common.graph.Graphs.hasCycle;
    import static com.google.common.truth.Truth.assertThat;
    
    import com.google.common.collect.ImmutableList;
    import org.junit.Before;
    import org.junit.Test;
    import org.junit.runner.RunWith;
    import org.junit.runners.JUnit4;
    
    /** Tests for {@link Graphs#hasCycle(Graph)} and {@link Graphs#hasCycle(Network)}. */
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Jun 19 21:11:54 GMT 2017
    - 5.7K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/graph/StandardNetwork.java

     */
    
    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.graph.GraphConstants.DEFAULT_EDGE_COUNT;
    import static com.google.common.graph.GraphConstants.DEFAULT_NODE_COUNT;
    import static com.google.common.graph.GraphConstants.EDGE_NOT_IN_GRAPH;
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Jan 22 17:29:38 GMT 2024
    - 6.9K bytes
    - Viewed (0)
  4. 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;
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 24.9K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/graph/AbstractGraphBuilder.java

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    
    package com.google.common.graph;
    
    import com.google.common.base.Optional;
    
    /**
     * A base class for builders that construct graphs with user-defined properties.
     *
     * @author James Sexton
     */
    @ElementTypesAreNonnullByDefault
    abstract class AbstractGraphBuilder<N> {
      final boolean 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)
  6. android/guava/src/com/google/common/graph/StandardMutableGraph.java

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    
    package com.google.common.graph;
    
    import com.google.common.graph.GraphConstants.Presence;
    
    /**
     * Standard implementation of {@link MutableGraph} that supports both directed and undirected
     * graphs. Instances of this class should be constructed with {@link GraphBuilder}.
     *
    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)
  7. android/guava-tests/test/com/google/common/graph/ValueGraphTest.java

      MutableValueGraph<Integer, String> graph;
    
      @After
      public void validateGraphState() {
        assertStronglyEquivalent(graph, Graphs.copyOf(graph));
        assertStronglyEquivalent(graph, ImmutableValueGraph.copyOf(graph));
    
        Graph<Integer> asGraph = graph.asGraph();
        AbstractGraphTest.validateGraph(asGraph);
        assertThat(graph.nodes()).isEqualTo(asGraph.nodes());
        assertThat(graph.edges()).isEqualTo(asGraph.edges());
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 17.4K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/graph/AbstractGraphTest.java

            assertThat(graph.predecessors(node)).hasSize(graph.inDegree(node));
            assertThat(graph.successors(node)).hasSize(graph.outDegree(node));
          } else {
            int selfLoopCount = graph.adjacentNodes(node).contains(node) ? 1 : 0;
            assertThat(graph.degree(node)).isEqualTo(graph.adjacentNodes(node).size() + selfLoopCount);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Jan 22 17:29:38 GMT 2024
    - 16.6K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/graph/GraphMutationTest.java

          MutableGraph<Integer> graph = graphBuilder.allowsSelfLoops(true).build();
    
          assertThat(graph.nodes()).isEmpty();
          assertThat(graph.edges()).isEmpty();
          AbstractGraphTest.validateGraph(graph);
    
          while (graph.nodes().size() < NUM_NODES) {
            graph.addNode(gen.nextInt(NODE_POOL_SIZE));
          }
          ArrayList<Integer> nodeList = new ArrayList<>(graph.nodes());
    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. android/guava/src/com/google/common/graph/GraphConstants.java

      // Error messages
      static final String NODE_NOT_IN_GRAPH = "Node %s is not an element of this graph.";
      static final String EDGE_NOT_IN_GRAPH = "Edge %s is not an element of this graph.";
      static final String NODE_REMOVED_FROM_GRAPH =
          "Node %s that was used to generate this set is no longer in the graph.";
      static final String NODE_PAIR_REMOVED_FROM_GRAPH =
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Jan 22 17:29:38 GMT 2024
    - 3.1K bytes
    - Viewed (0)
Back to top