@@ -48,7 +48,7 @@ julia> using NamedGraphs: NamedGraph
4848julia> using NamedGraphs. GraphsExtensions: ⊔ , disjoint_union, subgraph, rename_vertices
4949
5050julia> g = NamedGraph (grid ((4 ,)), [" A" , " B" , " C" , " D" ])
51- NamedGraph{String} with 4 vertices:
51+ NamedGraphs . NamedGraph{String} with 4 vertices:
52524 - element Dictionaries. Indices{String}
5353 " A"
5454 " B"
@@ -81,7 +81,7 @@ julia> neighbors(g, "B")
8181 " C"
8282
8383julia> subgraph (g, [" A" , " B" ])
84- NamedGraph{String} with 2 vertices:
84+ NamedGraphs . NamedGraph{String} with 2 vertices:
85852 - element Dictionaries. Indices{String}
8686 " A"
8787 " B"
@@ -108,7 +108,7 @@ julia> dims = (2, 2)
108108(2 , 2 )
109109
110110julia> g = NamedGraph (grid (dims), Tuple .(CartesianIndices (dims)))
111- NamedGraph{Tuple{Int64, Int64}} with 4 vertices:
111+ NamedGraphs . NamedGraph{Tuple{Int64, Int64}} with 4 vertices:
1121124 - element Dictionaries. Indices{Tuple{Int64, Int64}}
113113 (1 , 1 )
114114 (2 , 1 )
@@ -152,7 +152,7 @@ You can use vertex names to get [induced subgraphs](https://juliagraphs.org/Grap
152152
153153``` julia
154154julia> subgraph (v -> v[1 ] == 1 , g)
155- NamedGraph{Tuple{Int64, Int64}} with 2 vertices:
155+ NamedGraphs . NamedGraph{Tuple{Int64, Int64}} with 2 vertices:
1561562 - element Dictionaries. Indices{Tuple{Int64, Int64}}
157157 (1 , 1 )
158158 (1 , 2 )
@@ -162,7 +162,7 @@ and 1 edge(s):
162162
163163
164164julia> subgraph (v -> v[2 ] == 2 , g)
165- NamedGraph{Tuple{Int64, Int64}} with 2 vertices:
165+ NamedGraphs . NamedGraph{Tuple{Int64, Int64}} with 2 vertices:
1661662 - element Dictionaries. Indices{Tuple{Int64, Int64}}
167167 (1 , 2 )
168168 (2 , 2 )
@@ -172,7 +172,7 @@ and 1 edge(s):
172172
173173
174174julia> subgraph (g, [(1 , 1 ), (2 , 2 )])
175- NamedGraph{Tuple{Int64, Int64}} with 2 vertices:
175+ NamedGraphs . NamedGraph{Tuple{Int64, Int64}} with 2 vertices:
1761762 - element Dictionaries. Indices{Tuple{Int64, Int64}}
177177 (1 , 1 )
178178 (2 , 2 )
@@ -186,7 +186,7 @@ You can also take [disjoint unions](https://en.wikipedia.org/wiki/Disjoint_union
186186
187187``` julia
188188julia> g₁ = g
189- NamedGraph{Tuple{Int64, Int64}} with 4 vertices:
189+ NamedGraphs . NamedGraph{Tuple{Int64, Int64}} with 4 vertices:
1901904 - element Dictionaries. Indices{Tuple{Int64, Int64}}
191191 (1 , 1 )
192192 (2 , 1 )
@@ -201,7 +201,7 @@ and 4 edge(s):
201201
202202
203203julia> g₂ = g
204- NamedGraph{Tuple{Int64, Int64}} with 4 vertices:
204+ NamedGraphs . NamedGraph{Tuple{Int64, Int64}} with 4 vertices:
2052054 - element Dictionaries. Indices{Tuple{Int64, Int64}}
206206 (1 , 1 )
207207 (2 , 1 )
@@ -216,7 +216,7 @@ and 4 edge(s):
216216
217217
218218julia> disjoint_union (g₁, g₂)
219- NamedGraph{Tuple{Tuple{Int64, Int64}, Int64}} with 8 vertices:
219+ NamedGraphs . NamedGraph{Tuple{Tuple{Int64, Int64}, Int64}} with 8 vertices:
2202208 - element Dictionaries. Indices{Tuple{Tuple{Int64, Int64}, Int64}}
221221 ((1 , 1 ), 1 )
222222 ((2 , 1 ), 1 )
@@ -239,7 +239,7 @@ and 8 edge(s):
239239
240240
241241julia> g₁ ⊔ g₂ # Same as above
242- NamedGraph{Tuple{Tuple{Int64, Int64}, Int64}} with 8 vertices:
242+ NamedGraphs . NamedGraph{Tuple{Tuple{Int64, Int64}, Int64}} with 8 vertices:
2432438 - element Dictionaries. Indices{Tuple{Tuple{Int64, Int64}, Int64}}
244244 ((1 , 1 ), 1 )
245245 ((2 , 1 ), 1 )
@@ -279,7 +279,7 @@ The original graphs can be obtained from subgraphs:
279279
280280``` julia
281281julia> rename_vertices (first, subgraph (v -> v[2 ] == 1 , g₁ ⊔ g₂))
282- NamedGraph{Tuple{Int64, Int64}} with 4 vertices:
282+ NamedGraphs . NamedGraph{Tuple{Int64, Int64}} with 4 vertices:
2832834 - element Dictionaries. Indices{Tuple{Int64, Int64}}
284284 (1 , 1 )
285285 (2 , 1 )
@@ -294,7 +294,7 @@ and 4 edge(s):
294294
295295
296296julia> rename_vertices (first, subgraph (v -> v[2 ] == 2 , g₁ ⊔ g₂))
297- NamedGraph{Tuple{Int64, Int64}} with 4 vertices:
297+ NamedGraphs . NamedGraph{Tuple{Int64, Int64}} with 4 vertices:
2982984 - element Dictionaries. Indices{Tuple{Int64, Int64}}
299299 (1 , 1 )
300300 (2 , 1 )
0 commit comments