• thevoidzero@lemmy.world
    link
    fedilink
    arrow-up
    5
    ·
    1 day ago

    Fun coincidence that I was working on making a graph (network) of the relationships between different units yesterday. Here is how it looks in a circle, yellow dots are lengths, mass red and time blue.

    It’s not perfect on the phone, but here is the link, press the “Refresh All” button to load the network and run the code.

    https://nadi-system.github.io/playground.html?example=units

    Context: I’m writing a programming language to analyze graphs, so I thought “units are graph relationships, let me see what I can do”. It was fun, but also funny because so many relationships are not simple factor multiplications. The network was extracted from the data gnu units uses, but I did it halfhazardly, so it’s not perfect.

    You can play around with the code if you wanna try your own things, there’s user documentation and more examples. The actual network can be viewed using the buttons on the left of the editor.