vasturiano / 3d-force-graph

3D force-directed graph component using ThreeJS/WebGL
https://vasturiano.github.io/3d-force-graph/example/large-graph/
MIT License
4.67k stars 825 forks source link

any ideas on how to generate a planar graph? #676

Open itsPreto opened 5 months ago

itsPreto commented 5 months ago

A planar graph is a graph that can be embedded in the plane without any edges crossing each other. However, not all graphs are planar. There are specific criteria and algorithms to check if a graph is planar and, if so, to find an arrangement (embedding) of the nodes such that no edges cross each other.

is it possible to even do such a thing with this library? i've build a tool that lets me index any codebase using TreeSitter and from that I generate a dependency graph (the graphData). it works great but it's like to make bigger graphs easier to take in by flattening it.