Implemented working version of Graph. Issues to solve remain, such as ordering of nodes in a block.
956 B
956 B
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.
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
RecordGraph (experimental)
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