Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for edgeCount (0.06 sec)

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

            (nodeConnections instanceof TreeMap)
                ? new MapRetrievalCache<N, GraphConnections<N, V>>(nodeConnections)
                : new MapIteratorCache<N, GraphConnections<N, V>>(nodeConnections);
        this.edgeCount = checkNonNegative(edgeCount);
      }
    
      @Override
      public Set<N> nodes() {
        return nodeConnections.unmodifiableKeySet();
      }
    
      @Override
      public boolean isDirected() {
        return isDirected;
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Jan 22 17:29:38 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  2. guava/src/com/google/common/graph/AbstractBaseGraph.java

       * This implementation requires O(|N|) time. Classes extending this one may manually keep track of
       * the number of edges as the graph is updated, and override this method for better performance.
       */
      protected long edgeCount() {
        long degreeSum = 0L;
        for (N node : nodes()) {
          degreeSum += degree(node);
        }
        // According to the degree sum formula, this is equal to twice the number of edges.
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Jan 22 17:29:38 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/graph/GraphsTest.java

      private static final String E31 = "3-1";
      private static final String E34 = "3-4";
      private static final String E44 = "4-4";
      private static final int NODE_COUNT = 20;
      private static final int EDGE_COUNT = 20;
      // TODO(user): Consider adding both error messages from here and {@link AbstractNetworkTest}
      // in one class (may be a utility class for error messages).
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 02 18:21:29 UTC 2024
    - 24.7K bytes
    - Viewed (0)
Back to top