Document the streaming-first graph-handling design principle
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ả
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 anetworkx.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 thegraph_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.rstwith 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
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của FormalLanguageConstrainedPathQuerying/FLPQ_Data
-
task
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 72/100
FormalLanguageConstrainedPathQuerying/FLPQ_Data#185 · 1 bình luận ·
-
Page title is CFPQ_DataĐang mởbug
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
-
task
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 58/100
FormalLanguageConstrainedPathQuerying/FLPQ_Data#192 · 1 bình luận ·
-
enhancement task
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 12/100
-
task
Độ khó 3/5 Nửa ngày Mức phù hợp với người mới 45/100
FormalLanguageConstrainedPathQuerying/FLPQ_Data#189 · 1 bình luận ·
Tất cả issue của FormalLanguageConstrainedPathQuerying/FLPQ_Data
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
NL-BioImaging/biomero#136 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Grayscale PNGs with partial transparency can turn gray pixels whiteCó thể đã có người làm @ktz03 đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
-
Add deterministic regex redaction for IDs, IBANs, and account numbers in summaries & keywordsĐang mởenhancement good first issue help wanted
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
floorianmb/tidywise#5 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
eclipse-score/tools#82 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
Maintainer thường phản hồi trong vòng 1 ngày