View source: R/graph_products.R
graph_cartesian | R Documentation |
Compute the Cartesian product of two graphs
graph_cartesian(g, h)
g |
An igraph object |
h |
An igraph object |
See https://en.wikipedia.org/wiki/Cartesian_product_of_graphs
Cartesian product as igraph object
David Schoch
library(igraph)
g <- make_ring(4)
h <- make_full_graph(2)
graph_cartesian(g, h)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.