/// `Mode` represents the context that the application, `dot-viewer` is in.
pub
/// In `PopupMode`, users can
/// - navigate the subgraphs, or
/// - see help message.
pub
/// In `SearchMode`, users can search for a node with,
/// - fuzzy search against node ids, or
/// - regex search against raw node representation in dot format.
pub