puudot/README.md
Lauri Koskenniemi cff261519f Graph implementation in newgraph
Implemented working version of Graph.
Issues to solve remain, such as ordering of nodes in a block.
2026-01-30 20:21:05 +02:00

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