<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>yuyarin</author_name>
  <author_url>https://blog.hatena.ne.jp/yuyarin/</author_url>
  <blog_title>yuyarinの日記</blog_title>
  <blog_url>https://yuyarin.hatenadiary.org/</blog_url>
  <categories>
    <anon>Ruby</anon>
    <anon>Algorithm</anon>
  </categories>
  <description>Rubyでダイクストラ法を使って始点からの最短経路を求めることができるかもしれないコード nodes = [&quot;A&quot;, &quot;B&quot;, &quot;C&quot;, &quot;D&quot;, &quot;E&quot;] connections = [ # [node1, node2, cost(1-&gt;2), cost(2-&gt;1)] [&quot;A&quot;, &quot;B&quot;, 6, 9], [&quot;A&quot;, &quot;C&quot;, 3, 2], [&quot;B&quot;, &quot;C&quot;, 2, 3], [&quot;B&quot;, &quot;D&quot;, 4, 1], [&quot;C&quot;, &quot;E&quot;, 3, 8], [&quot;B&quot;, &quot;E&quot;, 3, 2], ] require 'pp' def dijkstra(nodes, connections, start) i…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fyuyarin.hatenadiary.org%2Fentry%2F20110820%2F1313766566&quot; title=&quot;Rubyでdijkstra法 - yuyarinの日記&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2011-08-20 00:09:26</published>
  <title>Rubyでdijkstra法</title>
  <type>rich</type>
  <url>https://yuyarin.hatenadiary.org/entry/20110820/1313766566</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
