Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 21 - 30 of 105 for Undirected (0.05 seconds)

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

          requireNonNull(nodeConnections.getWithoutCaching(successor)).removePredecessor(node);
          requireNonNull(connections.removeSuccessor(successor));
          --edgeCount;
        }
        if (isDirected()) { // In undirected graphs, the successor and predecessor sets are equal.
          // Since views are returned, we need to copy the predecessors that will be removed.
          // Thus we avoid modifying the underlying view while iterating over it.
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sun Dec 22 03:38:46 GMT 2024
    - 6.3K bytes
    - Click Count (0)
  2. android/guava/src/com/google/common/graph/Network.java

     *
     * <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
     *   <li>graphs that do/don't allow self-loops
     *   <li>graphs whose nodes/edges are insertion-ordered, sorted, or unordered
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 11 01:10:31 GMT 2026
    - 17.6K bytes
    - Click Count (0)
  3. android/guava/src/com/google/common/graph/EndpointPair.java

    import org.jspecify.annotations.Nullable;
    
    /**
     * An immutable pair representing the two endpoints of an edge in a graph. The {@link EndpointPair}
     * of a directed edge is an ordered pair of nodes ({@link #source()} and {@link #target()}). The
     * {@link EndpointPair} of an undirected edge is an unordered pair of nodes ({@link #nodeU()} and
     * {@link #nodeV()}).
     *
     * <p>The edge is a self-loop if, and only if, the two endpoints are equal.
     *
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 11 01:10:31 GMT 2026
    - 8K bytes
    - Click Count (0)
  4. android/guava/src/com/google/common/graph/AbstractGraphBuilder.java

       *     false, creates an instance for graphs whose edges are each undirected.
       */
      AbstractGraphBuilder(boolean directed) {
        this.directed = directed;
      }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Apr 02 14:49:41 GMT 2026
    - 1.4K bytes
    - Click Count (0)
  5. guava-tests/test/com/google/common/graph/StandardMutableUndirectedNetworkTest.java

    import java.util.Collection;
    import org.jspecify.annotations.NullUnmarked;
    import org.junit.runner.RunWith;
    import org.junit.runners.Parameterized;
    import org.junit.runners.Parameterized.Parameters;
    
    /** Tests for an undirected {@link StandardMutableNetwork}. */
    @AndroidIncompatible
    @RunWith(Parameterized.class)
    @NullUnmarked
    public final class StandardMutableUndirectedNetworkTest
        extends AbstractStandardUndirectedNetworkTest {
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Dec 19 18:03:30 GMT 2024
    - 2.7K bytes
    - Click Count (0)
  6. android/guava/src/com/google/common/graph/StandardMutableGraph.java

     * 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}.
     *
     * <p>Time complexities for mutation methods are all O(1) except for {@code removeNode(N node)},
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sat Dec 21 03:10:51 GMT 2024
    - 2.3K bytes
    - Click Count (0)
  7. android/guava/src/com/google/common/graph/UndirectedGraphConnections.java

    import java.util.Iterator;
    import java.util.LinkedHashMap;
    import java.util.Map;
    import java.util.Set;
    import org.jspecify.annotations.Nullable;
    
    /**
     * An implementation of {@link GraphConnections} for undirected graphs.
     *
     * @author James Sexton
     * @param <N> Node parameter type
     * @param <V> Value parameter type
     */
    final class UndirectedGraphConnections<N, V> implements GraphConnections<N, V> {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sun Dec 22 03:38:46 GMT 2024
    - 3.3K bytes
    - Click Count (0)
  8. android/guava-tests/test/com/google/common/graph/DefaultNetworkImplementationsTest.java

            new Object[][] {
              {UNDIRECTED}, {DIRECTED},
            });
      }
    
      private final EdgeType edgeType;
    
      public DefaultNetworkImplementationsTest(EdgeType edgeType) {
        this.edgeType = edgeType;
      }
    
      @Before
      public void setUp() throws Exception {
        NetworkBuilder<Object, Object> builder =
            (edgeType == EdgeType.DIRECTED) ? NetworkBuilder.directed() : NetworkBuilder.undirected();
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Dec 19 18:03:30 GMT 2024
    - 7.4K bytes
    - Click Count (0)
  9. android/guava/src/com/google/common/graph/NetworkConnections.java

      /**
       * Returns the node that is adjacent to the origin node along {@code edge}.
       *
       * <p>In the directed case, {@code edge} is assumed to be an outgoing edge.
       */
      N adjacentNode(E edge);
    
      /**
       * Remove {@code edge} from the set of incoming edges. Returns the former predecessor node.
       *
       * <p>In the undirected case, returns {@code null} if {@code isSelfLoop} is true.
       */
      @CanIgnoreReturnValue
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sun Dec 22 03:38:46 GMT 2024
    - 2.3K bytes
    - Click Count (0)
  10. android/guava/src/com/google/common/graph/UndirectedMultiNetworkConnections.java

    import java.util.Collections;
    import java.util.HashMap;
    import java.util.Map;
    import java.util.Set;
    import org.jspecify.annotations.Nullable;
    
    /**
     * An implementation of {@link NetworkConnections} for undirected networks with parallel edges.
     *
     * @author James Sexton
     * @param <N> Node parameter type
     * @param <E> Edge parameter type
     */
    final class UndirectedMultiNetworkConnections<N, E>
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sun Dec 22 03:38:46 GMT 2024
    - 3.7K bytes
    - Click Count (0)
Back to Top