<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Supaporn Karnbanjob on Medium]]></title>
        <description><![CDATA[Stories by Supaporn Karnbanjob on Medium]]></description>
        <link>https://medium.com/@615162020024?source=rss-6b2700bfef8a------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*asG0UsjgZ5jmXC0CPwgWqw.jpeg</url>
            <title>Stories by Supaporn Karnbanjob on Medium</title>
            <link>https://medium.com/@615162020024?source=rss-6b2700bfef8a------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 19:32:46 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@615162020024/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Social Network Analysis (SNA) on Road Network with Gephi 0.9.2]]></title>
            <link>https://medium.com/@615162020024/social-network-analysis-sna-on-road-network-with-gephi-0-9-2-23e3e8626b4a?source=rss-6b2700bfef8a------2</link>
            <guid isPermaLink="false">https://medium.com/p/23e3e8626b4a</guid>
            <dc:creator><![CDATA[Supaporn Karnbanjob]]></dc:creator>
            <pubDate>Mon, 20 May 2019 05:56:31 GMT</pubDate>
            <atom:updated>2019-05-20T05:56:31.258Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/proxy/0*ps1YznB0HT0JghAB.jpg" /><figcaption><a href="https://sites.google.com/site/monsavendarsu/road-network">https://sites.google.com/site/monsavendarsu/road-network</a></figcaption></figure><p>บทความนี้เป็นส่วนหนึ่งในการศึกษาวิชา Network Analysis โดยการใช้ การวิเคราะห์ข้อมูล จาก Gephi 0.9.2 ซึ่งสามารถ download ได้จาก เว็ปไซด์ <a href="https://gephi.org/">https://gephi.org/</a> และ ใช้ชุดข้อมูล Road Network จาก Network Data Repository มาใช้ในการสำรวจและวิเคราะห์เครือข่ายทางสังคม ชื่อชุดข้อมูล road-chesapeake จากเว็ปไซด์ <a href="http://networkrepository.com/road-chesapeake.php">http://networkrepository.com/road-chesapeake.php</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*p5U5VNxSPbq7VaFJ0d48Sw.png" /><figcaption>road-chesapeake’s graph structure</figcaption></figure><p>การวิเคราะห์เครือข่ายทางสังคม (Social network analysis: SNA) เป็นกระบวนการตรวจสอบโครงสร้างทางสังคมโดยใช้เครือข่ายและทฤษฎีกราฟ ลักษณะโครงสร้างเครือข่ายในแง่ของจุด (node) และความสัมพันธ์ของเส้นเชื่อม (edge) ที่เชื่อมต่อกัน</p><p>อัลกอริทึม (Algorithm) ที่ใช้ในการวิเคราะห์</p><ul><li>Community detection เป็นเทคนิคหนึ่ง ของ Social Network Analysis (SNA) สามารถ isolate ข้อมูลออกมาเป็นกลุ่มที่มีความเกี่ยวเนื่องกัน ด้วยวิธี Modularity</li><li>Centrality เป็นการหาความเป็นจุดศูนย์กลาง มากที่สุดในเครือข่ายทางสังคม ด้วยวิธี Degree Centrality, Betweenness Centrality และ Closeness Centrality</li><li>Shortest Path เป็นการหาวิถีสั้นสุดระหว่างจุด (node) 2 จุดภายในกราฟ กล่าวคือในวิถีสั้นสุดนั้น ผลรวมของน้ำหนักในเส้นเชื่อม(edge)แต่ละเส้นรวมกันแล้วน้อยที่สุดในบรรดาวิถีทั้งหมด</li></ul><p>ก่อนอื่นเรามาทำความรู้จักกับ ทฤษฎีกราฟ สามารถอ่านเพิ่มเติมได้จาก A Gentle Introduction To Graph Theory จากเว็ปไซด์ <a href="https://medium.com/basecs/a-gentle-introduction-to-graph-theory-77969829ead8">https://medium.com/basecs/a-gentle-introduction-to-graph-theory-77969829ead8</a> และ <a href="https://www.ebi.ac.uk/training/online/course/network-analysis-protein-interaction-data-introduction/introduction-graph-theory/graph-theory">https://www.ebi.ac.uk/training/online/course/network-analysis-protein-interaction-data-introduction/introduction-graph-theory/graph-theory</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*rguQ2Y2Z920IYGkO0cHHtQ.jpeg" /><figcaption>Graph จากเว็ปไซด์ <a href="https://medium.com/basecs/a-gentle-introduction-to-graph-theory-77969829ead8">https://medium.com/basecs/a-gentle-introduction-to-graph-theory-77969829ead8</a></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*sdUlnmnwMcPQljH52HiYBQ.jpeg" /><figcaption>Node/Vertices and Edgesจากเว็ปไซด์ <a href="https://medium.com/basecs/a-gentle-introduction-to-graph-theory-77969829ead8">https://medium.com/basecs/a-gentle-introduction-to-graph-theory-77969829ead8</a></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/1*mWx2YMnTWzcBiQRCxQzXwA.png" /><figcaption>Graph Type จากเว็ปไซด์<strong><em> </em></strong><a href="https://www.ebi.ac.uk/training/online/course/network-analysis-protein-interaction-data-introduction/introduction-graph-theory/graph-theory">https://www.ebi.ac.uk/training/online/course/network-analysis-protein-interaction-data-introduction/introduction-graph-theory/graph-theory</a></figcaption></figure><p>เมื่อพร้อมแล้วเรามาเริ่มดูชุดข้อมูลของเราที่เลือกมาเลยว่ามีอะไรบ้าง ซึ่งชุด<br>ข้อมูลประกอบด้วยตำแหน่งหรือจุด (node) จำนวน 39 (node) และถนนหรือเส้นเชื่อม(Edge) จำนวน 170 เส้น มีรายละเอียดของชุดข้อมูลดังรูป</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/459/1*HxDOTia05Heg_F0klaOQrg.png" /><figcaption>Network Data Statistic</figcaption></figure><p>เมื่อดาวน์โหลด ข้อมูลมาแล้ว จะได้ไฟล์นามสกุล .mtx ให้ทำการแปลงเป็นไฟล์นามสกุล .csv และเพิ่ม header เป็น Source และ Target ดังรูปเมื่อนำเข้าโปรแกรม Gephi 0.9.2 จะสามารถนำข้อมูลมาประมวลผลได้ง่ายขึ้น</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/282/1*NiJXGyxR37Txc06UGkfxWQ.png" /><figcaption>ตารางชุดข้อมูล</figcaption></figure><p>นำข้อมูลที่เตรียมไวเข้าโปรแกมโดย create Workspace &gt; Data Laboratory &gt; Import spreadsheet &gt;Import as Edges table</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/783/1*iyC84FVvUAZUHAz9TbmAIw.png" /></figure><p>เลือก Graph Type &gt; Undirected</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*_FPOMJDr5HzHhOX0sskdFw.png" /></figure><p>Data Table &gt; Edges จะเห็นข้อมูลทั้งหมดดังตาราง</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*AK0HxW5I4kzgKpyYkRxmuA.png" /></figure><p>เมื่อเปลี่ยนไป Overview จะได้กราฟ ดังรูป</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*0j6L_iHT0bAebmn6HSeu3Q.png" /></figure><p>หลังจากนั้นไปที่ Statistics แล้วกด Run ที่ Network Overview, Node Overview และ Edge Overview ได้ผลตามรูป</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/242/1*XGH42YWk-0mAH_22ueCEpQ.png" /></figure><p>จากการคำนวนสามารถแบ่งกลุ่มข้อมูลเครือข่ายได้ 3 กลุ่ม</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/740/1*xT_lZmBq4WWNtqhAfJPY1A.png" /></figure><p>ปรับแต่งการแสดงผลโดยเลือก สี node แสดงตาม Modularity Class ขนาดตาม Degree ส่วน Layout เลือกเป็น Label Adjust</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/786/1*tS9u33iWazmYzvg6U-RXFw.png" /></figure><p>กราฟแสดงผลเมื่อเลือกขนาด nodeตาม Degree พบว่า Node 39 มีค่า degree มากที่สุด</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*Q4ddpL8T4ndqwIZX8xy1UQ.png" /></figure><p>กราฟแสดงผลเมื่อเลอกขนาด nodeตาม Closeness centrality พบว่า Node 39 มีค่าสูงสุด</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/807/1*VFMFc_x2vC44saKQHTMHAg.png" /></figure><p>กราฟแสดงผลเมื่อเลือกขนาด node ตาม Betweeness centrality ก็ยังพบว่า Node 39 มีค่า สูงสุด</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*v5j0TNQNf8Y4urZg5l53ew.png" /></figure><p>Node 39 มีค่า Betweeness centrality มากที่สุด แต่ไม่มีความสัมพันธ์ กับ Node 36 ที่มีค่ารองลงมาเลย และอยู่คนละ class ดังรูป</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/710/1*bhay10FCLI0ILG1ljf0iRA.png" /></figure><p>ดังนั้น จึงหา shortest path ระหว่าง Node 39 กับ Node 36 พบว่า เส้นทางที่เดินทาง ใกล้ที่สุดคือ ต้องผ่าน Node 9</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/806/1*UnQnaAJxvEeI8_egB-rtRg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/519/1*Yjkok7Hx_ogHJuRCvAWHew.png" /></figure><p>จากผลการวิเคราะห์ สามารถสรุปการวิเคราะห์ข้อมูล เส้นทางเดินรถใน chesapeake โดยใช้อัลกอริทึม Community detection โดยวิธี Modularity แบ่งได้เป็น 3 class เป็นกลุ่มที่มีความเกี่ยวเนื่องกันมากที่สุด Node 39 ที่อยู่ใน class 1 มีค่า Modularity ต่ำสุด คือ 23%, ค่า Degree Centrality สูงสุด คือ 33, Closeness Centrality คือ 0.88 และ Betweenness Centrality สูงสุด คือ 239.63 แสดงให้เห็นว่าจุดนี้เป็นจุดที่มีความสำคัญมากที่สุด อาจเป็นสถานที่สำคัญเช่นเมืองหลวง ซึ่งมีความสำคัญต่อการกระจายสินค้า หรือ การคมนาคมขนส่ง ให้สามารถเข้าถึงเมืองรอง หรือจุด (Node) อื่น ๆ ได้รวดเร็ว โดยสามารถใช้ประโยชน์จากการเป็นจุดศูนย์กลางในการกระจายสินค้าหรือ จัดงานสำคัญต่างๆ จะมีผู้คนเข้าร่วมงานได้อย่างง่ายดาย</p><p>จากการวิเคราะห์ พบว่าจุดที่ มีความสำคัญรองลงมาคือ จุด (Node)36 ซึ่งไม่มีความสัมพันธ์ กับ (Node) 39 เลย จึงลองหา Shortest Path เป็นการหาวิถีสั้นสุดระหว่างจุด (node) 2 จุดภายในกราฟ พบว่า การเดินทางที่สั้นที่สุดคือ ต้องผ่าน จุด (Node) 9 เพียงจุดเดียว ดั้งนั้น จุด (Node) 9 เป็นเมืองผ่าน เป็นอีกจุดที่ควรให้ความสนใจ เนื่องจากอาจจะมีคนใช้เดินทาง ผ่านมากเป็นพิเศษ ควรจะต้องมีการจัดเตรียม เรื่องการขยายทางคมนาคม เพื่ออำนวยความสะดวก หรือ มีการจัดตั้งร้านค้าเพิ่มในจุดนี้สามารถช่วยในการขยาย ตัวทางเศษฐกิจได้</p><blockquote>อ้างอิงจาก (Reference):</blockquote><p><strong><em>Eakasit Pacharawongsakda, Ph.D., BD517 Network Analysis Course, Big Data Engineering Program, CITE, DPU, 2018</em></strong></p><ul><li><a href="http://networkrepository.com/road-chesapeake.php">chesapeake | Road Networks | Network Data Repository</a></li><li><a href="https://gephi.org/">The Open Graph Viz Platform</a></li><li><a href="https://medium.com/@615162020027/centrality-and-community-detection-in-macaque-rhesus-brain-networks-with-gephi-0-9-2-ed62cb4d0cf8">Centrality and Community Detection in Macaque Rhesus Brain Networks with Gephi 0.9.2</a></li><li><a href="https://medium.com/basecs/a-gentle-introduction-to-graph-theory-77969829ead8">A Gentle Introduction To Graph Theory</a></li><li><a href="https://www.ebi.ac.uk/training/online/course/network-analysis-protein-interaction-data-introduction/introduction-graph-theory/graph-theory">Graph theory: graph types and edge properties</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=23e3e8626b4a" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>