Changeset 22911 for lang/cplusplus/boost-supplement
- Timestamp:
- 11/07/08 13:57:29 (2 months ago)
- Location:
- lang/cplusplus/boost-supplement/trunk
- Files:
-
- 2 modified
-
ChangeLog (modified) (1 diff)
-
boost_supplement/graph/clustering_coefficient.hpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
lang/cplusplus/boost-supplement/trunk/ChangeLog
r22565 r22911 1 2008-11-07 Kenta Murata <mrkn@mrkn.jp> 2 3 * boost_supplement/graph/clustering_coefficient.hpp (boost_supplement::clustering_coefficient): 4 clustering coefficient of the isolated and one-edge vertices is zero. 5 1 6 2008-11-02 Kenta Murata <mrkn@mrkn.jp> 2 7 -
lang/cplusplus/boost-supplement/trunk/boost_supplement/graph/clustering_coefficient.hpp
r21208 r22911 27 27 tie(ai, ai_end) = adjacent_vertices(v, g); 28 28 long n = std::distance(ai, ai_end); 29 #if 0 29 30 if (n == 0) { put(vcc_map, v, 0.0); continue; } // skip isolated vertex 30 31 if (n == 1) { put(vcc_map, v, 1.0); continue; } // skip one-edge-vertex 32 #else 33 if (n == 0 || n == 1) { put(vcc_map, v, 0.0); continue; } // skip isolated vertex and one-edge-vertex 34 #endif 31 35 double den = n*(n-1) / 2.0; 32 36
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)