Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/jwasham/practice-python
/ test_bipartite
Function
test_bipartite
graphs/undirected_graph_matrix.py:176–181 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
174
175
176
def
test_bipartite():
177
udg = get_test_graph_1()
178
assert(udg.is_bipartite() == False)
179
180
udg2 = get_test_graph_2()
181
assert (udg2.is_bipartite() == True)
182
183
184
def
main():
Callers
1
main
Function · 0.85
Calls
3
is_bipartite
Method · 0.80
get_test_graph_1
Function · 0.70
get_test_graph_2
Function · 0.70
Tested by
no test coverage detected