'Drawing Graphs with Compose Multiplatform

I wanted to start using Compose Multiplatform and now I need to draw a Graph with it, so something like the following picture, but the style could be different

Graph I want to draw

I mean I could do it with a canvas and draw it manually but since I wanted to add nodes dynamically, it would be pretty tedious.

Is there a better way for drawing such graphs?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source