Skip to content

Commit e65a1bf

Browse files
committed
clarification for #3
1 parent 8080aab commit e65a1bf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/metagraph.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,8 @@ julia> diameter(weighted)
139139
```
140140
141141
MetaGraphs inherit many methods from LightGraphs. In general, inherited methods refer to
142-
vertices by codes, not labels.
142+
vertices by codes, not labels, for compatibility with AbstractGraph. Vertex codes get
143+
reassigned after `rem_vertex!`, so I recommend using label indexing if possible.
143144
144145
```jldoctest example
145146
julia> is_directed(colors)

0 commit comments

Comments
 (0)