Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 22 for createGraph (0.19 sec)

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

      }
    
      public GraphEquivalenceTest(EdgeType edgeType) {
        this.edgeType = edgeType;
        this.graph = createGraph(edgeType);
      }
    
      private static MutableGraph<Integer> createGraph(EdgeType edgeType) {
        switch (edgeType) {
          case UNDIRECTED:
            return GraphBuilder.undirected().allowsSelfLoops(true).build();
          case DIRECTED:
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Jun 22 19:09:27 GMT 2017
    - 4.7K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/graph/GraphEquivalenceTest.java

      }
    
      public GraphEquivalenceTest(EdgeType edgeType) {
        this.edgeType = edgeType;
        this.graph = createGraph(edgeType);
      }
    
      private static MutableGraph<Integer> createGraph(EdgeType edgeType) {
        switch (edgeType) {
          case UNDIRECTED:
            return GraphBuilder.undirected().allowsSelfLoops(true).build();
          case DIRECTED:
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Jun 22 19:09:27 GMT 2017
    - 4.7K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/graph/StandardImmutableUndirectedGraphTest.java

      private ImmutableGraph.Builder<Integer> graphBuilder;
    
      public StandardImmutableUndirectedGraphTest(boolean allowsSelfLoops) {
        this.allowsSelfLoops = allowsSelfLoops;
      }
    
      @Override
      public Graph<Integer> createGraph() {
        graphBuilder = GraphBuilder.undirected().allowsSelfLoops(allowsSelfLoops).immutable();
        return graphBuilder.build();
      }
    
      @Override
      final void addNode(Integer n) {
        graphBuilder.addNode(n);
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Mar 10 17:54:18 GMT 2020
    - 1.8K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/graph/StandardMutableDirectedNetworkTest.java

        this.allowsSelfLoops = allowsSelfLoops;
        this.allowsParallelEdges = allowsParallelEdges;
        this.nodeOrder = nodeOrder;
        this.edgeOrder = edgeOrder;
      }
    
      @Override
      MutableNetwork<Integer, String> createGraph() {
        return NetworkBuilder.directed()
            .allowsSelfLoops(allowsSelfLoops)
            .allowsParallelEdges(allowsParallelEdges)
            .nodeOrder(nodeOrder)
            .edgeOrder(edgeOrder)
            .build();
      }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Apr 09 17:01:22 GMT 2020
    - 2.6K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/graph/StandardMutableUndirectedGraphTest.java

          boolean allowsSelfLoops, ElementOrder<Integer> incidentEdgeOrder) {
        this.allowsSelfLoops = allowsSelfLoops;
        this.incidentEdgeOrder = incidentEdgeOrder;
      }
    
      @Override
      public MutableGraph<Integer> createGraph() {
        return GraphBuilder.undirected()
            .allowsSelfLoops(allowsSelfLoops)
            .incidentEdgeOrder(incidentEdgeOrder)
            .build();
      }
    
      @Override
      final void addNode(Integer n) {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Mar 10 17:54:18 GMT 2020
    - 2K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/graph/StandardImmutableDirectedGraphTest.java

      private ImmutableGraph.Builder<Integer> graphBuilder;
    
      public StandardImmutableDirectedGraphTest(boolean allowsSelfLoops) {
        this.allowsSelfLoops = allowsSelfLoops;
      }
    
      @Override
      public Graph<Integer> createGraph() {
        graphBuilder = GraphBuilder.directed().allowsSelfLoops(allowsSelfLoops).immutable();
        return graphBuilder.build();
      }
    
      @Override
      final void addNode(Integer n) {
        graphBuilder.addNode(n);
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Mar 10 17:54:18 GMT 2020
    - 1.8K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/graph/StandardImmutableDirectedGraphTest.java

      private ImmutableGraph.Builder<Integer> graphBuilder;
    
      public StandardImmutableDirectedGraphTest(boolean allowsSelfLoops) {
        this.allowsSelfLoops = allowsSelfLoops;
      }
    
      @Override
      public Graph<Integer> createGraph() {
        graphBuilder = GraphBuilder.directed().allowsSelfLoops(allowsSelfLoops).immutable();
        return graphBuilder.build();
      }
    
      @Override
      final void addNode(Integer n) {
        graphBuilder.addNode(n);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Mar 10 17:54:18 GMT 2020
    - 1.8K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/graph/AbstractGraphTest.java

     */
    public abstract class AbstractGraphTest {
    
      Graph<Integer> graph;
    
      /**
       * The same reference as {@link #graph}, except as a mutable graph. This field is null in case
       * {@link #createGraph()} didn't return a mutable graph.
       */
      MutableGraph<Integer> graphAsMutableGraph;
    
      static final Integer N1 = 1;
      static final Integer N2 = 2;
      static final Integer N3 = 3;
      static final Integer N4 = 4;
    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. android/guava-tests/test/com/google/common/graph/StandardMutableDirectedGraphTest.java

          boolean allowsSelfLoops, ElementOrder<Integer> incidentEdgeOrder) {
        this.allowsSelfLoops = allowsSelfLoops;
        this.incidentEdgeOrder = incidentEdgeOrder;
      }
    
      @Override
      public MutableGraph<Integer> createGraph() {
        return GraphBuilder.directed()
            .allowsSelfLoops(allowsSelfLoops)
            .incidentEdgeOrder(incidentEdgeOrder)
            .build();
      }
    
      @Override
      final void addNode(Integer n) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Mar 10 17:54:18 GMT 2020
    - 2K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/graph/AbstractGraphTest.java

     */
    public abstract class AbstractGraphTest {
    
      Graph<Integer> graph;
    
      /**
       * The same reference as {@link #graph}, except as a mutable graph. This field is null in case
       * {@link #createGraph()} didn't return a mutable graph.
       */
      MutableGraph<Integer> graphAsMutableGraph;
    
      static final Integer N1 = 1;
      static final Integer N2 = 2;
      static final Integer N3 = 3;
      static final Integer N4 = 4;
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Jan 22 17:29:38 GMT 2024
    - 16.6K bytes
    - Viewed (0)
Back to top