Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 129 for undirected (0.13 sec)

  1. guava/src/com/google/common/graph/EndpointPairIterator.java

      Iterator<N> successorIterator = ImmutableSet.<N>of().iterator();
    
      static <N> EndpointPairIterator<N> of(BaseGraph<N> graph) {
        return graph.isDirected() ? new Directed<N>(graph) : new Undirected<N>(graph);
      }
    
      private EndpointPairIterator(BaseGraph<N> graph) {
        this.graph = graph;
        this.nodeIterator = graph.nodes().iterator();
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Jul 09 17:31:04 UTC 2021
    - 5K bytes
    - Viewed (0)
  2. guava/src/com/google/common/graph/Network.java

      //
      // Network properties
      //
    
      /**
       * Returns true if the edges in this network are directed. Directed edges connect a {@link
       * EndpointPair#source() source node} to a {@link EndpointPair#target() target node}, while
       * undirected edges connect a pair of nodes to each other.
       */
      boolean isDirected();
    
      /**
       * Returns true if this network allows parallel edges. Attempting to add a parallel edge to a
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 10 15:41:27 UTC 2024
    - 22.4K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/graph/ValueGraphBuilder.java

      private ValueGraphBuilder(boolean directed) {
        super(directed);
      }
    
      /** Returns a {@link ValueGraphBuilder} for building directed graphs. */
      public static ValueGraphBuilder<Object, Object> directed() {
        return new ValueGraphBuilder<>(true);
      }
    
      /** Returns a {@link ValueGraphBuilder} for building undirected graphs. */
      public static ValueGraphBuilder<Object, Object> undirected() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Jun 03 01:21:31 UTC 2022
    - 8K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/graph/GraphEquivalenceTest.java

      private final EdgeType edgeType;
      private final MutableGraph<Integer> graph;
    
      // add parameters: directed/undirected
      @Parameters
      public static Collection<Object[]> parameters() {
        return Arrays.asList(new Object[][] {{EdgeType.UNDIRECTED}, {EdgeType.DIRECTED}});
      }
    
      public GraphEquivalenceTest(EdgeType edgeType) {
        this.edgeType = edgeType;
        this.graph = createGraph(edgeType);
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 16 17:21:56 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/graph/GraphEquivalenceTest.java

      private final EdgeType edgeType;
      private final MutableGraph<Integer> graph;
    
      // add parameters: directed/undirected
      @Parameters
      public static Collection<Object[]> parameters() {
        return Arrays.asList(new Object[][] {{EdgeType.UNDIRECTED}, {EdgeType.DIRECTED}});
      }
    
      public GraphEquivalenceTest(EdgeType edgeType) {
        this.edgeType = edgeType;
        this.graph = createGraph(edgeType);
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 16 17:21:56 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  6. 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");
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Feb 06 18:35:19 UTC 2024
    - 20K bytes
    - Viewed (0)
  7. android/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");
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 17.4K bytes
    - Viewed (0)
  8. guava/src/com/google/common/graph/MutableNetwork.java

      /**
       * Adds {@code edge} connecting {@code endpoints}. In an undirected network, {@code edge} will
       * also connect {@code nodeV} to {@code nodeU}.
       *
       * <p>If this graph is directed, {@code edge} will be directed in this graph; if it is undirected,
       * {@code edge} will be undirected in this graph.
       *
       * <p>If this graph is directed, {@code endpoints} must be ordered.
       *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Apr 26 17:43:39 UTC 2021
    - 4.4K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/graph/NetworkEquivalenceTest.java

      private final EdgeType edgeType;
      private final MutableNetwork<Integer, String> network;
    
      // add parameters: directed/undirected
      @Parameters
      public static Collection<Object[]> parameters() {
        return Arrays.asList(new Object[][] {{EdgeType.UNDIRECTED}, {EdgeType.DIRECTED}});
      }
    
      public NetworkEquivalenceTest(EdgeType edgeType) {
        this.edgeType = edgeType;
        this.network = createNetwork(edgeType);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 16 17:21:56 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/graph/NetworkEquivalenceTest.java

      private final EdgeType edgeType;
      private final MutableNetwork<Integer, String> network;
    
      // add parameters: directed/undirected
      @Parameters
      public static Collection<Object[]> parameters() {
        return Arrays.asList(new Object[][] {{EdgeType.UNDIRECTED}, {EdgeType.DIRECTED}});
      }
    
      public NetworkEquivalenceTest(EdgeType edgeType) {
        this.edgeType = edgeType;
        this.network = createNetwork(edgeType);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 16 17:21:56 UTC 2024
    - 5.8K bytes
    - Viewed (0)
Back to top