Need Help In Designing "Layout Engine"

Godot Version

Godot 4.4.1

What I Have Done Yet ?

I made a usecase editor in godot for creating diagram and I implement text to diagram ability in it.

Problem

The problem is when i convert text to diagram i simply show the diagram in grid pattern with some padding and margins but this is not ideal and not aesthetically looking good. I want to create a layout engine that display the data in a pleasing way. Something like that.

Suggested Maybe :sweat_smile:
like i also able to convert my data into graphs and trees and then perform something on it.

Project Link :backhand_index_pointing_left: :backhand_index_pointing_left: :backhand_index_pointing_left: Check it out here

I would say Google something like

random grid cells of varying cell size pattern image graphing

and get ideas. Then have Google AI generate some code you can play with.

i did this in first glance but not find satisfying results so I ask for suggestion and some creative tricks and tips to go around.

By the way thanks for suggesting