"show graph" action: If the "q" parameter is given, only show matching instances.