Completed Graph problem. SRM-407/500