<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>XaroCydeykn</author_name>
  <author_url>https://blog.hatena.ne.jp/XaroCydeykn/</author_url>
  <blog_title>何かを書き留める何か</blog_title>
  <blog_url>https://xaro.hatenablog.jp/</blog_url>
  <categories>
    <anon>Python</anon>
    <anon>Mathematics</anon>
  </categories>
  <description>「ランダムグラフを生成し保存する、そしてある操作をして得られたグラフをまた保存をする」というのはグラフ理論をやる人ならばよくある光景ではないだろうか。そこで私は以下の様なPythonコードを書いた。 import networkx as nx import matplotlib.pyplot as plt import random G = nx.fast_gnp_random_graph(20, 0.5) nx.draw_circular(G) plt.savefig(&quot;random.png&quot;) # 頂点をランダムに10個選んで削除 G.remove_nodes_from(random.sa…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fxaro.hatenablog.jp%2Fentry%2F2013%2F12%2F13%2F234542&quot; title=&quot;自分のためのnetworkXメモ - 何かを書き留める何か&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>2013-12-13 23:45:42</published>
  <title>自分のためのnetworkXメモ</title>
  <type>rich</type>
  <url>https://xaro.hatenablog.jp/entry/2013/12/13/234542</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
