Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 41 - 50 of 105 for Undirected (0.16 seconds)

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

        assertThat(toString).contains("valueD");
      }
    
      @Test
      public void undirectedGraph() {
        graph = ValueGraphBuilder.undirected().allowsSelfLoops(true).build();
        graph.putEdgeValue(1, 2, "valueA");
        graph.putEdgeValue(2, 1, "valueB"); // overwrites valueA in undirected case
        graph.putEdgeValue(2, 3, "valueC");
        graph.putEdgeValue(4, 4, "valueD");
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 17 19:26:39 GMT 2026
    - 20.5K bytes
    - Click Count (0)
  2. guava-tests/test/com/google/common/graph/AbstractGraphTest.java

     *
     * <ul>
     *   <li>Test cases related to whether the graph is directed or undirected.
     *   <li>Test cases related to the specific implementation of the {@link Graph} interface.
     * </ul>
     *
     * TODO(user): Make this class generic (using <N, E>) for all node and edge types.
     * TODO(user): Differentiate between directed and undirected edge strings.
     */
    @NullUnmarked
    public abstract class AbstractGraphTest {
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Oct 07 15:57:03 GMT 2025
    - 17.3K bytes
    - Click Count (0)
  3. android/guava/src/com/google/common/graph/StandardNetwork.java

     * <p>This class maintains a map of nodes to {@link NetworkConnections}. This class also maintains a
     * map of edges to reference nodes. The reference node is defined to be the edge's source node on
     * directed graphs, and an arbitrary endpoint of the edge on undirected graphs.
     *
     * <p>Collection-returning accessors return unmodifiable views: the view returned will reflect
     * changes to the graph (if the graph is mutable) but may not be modified by the user.
     *
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Apr 02 14:49:41 GMT 2026
    - 6.9K bytes
    - Click Count (0)
  4. android/guava/src/com/google/common/graph/Traverser.java

       * }
       *
       * @param tree {@link SuccessorsFunction} representing a directed acyclic graph that has at most
       *     one path between any two nodes
       */
      public static <N> Traverser<N> forTree(SuccessorsFunction<N> tree) {
        if (tree instanceof BaseGraph) {
          checkArgument(((BaseGraph<?>) tree).isDirected(), "Undirected graphs can never be trees.");
        }
        if (tree instanceof Network) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 11 01:10:31 GMT 2026
    - 19.3K bytes
    - Click Count (0)
  5. android/guava-tests/test/com/google/common/graph/AbstractStandardUndirectedGraphTest.java

    import com.google.common.testing.EqualsTester;
    import java.util.Set;
    import org.jspecify.annotations.NullUnmarked;
    import org.junit.After;
    import org.junit.Test;
    
    /**
     * Abstract base class for testing undirected {@link Graph} implementations defined in this package.
     */
    @NullUnmarked
    public abstract class AbstractStandardUndirectedGraphTest extends AbstractGraphTest {
    
      @After
      public void validateUndirectedEdges() {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Oct 06 20:14:55 GMT 2025
    - 13.2K bytes
    - Click Count (0)
  6. android/guava-tests/test/com/google/common/graph/AbstractStandardUndirectedNetworkTest.java

    import com.google.common.testing.EqualsTester;
    import java.util.Set;
    import org.jspecify.annotations.NullUnmarked;
    import org.junit.After;
    import org.junit.Test;
    
    /**
     * Abstract base class for testing undirected {@link Network} implementations defined in this
     * package.
     */
    @NullUnmarked
    public abstract class AbstractStandardUndirectedNetworkTest extends AbstractNetworkTest {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Sep 30 17:09:51 GMT 2025
    - 18.6K bytes
    - Click Count (0)
  7. android/guava-tests/test/com/google/common/graph/TraverserTest.java

      /**
       * The undirected graph in the {@link Traverser#breadthFirst(Object)} javadoc:
       *
       * {@snippet :
       * b ---- a ---- d
       * |      |
       * |      |
       * e ---- c ---- f
       * }
       */
      private static final SuccessorsFunction<Character> JAVADOC_GRAPH =
          createUndirectedGraph("ba", "ad", "be", "ac", "ec", "cf");
    
      /**
       * A diamond shaped directed graph (arrows going down):
       *
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Sep 30 17:09:51 GMT 2025
    - 47.4K bytes
    - Click Count (0)
  8. guava-tests/test/com/google/common/graph/AbstractStandardUndirectedNetworkTest.java

    import java.util.Optional;
    import java.util.Set;
    import org.jspecify.annotations.NullUnmarked;
    import org.junit.After;
    import org.junit.Test;
    
    /**
     * Abstract base class for testing undirected {@link Network} implementations defined in this
     * package.
     */
    @NullUnmarked
    public abstract class AbstractStandardUndirectedNetworkTest extends AbstractNetworkTest {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Sep 30 17:09:51 GMT 2025
    - 19K bytes
    - Click Count (0)
  9. android/guava-tests/test/com/google/common/graph/StandardImmutableGraphAdditionalTest.java

        assertThat(emptyGraph.isDirected()).isTrue();
        assertThat(emptyGraph.allowsSelfLoops()).isTrue();
        assertThat(emptyGraph.nodeOrder()).isEqualTo(ElementOrder.<String>natural());
      }
    
      @Test
      public void copyOf_incidentEdgeOrder() {
        ImmutableGraph<Object> graph = ImmutableGraph.copyOf(GraphBuilder.undirected().build());
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Dec 19 18:03:30 GMT 2024
    - 4.5K bytes
    - Click Count (0)
  10. guava-tests/test/com/google/common/graph/ElementOrderTest.java

      // Node order tests
    
      @Test
      public void nodeOrder_none() {
        MutableGraph<Integer> graph = GraphBuilder.directed().nodeOrder(unordered()).build();
    
        assertThat(graph.nodeOrder()).isEqualTo(unordered());
      }
    
      @Test
      public void nodeOrder_insertion() {
        MutableGraph<Integer> graph = GraphBuilder.directed().nodeOrder(insertion()).build();
    
        addNodes(graph);
    
        assertThat(graph.nodeOrder()).isEqualTo(insertion());
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 17 19:26:39 GMT 2026
    - 7.9K bytes
    - Click Count (0)
Back to Top