7070Construct a ZXDiagram with all information.
7171
7272```jldoctest
73- julia> using LightGraphs , Multigraphs, ZXCalculus;
73+ julia> using Graphs , Multigraphs, ZXCalculus;
7474
7575julia> using ZXCalculus.SpiderType: In, Out, H, Z, X;
7676
206206
207207Returns the number of vertices (spiders) of a ZX-diagram.
208208"""
209- LightGraphs . nv (zxd:: ZXDiagram ) = nv (zxd. mg)
209+ Graphs . nv (zxd:: ZXDiagram ) = nv (zxd. mg)
210210
211211"""
212212 ne(zxd; count_mul = false)
@@ -215,26 +215,26 @@ Returns the number of edges of a ZX-diagram. If `count_mul`, it will return the
215215sum of multiplicities of all multiple edges. Otherwise, it will return the
216216number of multiple edges.
217217"""
218- LightGraphs . ne (zxd:: ZXDiagram ; count_mul:: Bool = false ) = ne (zxd. mg, count_mul = count_mul)
218+ Graphs . ne (zxd:: ZXDiagram ; count_mul:: Bool = false ) = ne (zxd. mg, count_mul = count_mul)
219219
220- LightGraphs . outneighbors (zxd:: ZXDiagram , v; count_mul:: Bool = false ) = outneighbors (zxd. mg, v, count_mul = count_mul)
221- LightGraphs . inneighbors (zxd:: ZXDiagram , v; count_mul:: Bool = false ) = inneighbors (zxd. mg, v, count_mul = count_mul)
220+ Graphs . outneighbors (zxd:: ZXDiagram , v; count_mul:: Bool = false ) = outneighbors (zxd. mg, v, count_mul = count_mul)
221+ Graphs . inneighbors (zxd:: ZXDiagram , v; count_mul:: Bool = false ) = inneighbors (zxd. mg, v, count_mul = count_mul)
222222
223- LightGraphs . degree (zxd:: ZXDiagram , v:: Integer ) = degree (zxd. mg, v)
224- LightGraphs . indegree (zxd:: ZXDiagram , v:: Integer ) = degree (zxd, v)
225- LightGraphs . outdegree (zxd:: ZXDiagram , v:: Integer ) = degree (zxd, v)
223+ Graphs . degree (zxd:: ZXDiagram , v:: Integer ) = degree (zxd. mg, v)
224+ Graphs . indegree (zxd:: ZXDiagram , v:: Integer ) = degree (zxd, v)
225+ Graphs . outdegree (zxd:: ZXDiagram , v:: Integer ) = degree (zxd, v)
226226
227227"""
228228 neighbors(zxd, v; count_mul = false)
229229
230230Returns a vector of vertices connected to `v`. If `count_mul`, there will be
231231multiple copy for each vertex. Otherwise, each vertex will only appear once.
232232"""
233- LightGraphs . neighbors (zxd:: ZXDiagram , v; count_mul:: Bool = false ) = neighbors (zxd. mg, v, count_mul = count_mul)
234- function LightGraphs . rem_edge! (zxd:: ZXDiagram , x... )
233+ Graphs . neighbors (zxd:: ZXDiagram , v; count_mul:: Bool = false ) = neighbors (zxd. mg, v, count_mul = count_mul)
234+ function Graphs . rem_edge! (zxd:: ZXDiagram , x... )
235235 rem_edge! (zxd. mg, x... )
236236end
237- function LightGraphs . add_edge! (zxd:: ZXDiagram , x... )
237+ function Graphs . add_edge! (zxd:: ZXDiagram , x... )
238238 add_edge! (zxd. mg, x... )
239239end
240240
0 commit comments