Document the streaming-first graph-handling design principle

Abierto Apto para principiantes
#191 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
2/5
Tiempo estimado
1-3 horas
Aptitud para principiantes
62/100
Tipo de issue
Documentación
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
python

Línea de trabajo

Comienza leyendo las secciones “Memory characteristics” y “The NetworkX boundary” de docs/graphs/index.rst, además de la mención de streaming cerca de docs/tutorial.rst:111. Añade la sección “Graph handling: streaming-first” en docs/flpq.rst junto a “Package structure”, luego añade una referencia cruzada desde docs/graphs/index.rst y elimina el texto duplicado sobre el límite. Está terminado cuando la sección existe, la referencia cruzada se resuelve y la documentación se compila sin referencias rotas.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.
Lenguaje dominante
Python
Estrellas
13
Forks
16
Merge medio
1 d 15 h
PR fusionados (30 d)
7

Preparar el entorno

  • Sin Dockerfile ni archivo de Docker Compose
  • Tiene una plantilla de pull request
  • Sin guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de FormalLanguageConstrainedPathQuerying/FLPQ_Data

Todos los issues de FormalLanguageConstrainedPathQuerying/FLPQ_Data

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.