added non ordinal mode for graph