Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 9 of 9 for AbstractGraphBuilder (0.09 seconds)

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

    package com.google.common.graph;
    
    import org.jspecify.annotations.Nullable;
    
    /**
     * A base class for builders that construct graphs with user-defined properties.
     *
     * @author James Sexton
     */
    abstract class AbstractGraphBuilder<N> {
      final boolean directed;
      boolean allowsSelfLoops = false;
      ElementOrder<N> nodeOrder = ElementOrder.insertion();
      ElementOrder<N> incidentEdgeOrder = ElementOrder.unordered();
    
    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)
  2. android/guava-tests/test/com/google/common/graph/PackageSanityTests.java

     *
     * @author Kurt Alfred Kluever
     */
    
    @NullUnmarked
    public class PackageSanityTests extends AbstractPackageSanityTests {
    
      private static final AbstractGraphBuilder<?> graphBuilderA =
          GraphBuilder.directed().expectedNodeCount(10);
      private static final AbstractGraphBuilder<?> graphBuilderB =
          ValueGraphBuilder.directed().allowsSelfLoops(true).expectedNodeCount(16);
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sat Dec 28 01:26:26 GMT 2024
    - 3.2K bytes
    - Click Count (0)
  3. guava-tests/test/com/google/common/graph/PackageSanityTests.java

     *
     * @author Kurt Alfred Kluever
     */
    
    @NullUnmarked
    public class PackageSanityTests extends AbstractPackageSanityTests {
    
      private static final AbstractGraphBuilder<?> graphBuilderA =
          GraphBuilder.directed().expectedNodeCount(10);
      private static final AbstractGraphBuilder<?> graphBuilderB =
          ValueGraphBuilder.directed().allowsSelfLoops(true).expectedNodeCount(16);
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sat Dec 28 01:26:26 GMT 2024
    - 3.2K bytes
    - Click Count (0)
  4. android/guava/src/com/google/common/graph/StandardValueGraph.java

    import java.util.Map;
    import java.util.Set;
    import java.util.TreeMap;
    import org.jspecify.annotations.Nullable;
    
    /**
     * Standard implementation of {@link ValueGraph} that supports the options supplied by {@link
     * AbstractGraphBuilder}.
     *
     * <p>This class maintains a map of nodes to {@link GraphConnections}.
     *
     * <p>Collection-returning accessors return unmodifiable views: the view returned will reflect
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Apr 02 14:49:41 GMT 2026
    - 6K bytes
    - Click Count (0)
  5. android/guava/src/com/google/common/graph/StandardMutableGraph.java

      private final MutableValueGraph<N, Presence> backingValueGraph;
    
      /** Constructs a {@link MutableGraph} with the properties specified in {@code builder}. */
      StandardMutableGraph(AbstractGraphBuilder<? super N> builder) {
        this.backingValueGraph = new StandardMutableValueGraph<>(builder);
      }
    
      @Override
      BaseGraph<N> delegate() {
        return backingValueGraph;
      }
    
      @Override
    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)
  6. android/guava/src/com/google/common/graph/StandardMutableValueGraph.java

        implements MutableValueGraph<N, V> {
    
      private final ElementOrder<N> incidentEdgeOrder;
    
      /** Constructs a mutable graph with the properties specified in {@code builder}. */
      StandardMutableValueGraph(AbstractGraphBuilder<? super N> builder) {
        super(builder);
        incidentEdgeOrder = builder.incidentEdgeOrder.cast();
      }
    
      @Override
      public ElementOrder<N> incidentEdgeOrder() {
        return incidentEdgeOrder;
      }
    
    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)
  7. android/guava/src/com/google/common/graph/ValueGraphBuilder.java

     *     unless the builder is constructed based on an existing {@code Graph} using {@link
     *     #from(ValueGraph)}.
     * @since 20.0
     */
    public final class ValueGraphBuilder<N, V> extends AbstractGraphBuilder<N> {
    
      /** Creates a new instance with the specified edge directionality. */
      private ValueGraphBuilder(boolean directed) {
        super(directed);
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Apr 02 14:49:41 GMT 2026
    - 7.8K bytes
    - Click Count (0)
  8. android/guava/src/com/google/common/graph/GraphBuilder.java

     *     constructed based on an existing {@code Graph} using {@link #from(Graph)}.
     * @since 20.0
     */
    @DoNotMock
    public final class GraphBuilder<N> extends AbstractGraphBuilder<N> {
    
      /** Creates a new instance with the specified edge directionality. */
      private GraphBuilder(boolean directed) {
        super(directed);
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Apr 02 14:49:41 GMT 2026
    - 7.2K bytes
    - Click Count (0)
  9. android/guava/src/com/google/common/graph/NetworkBuilder.java

     *     constructed based on an existing {@code Network} using {@link #from(Network)}.
     * @since 20.0
     */
    public final class NetworkBuilder<N, E> extends AbstractGraphBuilder<N> {
      boolean allowsParallelEdges = false;
      ElementOrder<? super E> edgeOrder = ElementOrder.insertion();
      @Nullable Integer expectedEdgeCount = null;
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Apr 02 14:49:41 GMT 2026
    - 7.3K bytes
    - Click Count (0)
Back to Top