Visualizing set hierarchies as color coded graphs

后端 未结 4 1044
情深已故
情深已故 2021-02-02 12:21

I have been reading quite a bit on graphing libraries for Java and Javascript lately but I haven\'t found a good way to do what I want to do.

Essentially I have a hiera

4条回答
  •  春和景丽
    2021-02-02 13:02

    Yes, this is a fairly well-studied problem. What you are describing is called a hypergraph. Each element can be represented as a vertex in a graph, and the sets are the hyperedges. The problem then becomes that of visualizing hypergraphs.

    enter image description here

    Unfortunately there isn't a perfect, generalized solution to this since even the simplest graphs can have complex visualizations.

    If your sets are relatively small (< 5 elements), you can use a regular graph drawing library like graphviz. To do this, simply connect all pairs of vertices within each set and color them differently. This will yield a solution similar to this:

    enter image description here

提交回复
热议问题