def is_chordal(G):
 if G.is_directed():
  raise nx.NetworkXError('Directed graphs not supported')
 if G.is_multigraph():
  raise nx.NetworkXError('Multiply connected graphs not supported.')
 if (len(_find_chordality_breaker(G)) == 0):
  return True
 else:
  return False

def is_chordal ( G ) : if G . is_directed ( ) : raise nx . NetworkXError ( 'Directed graphs not supported' ) if G . is_multigraph ( ) : raise nx . NetworkXError ( 'Multiply connected graphs not supported.' ) if ( len ( _find_chordality_breaker ( G ) ) == 0 ) : return True else : return False
checks whether g is a chordal graph .