NetworkX

Previous topic

networkx.algorithms.bipartite.project

Next topic

networkx.algorithms.bipartite.bipartite_sets

networkx.algorithms.bipartite.is_bipartite

networkx.algorithms.bipartite.is_bipartite(G)

Returns True if graph G is bipartite, False if not.

Parameters :G : NetworkX graph

See also

bipartite_color

Examples

>>> G=nx.path_graph(4)
>>> print(nx.is_bipartite(G))
True