> ## Documentation Index
> Fetch the complete documentation index at: https://wb-21fd5541-docs-hivemind-launch.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# run이 로깅하거나 사용한 artifact는 어떻게 찾을 수 있나요? artifact를 생성하거나 사용한 run은 어떻게 찾을 수 있나요?

W\&B는 각 run이 로깅한 artifact와 각 run이 사용한 artifact를 추적해 artifact 그래프를 구성합니다. 이 그래프는 run과 artifact를 나타내는 노드로 이루어진 이분 유향 비순환 그래프입니다. 예시는 [여기](https://wandb.ai/shawn/detectron2-11/artifacts/dataset/furniture-small-val/06d5ddd4deeb2a6ebdd5/graph)에서 볼 수 있습니다(그래프를 펼치려면 "Explode"를 클릭하세요).

Artifact나 run 중 어느 쪽에서든 시작해 Public API로 프로그래밍 방식으로 그래프를 탐색할 수 있습니다.

<Tabs>
  <Tab title="Artifact에서 시작">
    ```python theme={null}
    api = wandb.Api()

    artifact = api.artifact("project/artifact:alias")

    # artifact에서 그래프를 위로 탐색:
    producer_run = artifact.logged_by()
    # artifact에서 그래프를 아래로 탐색:
    consumer_runs = artifact.used_by()

    # run에서 그래프를 아래로 탐색:
    next_artifacts = consumer_runs[0].logged_artifacts()
    # run에서 그래프를 위로 탐색:
    previous_artifacts = producer_run.used_artifacts()
    ```
  </Tab>

  <Tab title="Run에서 시작">
    ```python theme={null}
    api = wandb.Api()

    run = api.run("entity/project/run_id")

    # run에서 그래프를 아래로 탐색:
    produced_artifacts = run.logged_artifacts()
    # run에서 그래프를 위로 탐색:
    consumed_artifacts = run.used_artifacts()

    # artifact에서 그래프를 위로 탐색:
    earlier_run = consumed_artifacts[0].logged_by()
    # artifact에서 그래프를 아래로 탐색:
    consumer_runs = produced_artifacts[0].used_by()
    ```
  </Tab>
</Tabs>

***

<Badge stroke shape="pill" color="orange" size="md">[Artifacts](/ko/support/models/tags/artifacts)</Badge>
