Identification of Location Game Equilibria in Networks

createDistance | Create distance matrix for a completely connected network |

dijkstra | Shortest path through network using dijkstra's algorithm |

euclidDistance | Euclidean distance between two points |

lgsolve | Equilibrium locations of location game |

plotDijkstra | Plot shortest path between two points in a network |

plotNetwork | Plotting a network consisting of edges and vertexes |

plotPrim | Plotting minimum spanning tree connecting all vertexes |

primDistance | Minimum spanning tree using Prim's algorithm |

randomCoordinates | Create random coordinates for network vertexes |

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.