almost work simple graph