Open mtfishman opened 10 months ago
Introduce cartesian_graph(dims...) for making a NamedGraph with cartesian vertex names, i.e.:
cartesian_graph(dims...)
NamedGraph
cartesian_graph(2, 2)
would have vertices [(1, 1), (1, 2), (2, 1), (2, 2)].
[(1, 1), (1, 2), (2, 1), (2, 2)]
Additionally,
cartesian_graph(grid((2, 2)), (2, 2))
to wrap a SimpleGraph in a NamedGraph with cartesian vertices.
SimpleGraph
Introduce
cartesian_graph(dims...)
for making aNamedGraph
with cartesian vertex names, i.e.:would have vertices
[(1, 1), (1, 2), (2, 1), (2, 2)]
.Additionally,
to wrap a
SimpleGraph
in aNamedGraph
with cartesian vertices.