Skip to content

Commit

Permalink
BUG: Don't assume "edges" key is present Graphviz JSON output.
Browse files Browse the repository at this point in the history
  • Loading branch information
epatters committed Oct 20, 2022
1 parent 48f0baf commit 1125398
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/graphics/GraphvizGraphs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ function parse_graphviz(doc::AbstractDict)::AbstractPropertyGraph
# Add edge for each Graphviz edge.
edge_keys = ("id", "comment", "label", "xlabel", "headlabel", "taillabel",
"headport", "tailport")
for edge in doc["edges"]
for edge in get(doc, "edges", ())
if get(edge, "style", nothing) == "invis"
# Omit invisible edges, which are used to tweak the layout in Graphviz.
continue
Expand Down

0 comments on commit 1125398

Please sign in to comment.