Returns the conductance matrix of an n-dimensional hypercube

1 | ```
hypercube(n)
``` |

`n` |
Integer giving the dimension of the hypercube |

The row and columnnames give the coordinates of each node (which are in binary order)

Returns a conductance matrix

In the case of a 3D cube, the nodes are in a different order from that
returned by `cube()`

(which uses Maple's scheme).

Robin K. S. Hankin

1 2 3 4 | ```
hypercube(4)
resistance(hypercube(5),1,32) # cf exact answer of 8/15
resistance(hypercube(5),1,2) # cf exact answer of n <- 5; (2^n-1)/(n*2^(n-1))=31/80
``` |

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.