Skip to content

Commit 063399b

Browse files
authored
Merge pull request #56 from JuliaGraphs/dev
Precisions on integer labels
2 parents c3b3205 + 7940e83 commit 063399b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/tutorial/1_basics.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ colors = MetaGraph(
1616
graph_data="additive colors", # tag for the whole graph
1717
)
1818

19-
# The `label_type` argument defines how vertices will be referred to, it can be anything but an integer type (to avoid confusion with codes, see below). The `vertex_data_type` and `edge_data_type` type determine what kind of data will be associated with each vertex and edge. Finally, `graph_data` can contain an arbitrary object associated with the graph as a whole.
19+
# The `label_type` argument defines how vertices will be referred to, it can be anything you want (although integer types are generally discouraged, to avoid confusion with the vertex codes used by Graphs.jl). The `vertex_data_type` and `edge_data_type` type determine what kind of data will be associated with each vertex and edge. Finally, `graph_data` can contain an arbitrary object associated with the graph as a whole.
20+
21+
# If you don't care about labels at all, using the integer vertex codes as labels may be reasonable. Just keep in mind that labels do not change with vertex deletion, whereas vertex codes get decreased, so the coherence will be broken.
2022

2123
# ## Modifying the graph
2224

0 commit comments

Comments
 (0)