You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Meta graph based on a {0, 0} undirected simple Int64 graph with vertices indexed by Symbol(s), Int64(s) vertex metadata, Symbol(s) edge metadata, "special" as graph metadata, and default weight 1.0
Meta graph based on a {0, 0} undirected simple Int64 graph with vertices indexed by Symbol(s), String(s) vertex metadata, Symbol(s) edge metadata, "special" as graph metadata, and default weight 1.0
79
79
```
80
80
81
81
Use `setindex!` to add a new vertex with the given metadata. If a vertex with the given
82
82
index does not exist, it will be created automatically; otherwise, `setindex!` will modify
83
83
the metadata for the existing vertex.
84
84
85
85
```jldoctest example
86
-
julia> colors[:red] = 1;
86
+
julia> colors[:red] = "warm";
87
87
88
-
julia> colors[:yellow] = 2;
88
+
julia> colors[:yellow] = "warm";
89
89
90
-
julia> colors[:blue] = 3;
90
+
julia> colors[:blue] = "cool";
91
91
```
92
92
93
93
You can access and change the metadata using indexing: zero arguments for graph metadata,
@@ -97,10 +97,10 @@ one label for vertex metadata, and two labels for edge metadata.
0 commit comments