<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ryamada22</author_name>
  <author_url>https://blog.hatena.ne.jp/ryamada22/</author_url>
  <blog_title>ryamadaの遺伝学・遺伝統計学メモ</blog_title>
  <blog_url>https://ryamada22.hatenablog.jp/</blog_url>
  <categories>
    <anon>R</anon>
    <anon>グラフ</anon>
  </categories>
  <description>完全グラフは、すべての頂点間に辺のあるグラフです。 エッジを行列表現して、segments()関数を使って、こんな風に。 DrawPerfectGraph&lt;-function(d=5){ #d:次数 #正d角形の頂点座標 k&lt;-1:d divk&lt;-k/d divk&lt;-divk*2*pi x&lt;-cos(divk) y&lt;-sin(divk) #プロット図を正方形にする par(pin=c(2,2)) #点を打つ plot(x,y,pch=20,cex=2) #辺行列。対角成分=0の上三角TRUE行列にする edgeMatrix&lt;-matrix(rep(TRUE,d^2),nrow=d) edgeM…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fryamada22.hatenablog.jp%2Fentry%2F20100126%2F1264481341&quot; title=&quot;Rで完全グラフを描く - ryamadaの遺伝学・遺伝統計学メモ&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>2010-01-26 13:49:01</published>
  <title>Rで完全グラフを描く</title>
  <type>rich</type>
  <url>https://ryamada22.hatenablog.jp/entry/20100126/1264481341</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
