Brainstorming problem based on graph