Skip to content

Commit b2b0ffc

Browse files
authored
throw ArgumentError on transitiveclosure!(::MetaGraph)
previously, this would not return an error but would not update the underlying graph structure. Note: simply calling `transitiveclosure!(G.graph)` also fails as this does not update the metadata, e.g. `G.edge_data`.
1 parent 1ea0c41 commit b2b0ffc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/metagraph.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,3 +248,7 @@ This can be useful to interpret the results of methods inherited from `Graphs`.
248248
function label_for(meta_graph::MetaGraph, code::Integer)
249249
return meta_graph.vertex_labels[code]
250250
end
251+
252+
function transitiveclosure!(meta_graph::MetaGraph)
253+
throw(ArgumentError("transitiveclosure! not implemented for type MetaGraph"))
254+
end

0 commit comments

Comments
 (0)