with mode enum for MiniGraph