Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 1 of 1 for hasCycle_selfLoopEdge (0.17 seconds)

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

          graph.putEdge(1, 2);
        }
        assertThat(hasCycle(directedGraph)).isFalse();
        assertThat(hasCycle(undirectedGraph)).isFalse();
      }
    
      @Test
      public void hasCycle_selfLoopEdge() {
        for (MutableGraph<Integer> graph : graphsToTest) {
          graph.putEdge(1, 1);
        }
        assertThat(hasCycle(directedGraph)).isTrue();
        assertThat(hasCycle(undirectedGraph)).isTrue();
      }
    
      @Test
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Dec 19 18:03:30 GMT 2024
    - 6.4K bytes
    - Click Count (0)
Back to Top