32 lines
700 B
Markdown
32 lines
700 B
Markdown
|
|
# Puudot
|
|
|
|
## Development
|
|
|
|
Start implementing graph.py with Graphviz Python library.
|
|
First created in new_graph.py, but will replace graph.py.
|
|
|
|
### Graph
|
|
|
|
Based on current cluster architecture.
|
|
|
|
### RecordGraph
|
|
|
|
New architecture for creating dot. No clusters; one node (record) contains one row table with each column for a person.
|
|
~~~
|
|
dot.node('<this node id>', fr'{(<node id>) <text>}|...')
|
|
dot.edge('<this node id>:<other node id>', '<other node id>')
|
|
~~~
|
|
|
|
algorithm:
|
|
~~~
|
|
for block in blocks
|
|
create node
|
|
if block has link, set link as id
|
|
else create id
|
|
add texts to node
|
|
for text in block save links
|
|
|
|
create edges from links
|
|
~~~
|