Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 29 for MutableGraph (0.2 sec)

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

     *
     * @author James Sexton
     * @author Joshua O'Madadhain
     * @param <N> Node parameter type
     * @since 20.0
     */
    @Beta
    @ElementTypesAreNonnullByDefault
    public interface MutableGraph<N> extends Graph<N> {
    
      /**
       * Adds {@code node} if it is not already present.
       *
       * <p><b>Nodes must be unique</b>, just as {@code Map} keys must be. They must also be non-null.
       *
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 26 17:43:39 GMT 2021
    - 3.9K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/graph/GraphEquivalenceTest.java

        graph.addNode(N1);
    
        MutableGraph<Integer> g2 = createGraph(edgeType);
        g2.addNode(N2);
    
        assertThat(graph).isNotEqualTo(g2);
      }
    
      // Node/edge sets are the same, but node/edge connections differ due to edge type.
      @Test
      public void equivalent_directedVsUndirected() {
        graph.putEdge(N1, N2);
    
        MutableGraph<Integer> g2 = createGraph(oppositeType(edgeType));
    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)
  3. guava-tests/test/com/google/common/graph/GraphPropertiesTest.java

    @RunWith(JUnit4.class)
    public class GraphPropertiesTest {
      ImmutableList<MutableGraph<Integer>> graphsToTest;
      Graph<Integer> directedGraph;
      Graph<Integer> undirectedGraph;
    
      ImmutableList<MutableNetwork<Integer, String>> networksToTest;
      Network<Integer, String> directedNetwork;
      Network<Integer, String> undirectedNetwork;
    
      @Before
      public void init() {
        MutableGraph<Integer> mutableDirectedGraph =
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 07 15:09:01 GMT 2016
    - 5.7K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/graph/StandardImmutableGraphAdditionalTest.java

      @Test
      public void immutableGraph() {
        MutableGraph<String> mutableGraph = GraphBuilder.directed().build();
        mutableGraph.addNode("A");
        ImmutableGraph<String> immutableGraph = ImmutableGraph.copyOf(mutableGraph);
    
        assertThat(immutableGraph).isNotInstanceOf(MutableValueGraph.class);
        assertThat(immutableGraph).isEqualTo(mutableGraph);
    
        mutableGraph.addNode("B");
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Jan 09 20:24:43 GMT 2020
    - 4.5K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/graph/ElementOrderTest.java

    public final class ElementOrderTest {
      // Node order tests
    
      @Test
      public void nodeOrder_none() {
        MutableGraph<Integer> graph = GraphBuilder.directed().nodeOrder(unordered()).build();
    
        assertThat(graph.nodeOrder()).isEqualTo(unordered());
      }
    
      @Test
      public void nodeOrder_insertion() {
        MutableGraph<Integer> graph = GraphBuilder.directed().nodeOrder(insertion()).build();
    
        addNodes(graph);
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 8.1K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/graph/GraphBuilder.java

        GraphBuilder<N1> newBuilder = cast();
        newBuilder.incidentEdgeOrder = checkNotNull(incidentEdgeOrder);
        return newBuilder;
      }
    
      /** Returns an empty {@link MutableGraph} with the properties of this {@link GraphBuilder}. */
      public <N1 extends N> MutableGraph<N1> build() {
        return new StandardMutableGraph<>(this);
      }
    
      GraphBuilder<N> copy() {
        GraphBuilder<N> newBuilder = new GraphBuilder<>(directed);
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Jun 03 01:21:31 GMT 2022
    - 7.3K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/graph/GraphPropertiesTest.java

    @RunWith(JUnit4.class)
    public class GraphPropertiesTest {
      ImmutableList<MutableGraph<Integer>> graphsToTest;
      Graph<Integer> directedGraph;
      Graph<Integer> undirectedGraph;
    
      ImmutableList<MutableNetwork<Integer, String>> networksToTest;
      Network<Integer, String> directedNetwork;
      Network<Integer, String> undirectedNetwork;
    
      @Before
      public void init() {
        MutableGraph<Integer> mutableDirectedGraph =
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Jun 19 21:11:54 GMT 2017
    - 5.7K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/graph/GraphsTest.java

      }
    
      private static MutableGraph<Integer> buildDirectedGraph() {
        MutableGraph<Integer> directedGraph = GraphBuilder.directed().allowsSelfLoops(true).build();
        directedGraph.putEdge(N1, N1);
        directedGraph.putEdge(N1, N2);
        directedGraph.putEdge(N2, N1);
    
        return directedGraph;
      }
    
      private static MutableGraph<Integer> buildUndirectedGraph() {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 24.9K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/graph/StandardMutableGraph.java

     * @param <N> Node parameter type
     */
    @ElementTypesAreNonnullByDefault
    final class StandardMutableGraph<N> extends ForwardingGraph<N> implements MutableGraph<N> {
      private final MutableValueGraph<N, Presence> backingValueGraph;
    
      /** Constructs a {@link MutableGraph} with the properties specified in {@code builder}. */
      StandardMutableGraph(AbstractGraphBuilder<? super N> builder) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 26 17:43:39 GMT 2021
    - 2.4K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/graph/GraphEquivalenceTest.java

        graph.addNode(N1);
    
        MutableGraph<Integer> g2 = createGraph(edgeType);
        g2.addNode(N2);
    
        assertThat(graph).isNotEqualTo(g2);
      }
    
      // Node/edge sets are the same, but node/edge connections differ due to edge type.
      @Test
      public void equivalent_directedVsUndirected() {
        graph.putEdge(N1, N2);
    
        MutableGraph<Integer> g2 = createGraph(oppositeType(edgeType));
    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)
Back to top