File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -101,12 +101,16 @@ function draw(
101
101
with_he_metadata_hover:: Bool = false
102
102
) where {H<: AbstractSimpleHypergraph }
103
103
104
+ # generate a copy of the hypergraph to remove empty hyperedges
105
+ _h = deepcopy (h)
106
+ prune_hypergraph! (_h)
107
+
104
108
w = widget_graph (
105
- JSON3. write (h . v2he),
106
- JSON3. write (h . he2v),
109
+ JSON3. write (_h . v2he),
110
+ JSON3. write (_h . he2v),
107
111
element;
108
- v_meta= h . v_meta,
109
- he_meta= h . he_meta,
112
+ v_meta= _h . v_meta,
113
+ he_meta= _h . he_meta,
110
114
width= width,
111
115
height= height,
112
116
radius= radius,
@@ -129,7 +133,7 @@ function draw(
129
133
with_he_labels= with_he_labels,
130
134
he_labels= he_labels,
131
135
with_he_metadata_hover= with_he_metadata_hover
132
- )
136
+ )
133
137
134
138
display (w)
135
139
end
You can’t perform that action at this time.
0 commit comments