jacomyal / sigma.js

A JavaScript library aimed at visualizing graphs of thousands of nodes and edges
https://www.sigmajs.org/
MIT License
11.24k stars 1.59k forks source link

Factor Graph #224

Closed ccorcos closed 10 years ago

ccorcos commented 10 years ago

I want to create a graph where I can have a 3-way edge or n-way edge. Is this possible already? If not, how would you suggest I get started on contributing this to the project?

Thanks

Chet

jacomyal commented 10 years ago

Duplicate #201.

You can develop the renderers you want, but for hypergraphs, I'm afraid it is not possible since the data model itself considers each edge to have two and exactly two extremities.

As a workaround it is possible to use nodes for all n-way edges.