xgi-org / xgi

CompleX Group Interactions (XGI) is a Python package for higher-order networks.
https://xgi.readthedocs.io
Other
177 stars 27 forks source link

New drawing style #358

Closed nwlandry closed 1 year ago

nwlandry commented 1 year ago

It would be cool to have a method for drawing hypergraphs/simplicial complexes in the style of Fig. 1 in this paper.

maximelucas commented 1 year ago

Agreed.

The first step would be to have an order param in draw to only draw a given order? Like I did in Fig 1c here https://journals.aps.org/prresearch/pdf/10.1103/PhysRevResearch.2.033410 At that (pre-XGI time), I did it this way with the function plot_simplicial_pure() available here https://github.com/maximelucas/plot_simplicial_complex/blob/main/draw_simplicial_complexes.ipynb

Then we can choose to have it look like a multilayer or not I guess.

thomasrobiglio commented 1 year ago

That would be nice! @nwlandry this could be done using matplotlib 3D plotting right? Or you had something else in mind?

nwlandry commented 1 year ago

Awesome! That's a great starting point.

Yeah, I was picturing using 3d plotting and Max's code as well as this script for plotting multilayer networks is a good place to start, I think.

thomasrobiglio commented 1 year ago

If nobody is already working on it I might try to build it.

nwlandry commented 1 year ago

Sounds great!!