Autoselect first mode for graph