Document the streaming-first graph-handling design principle

Đang mở Phù hợp với người mới
#191 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
62/100
Loại issue
Tài liệu
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
python
Lĩnh vực
documentation

Hướng nghiên cứu

Bắt đầu bằng cách đọc các mục “Memory characteristics” và “The NetworkX boundary” trong docs/graphs/index.rst, cùng với đoạn nhắc đến streaming gần docs/tutorial.rst:111. Thêm mục “Graph handling: streaming-first” vào docs/flpq.rst, đặt cạnh “Package structure”, sau đó thêm tham chiếu chéo từ docs/graphs/index.rst và xóa phần diễn đạt ranh giới bị trùng lặp. Công việc hoàn thành khi mục này tồn tại, tham chiếu chéo được giải quyết và tài liệu được build mà không có tham chiếu bị hỏng.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

documentation task

Motivation

The streaming design is currently only described locally in docs/graphs/index.rst ("Format conversion" → "Memory characteristics" / "The NetworkX boundary") and passed by in docs/tutorial.rst:111. There is no global statement of the principle. This task adds it, using the pragmatic reading agreed in discussion (see the companion strict-reading discussion issue for the gaps this reading deliberately leaves as the in-memory boundary).

The principle (pragmatic reading — to be documented)

Graph handling is streaming-first. The primary way to read, convert, validate, and write graph data is over an edge stream — a lazy iterator of (u, label, v) tuples — keeping memory O(1) in the number of edges. Materializing a networkx.MultiDiGraph (O(V+E)) is allowed only when strictly necessary: (a) the RDF source (no streaming parser); (b) an operation whose contract is to produce or consume an in-memory graph object — the generators, the adjacency utilities, and the graph_from_*/graph_to_* loaders (the "NetworkX boundary"); (c) a consumer that needs the graph as a whole (e.g. an FLPQ solver). Where a function needs only a projection of the graph (e.g. the set of edge labels), it should take the narrowest input that suffices, not the full graph.

Placement

  • docs/flpq.rst — a new "Graph handling: streaming-first" section next to "Package structure" (the page that "records the design decisions"). States the rule once.
  • docs/graphs/index.rst — keeps the concrete per-format memory characteristics (it already has "Memory characteristics" and "The NetworkX boundary"); add a cross-reference up to the principle and align the boundary wording so it is described in one place.

Plan

  • S1. Add the "Graph handling: streaming-first" section to docs/flpq.rst with the principle text above.
  • S2. Cross-reference from docs/graphs/index.rst ("The NetworkX boundary" / "Memory characteristics") to the new section; align wording so the boundary is described once (no duplication).
  • S3. Build the docs (quality gate) to confirm no broken references.

Documentation-only task (no .py changed): skips code gates, still follows one-task-per-branch + code review.

Related

  • #189 — stream the graph/ validation (the first enforcement of the principle on the data pipeline).
  • Companion discussion issue — the strict-reading audit of the transform/generator layer.
Ngôn ngữ chính
Python
Star
13
Fork
16
Merge trung bình
1 ngày 15 giờ
Pull request đã merge (30 ngày)
7

Chuẩn bị môi trường

  • Không có Dockerfile hay tệp Docker Compose
  • Có mẫu pull request
  • Không có hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của FormalLanguageConstrainedPathQuerying/FLPQ_Data

Tất cả issue của FormalLanguageConstrainedPathQuerying/FLPQ_Data

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.