Skills DirectorySkills Directory
SkillsLearnSecurityCategoriesDocsBlogPro
Sign InSubmit Skill
Skills Directory

Security-tested agent skills for Claude, coding agents, and AI workflows.

Directory

  • Browse Skills
  • All Skills A–Z
  • Claude Skills
  • Claude Code Skills
  • Agent Skills
  • Categories
  • Authors
  • Submit a Skill

Learn

  • Learn Hub
  • Install Claude Skills
  • Write SKILL.md
  • Skills vs MCP
  • Directories Compared

Security

  • Security
  • Methodology
  • Secure Claude Skills
  • Security Badges
  • Chrome Extension
  • Skill Manager

Company

  • About
  • Community
  • Blog
  • API Docs
  • Advertise

2026 Skills Directory. All rights reserved.

ProTermsPrivacyRefunds
Back to skills

C 언어 인접 리스트 기반 방향성 그래프 생성 및 인접 행렬 출력

ASecurity

C 언어를 사용하여 인접 리스트 구조로 방향성 그래프(Digraph)를 생성하고, 동시에 인접 행렬 형태로 출력합니다. 중복 간선, 자기 루프를 방지하며 음수 비용을 허용하는 조건을 충족합니다.

2 stars
0 votes
0 copies
0 views
Added 9/27/2026
ai-agents

Security Analysis

A100/100

Scanned 9/27/2026

$npx -y skills add David-Li0406/meta-skill-evloving --skill 'c-언어-인접-리스트-기반-방향성-그래프-생성-및-인접-행렬-출력' --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of C 언어 인접 리스트 기반 방향성 그래프 생성 및 인접 행렬 출력?

Add the live security badge to your README — it updates automatically with every re-scan.

Security grade badge for C 언어 인접 리스트 기반 방향성 그래프 생성 및 인접 행렬 출력
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/david-li0406-meta-skill-evloving/badge)](https://www.skillsdirectory.com/skills/david-li0406-meta-skill-evloving)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
Files
SKILL.md
---
id: "4f179321-e654-4d15-8bac-cae9b20cad12"
name: "C 언어 인접 리스트 기반 방향성 그래프 생성 및 인접 행렬 출력"
description: "C 언어를 사용하여 인접 리스트 구조로 방향성 그래프(Digraph)를 생성하고, 동시에 인접 행렬 형태로 출력합니다. 중복 간선, 자기 루프를 방지하며 음수 비용을 허용하는 조건을 충족합니다."
version: "0.1.0"
tags:
  - "C"
  - "그래프 이론"
  - "자료 구조"
  - "인접 리스트"
  - "알고리즘"
triggers:
  - "C 언어 그래프 생성"
  - "인접 리스트 인접 행렬 구현"
  - "랜덤 방향성 그래프"
  - "음수 비용 허용 그래프"
  - "그래프 간선 조건 설정"
---

# C 언어 인접 리스트 기반 방향성 그래프 생성 및 인접 행렬 출력

C 언어를 사용하여 인접 리스트 구조로 방향성 그래프(Digraph)를 생성하고, 동시에 인접 행렬 형태로 출력합니다. 중복 간선, 자기 루프를 방지하며 음수 비용을 허용하는 조건을 충족합니다.

## Prompt

# Role & Objective
C 언어 전문가로서, 사용자가 정의한 제약 조건에 따라 방향성 그래프를 생성하고 이를 인접 리스트와 인접 행렬로 출력하는 코드를 작성합니다.

# Operational Rules & Constraints
1. **언어 및 구조**: C 언어를 사용하며, 그래프는 인접 리스트(Adjacency List) 구조체(Edge, Vertex, Graph)를 기반으로 구현해야 합니다.
2. **입력**: 정점의 개수 `n`과 간선의 개수 `e`를 사용자 입력으로 받습니다. `e`는 `n+1` 이상이어야 합니다.
3. **생성 로직**:
   - `rand()` 함수를 사용하여 간선 정보(시작 정점, 도착 정점, 비용)를 무작위로 생성합니다.
   - **Self-edge 금지**: 시작 정점과 도착 정점이 같아서는 안 됩니다.
   - **중복 간선 금지**: 이미 존재하는 간선은 다시 생성하지 않습니다.
   - **Multi-graph 금지**: 두 정점 사이에 여러 간선이 존재해서는 안 됩니다.
   - **비용(Cost)**: 음수를 포함한 범위(예: -10에서 10 사이)의 값을 허용해야 합니다.
4. **출력 요구사항**:
   - 생성된 그래프를 인접 리스트 형태로 출력합니다.
   - 동일한 그래프를 인접 행렬 형태로 출력합니다.
   - 인접 리스트를 인접 행렬로 변환하는 별도의 복잡한 변환 함수 없이, 생성 과정에서 인접 행렬 배열을 동시에 갱신하거나 리스트를 순회하여 행렬 형태로 출력합니다.

# Anti-Patterns
- 인접 리스트나 인접 행렬 중 하나만 구현하지 마십시오.
- 비용(Cost)을 양수로만 제한하지 마십시오.
- 중복 간선이나 자기 루프(Self-edge)가 생성되도록 구현하지 마십시오.
- 인접 리스트를 인접 행렬로 변환하는 별도의 함수를 강제로 만들지 마십시오.

## Triggers

- C 언어 그래프 생성
- 인접 리스트 인접 행렬 구현
- 랜덤 방향성 그래프
- 음수 비용 허용 그래프
- 그래프 간선 조건 설정

Attribution

David-Li0406David-Li0406
View sourceSee grades on GitHubMore from David-Li0406 →
SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments (0)

No comments yet. Be the first to comment!

SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Related Skills

Caveman

Terse caveman voice: answer first, fluff gone, every technical fact kept. Use for /caveman, "caveman mode", "talk like caveman", "be brief", "less tokens". Stays on until "stop caveman" or "normal mode".

1100021 votes

Hyperplan

Adversarial multi-agent planning skill. Self-orchestrates 5 hostile category members (unspecified-low, unspecified-high, deep, ultrabrain, artistry) via team-mode for ruthless cross-critique debate, distills only the defensible insights, then MANDATORILY hands the distilled insight bundle to the `plan` agent for executable plan formalization. Use when planning needs maximum rigor and surfacing of weak assumptions, blind spots, and over-engineering. Triggers: 'hyperplan', 'hpp', '/hyperplan', ...

698461 votes

Writing Skills

Create and manage Claude Code skills in HASH repository following Anthropic best practices. Use when creating new skills, modifying skill-rules.json, understanding trigger patterns, working with hooks, debugging skill activation, or implementing progressive disclosure. Covers skill structure, YAML frontmatter, trigger types (keywords, intent patterns), UserPromptSubmit hook, and the 500-line rule. Includes validation and debugging with SKILL_DEBUG. Examples include rust-error-stack, cargo-dep...

3931 votes

Mcp Code Execution

Routes multi-tool workflows through MCP servers for large datasets and pipelines. Use when Bash tool overhead is limiting throughput on data-heavy tasks.

3421 votes

catchup

Recovers the conversation and failed tool calls of a previous Codex, Amp, Claude Code, Antigravity, Cline, Copilot CLI, Cursor, DeepSeek Harness, Grok Build, Kimi, OpenCode, Pi Agent, or ZCode session. Use when the user says "catch up", "what did the last session do", "get me up to speed", "I switched agents", asks to recover/summarize a previous session before continuing, or asks to diagnose or report a catchup failure. Do NOT use for the current conversation, git history, or any non-agent log.

741 votes
View all in ai-agents →