@gulshan-123 implemented a graph product feature in the C core as igraph_product(). It would be great to expose this in R/igraph. Two product types are already released and two more will land soon.
https://igraph.org/c/html/latest/igraph-Operators.html#igraph_product
@schochastics, what do you think a nice interface could be for this? Do we want an operator like * or %*% for the classic Cartesian product, or do we restrict this to a plain function? Other graph operators, such as union, have operators such as %u%.
For the explicit function, what's a better name? Just product() (risk of collision, but short) or graph_product()?
@gulshan-123 implemented a graph product feature in the C core as
igraph_product(). It would be great to expose this in R/igraph. Two product types are already released and two more will land soon.https://igraph.org/c/html/latest/igraph-Operators.html#igraph_product
@schochastics, what do you think a nice interface could be for this? Do we want an operator like
*or%*%for the classic Cartesian product, or do we restrict this to a plain function? Other graph operators, such as union, have operators such as%u%.For the explicit function, what's a better name? Just
product()(risk of collision, but short) orgraph_product()?