powered by
Compute the Cartesian product of two graphs
graph_cartesian(g, h)
Cartesian product as igraph object
An igraph object
David Schoch
See https://en.wikipedia.org/wiki/Cartesian_product_of_graphs
library(igraph) g <- make_ring(4) h <- make_full_graph(2) graph_cartesian(g, h)
Run the code above in your browser using DataLab