Fixed a bug for the choice of a hierarchical graph or not