Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/alibaba/GraphScope
/ almost_equal
Function
almost_equal
python/graphscope/nx/tests/utils.py:21–22 ·
view source on GitHub ↗
(x, y, places=7)
Source
from the content-addressed store, hash-verified
19
20
21
def
almost_equal(x, y, places=7):
22
return
round(abs(x - y), places) == 0
Callers
15
assert_result_almost_equal
Method · 0.90
test_degree_assortativity_coefficient
Method · 0.90
test_pagerank
Method · 0.90
test_hits
Method · 0.90
test_eigenvector_centrality
Method · 0.90
test_katz_centrality
Method · 0.90
test_average_clustering
Method · 0.90
test_degree_assortativity_coefficient
Method · 0.90
test_attribute_assortativity_coefficient
Method · 0.90
test_numeric_assortativity_coefficient
Method · 0.90
test_duplicated_modification
Method · 0.90
test_degree_assortativity_undirected1
Method · 0.90
Calls
no outgoing calls
Tested by
15
assert_result_almost_equal
Method · 0.72
test_degree_assortativity_coefficient
Method · 0.72
test_pagerank
Method · 0.72
test_hits
Method · 0.72
test_eigenvector_centrality
Method · 0.72
test_katz_centrality
Method · 0.72
test_average_clustering
Method · 0.72
test_degree_assortativity_coefficient
Method · 0.72
test_attribute_assortativity_coefficient
Method · 0.72
test_numeric_assortativity_coefficient
Method · 0.72
test_duplicated_modification
Method · 0.72
test_degree_assortativity_undirected1
Method · 0.72