ambiguity removed in ideal_whitehad_graph(). Not so optimal though