Note
Go to the end to download the full example code.
Directed hypegraph#
Draw a directed hypergraph.

import matplotlib.pyplot as plt
import networkx as nx
import xgi
# generate from a list
DH = xgi.DiHypergraph([[{1, 2}, {5, 6}], [{4}, {1, 3}]])
xgi.draw_bipartite(DH)
plt.show()
Total running time of the script: (0 minutes 0.047 seconds)