{"id":332,"date":"2024-08-25T20:44:01","date_gmt":"2024-08-25T12:44:01","guid":{"rendered":"https:\/\/www.jiansuoke.com\/post\/?p=332"},"modified":"2024-08-25T20:44:01","modified_gmt":"2024-08-25T12:44:01","slug":"social-networking-basic-concept","status":"publish","type":"post","link":"https:\/\/www.jiansuoke.com\/post\/social-networking-basic-concept.html","title":{"rendered":"\u793e\u4f1a\u7f51\u7edc\u5206\u6790\u57fa\u672c\u6982\u5ff5"},"content":{"rendered":"<p>\u7f51\u7edc\uff0c\u662f\u7531\u8282\u70b9(nodes)\u548c\u94fe\u63a5(edges)\u6240\u7ec4\u6210\u3002\u8282\u70b9(node)\uff0c\u5176\u4ed6\u9886\u57df\u53ef\u80fd\u4f1a\u7528\u884c\u52a8\u8005(actors)\u6216\u662f\u9876\u70b9(vertex)\u6765\u79f0\u547c\uff0c\u8282\u70b9\u53ef\u4ee5\u4ee3\u8868\u4e2a\u4eba\u3001\u4ea7\u54c1\u3001\u4e8b\u4ef6\u3001\u56fd\u5bb6\u3002\u94fe\u63a5(edge)\uff0c\u662f\u4ee3\u8868\u8282\u70b9\u4e4b\u95f4\u7684\u5173\u7cfb\uff0c\u5728\u5176\u4ed6\u9886\u57df\u4f1a\u7528\u5f27\u7ebf(arc)\u6216\u662f\u8fde\u63a5(link)\u6765\u79f0\u547c\uff0c\u94fe\u63a5\u53ef\u4ee5\u4ee3\u8868\u4e2a\u4eba\u5171\u540c\u559c\u6b22\u7684\u7269\u4ef6\u3001\u4e2a\u4eba\u5171\u540c\u8457\u4f5c\u7b49\u5173\u7cfb\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-32871\" src=\"https:\/\/www.jiansuoke.com\/post\/wp-content\/uploads\/2024\/08\/20240821135025-66c5f0a1b14f9.png\" alt=\"node\" width=\"400\" height=\"155\" \/><\/p>\n<p>\u5728\u7f51\u7edc\u56fe\u4e2d\uff0c\u5355\u4e00\u8282\u70b9\u5982\u4e0b\u56fe\u9ec4\u70b9(single node)\u82f1\u6587\u53c8\u79f0isolate\uff0c\u4e00\u7ec4\u8282\u70b9(a pair of nodes)\u82f1\u6587\u53c8\u79f0component\uff0c\u7f51\u7edc\u4e2d\u6700\u5927\u7ec4\u8282\u70b9(the largest pair of nodes)\uff0c\u79f0main component\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-32872\" src=\"https:\/\/www.jiansuoke.com\/post\/wp-content\/uploads\/2024\/08\/20240821135025-66c5f0a1ba145.png\" alt=\"node-pair-component\" width=\"400\" height=\"215\" \/><\/p>\n<p>\u4e00\u7ec4\u8282\u70b9\u53ef\u79f0\u4e3apair\u6216\u662fdyad(\u4e0b\u56fe\u5de6)\uff0c\u4e09\u4e2a\u8282\u70b9\u94fe\u63a5\u6210\u5c01\u95ed\u4e09\u89d2\u53ef\u79f0\u4e3aclosure triad(\u4e0b\u56fe\u4e2d)\uff0c\u4e09\u8282\u70b9\u94fe\u63a5\u5f00\u653e\u4e09\u89d2\u5219\u79f0triplet(\u4e0b\u56fe\u53f3)\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-32873\" src=\"https:\/\/www.jiansuoke.com\/post\/wp-content\/uploads\/2024\/08\/20240821135025-66c5f0a1c1826.png\" alt=\"dyad-triplet-triad\" width=\"400\" height=\"114\" \/><\/p>\n<p>\u8282\u70b9\u548c\u8282\u70b9\u4e4b\u95f4\u7684\u94fe\u63a5\u53ef\u4ee5\u5206\u4e3a\u65e0\u65b9\u5411\u6027(undirected)\u3001\u6709\u65b9\u5411\u6027(directed)\uff0c\u94fe\u63a5\u7684\u6b21\u6570\u4ea6\u53ef\u4ee5\u8ba1\u7b97\uff0c\u4f8b\u5982\uff1a\u8fde\u63a55\u6b21\uff0c\u5219\u94fe\u63a5\u6743\u91cd(edge weight; value)\u662f5\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-32874\" src=\"https:\/\/www.jiansuoke.com\/post\/wp-content\/uploads\/2024\/08\/20240821135025-66c5f0a1c71d3.png\" alt=\"direction\" width=\"400\" height=\"175\" \/><\/p>\n<p>\u63a5\u6765\u7528\u8bf4\u660e\u6709\u5411\u548c\u65e0\u5411\u7f51\u7edc\u56fe\u7684\u5dee\u5f02\uff08\u4e3a\u6709\u52a9\u4e8e\u7406\u89e3\uff0c\u4ee5\u4e0b\u4e2d\u82f1\u6587\u5e76\u7528\uff09\u3002<\/p>\n<p>Graph G<br \/>\n=a finite set of nodes, N (each node is unique)<br \/>\n+a finite set of edges, E (each edge is unique)<\/p>\n<p>Each edge is a pair (n1,n2) where n1, n2 \u2208 N<\/p>\n<p>\u5047\u8bbe\u56feG\u5305\u542b\uff1a\u4e00\u7ec4\u6709\u9650\u91cf\u7684\u8282\u70b9N\u548c\u4e00\u7ec4\u6709\u9650\u91cf\u7684\u94fe\u63a5E\uff0c\u4e14\u6bcf\u4e00\u8282\u70b9\u4e0e\u6bcf\u4e00\u94fe\u63a5\u90fd\u662f\u552f\u4e00\u7684\uff0c\u8282\u70b9\u4ee5n1\u3001n2\u8868\u793a\uff0c\u94fe\u63a5\u4ee5(n1,n2)\u8868\u793a\u3002<\/p>\n<p>\u3010\u65e0\u5411\u56fe(undirected)\u3011\u7f51\u7edc\u56fe<br \/>\nN = { 1, 2 ,3, 4, 5}<br \/>\nE = { (1,2), (1, 5) , (2, 3), (2, 4), (3, 4), (4, 5), (2,1), (3, 2), (4, 2), (4, 3), (5, 1) (5, 4)}<br \/>\nAll edges are two-way. Edges are unordered pairs.<br \/>\n\u53ef\u4ee5\u770b\u51fa\u67095\u4e2a\u8282\u70b9\uff0c6\u6761\u94fe\u63a5\uff0c\u94fe\u63a5\u662f\u53cc\u5411\u7684\u3001\u662f\u6ca1\u6709\u6b21\u5e8f\u7684\uff0c\u77e9\u9635\u53ef\u4ee5\u5199\u6210\u4e0b\u56fe\u53f3\u8fb9\u7684\u5f62\u5f0f\uff0c\u65e0\u50cf\u56fe\u7684\u77e9\u9635\u6570\u503c\u4f1a\u6cbf\u8457\u5bf9\u89d2\u7ebf\u5bf9\u79f0\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-32875\" src=\"https:\/\/www.jiansuoke.com\/post\/wp-content\/uploads\/2024\/08\/20240821135025-66c5f0a1cd42e.png\" alt=\"undirect\" width=\"400\" height=\"174\" \/><\/p>\n<p>\u3010\u6709\u5411\u56fe(directed)\u3011 \u7f51\u7edc\u56fe<br \/>\nN = { 1, 2, 3, 4, 5}<br \/>\nE = { (1, 2), (1, 5), (2, 3), (3, 4), (4, 2), (4, 5), (5, 1) }<br \/>\nAll edges are one-way as indicated by the arrows. Edges are ordered pairs.<br \/>\n\u53ef\u4ee5\u770b\u51fa\u67095\u4e2a\u8282\u70b9\uff0c6\u6761\u6709\u7bad\u5934\u7684\u94fe\u63a5\uff0c\u94fe\u63a5\u662f\u5355\u5411\u7684\u3001\u662f\u6709\u6b21\u5e8f\u7684\uff0c\u77e9\u9635\u53ef\u4ee5\u5199\u6210\u4e0b\u56fe\u53f3\u8fb9\u7684\u5f62\u5f0f\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-32876\" src=\"https:\/\/www.jiansuoke.com\/post\/wp-content\/uploads\/2024\/08\/20240821135025-66c5f0a1d39f2.png\" alt=\"directed\" width=\"400\" height=\"177\" \/><\/p>\n<p>\u3010\u6709\u5411\u56fe+\u6743\u91cd\u3011\u7f51\u7edc\u56fe<br \/>\nN = { 1, 2, 3, 4, 5}<br \/>\nE = { (1, 2), (1, 5), (2, 3), (3, 4), (4, 2), (4, 5), (5, 1) }<br \/>\nAll edges are one-way as indicated by the arrows. Edges are ordered pairs.<br \/>\n\u53ef\u4ee5\u770b\u51fa\u67095\u4e2a\u8282\u70b9\uff0c6\u6761\u6709\u7bad\u5934\u7684\u94fe\u63a5\uff0c\u94fe\u63a5\u662f\u5355\u5411\u7684\u3001\u662f\u6709\u6b21\u5e8f\u7684\uff0c\u52a0\u4e0a\u94fe\u63a5\u6743\u91cd\u7684\u6982\u5ff5\uff0c\u53ef\u4ee5\u77e5\u9053(1,5)\u7684\u94fe\u63a5\u6570\u662f3\uff1b(4,2)\u7684\u94fe\u63a5\u6570\u662f6\uff1b(5,1)\u7684\u94fe\u63a5\u6570\u662f7\uff0c\u77e9\u9635\u53ef\u4ee5\u5199\u6210\u4e0b\u56fe\u53f3\u8fb9\u7684\u5f62\u5f0f\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-32877\" src=\"https:\/\/www.jiansuoke.com\/post\/wp-content\/uploads\/2024\/08\/20240821135025-66c5f0a1da559.png\" alt=\"directed-weight\" width=\"400\" height=\"169\" \/><\/p>\n<p>\u5176\u4ed6\u4e13\u6709\u540d\u8bcd\uff1a<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-32878\" src=\"https:\/\/www.jiansuoke.com\/post\/wp-content\/uploads\/2024\/08\/20240821135025-66c5f0a1e1aef.png\" alt=\"sna-terms\" width=\"500\" height=\"151\" \/><\/p>\n<p>by\u8303\u851a\u654f<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u7f51\u7edc\uff0c\u662f\u7531\u8282\u70b9(nodes)\u548c\u94fe\u63a5(edges)\u6240\u7ec4\u6210\u3002\u8282\u70b9(node)\uff0c\u5176\u4ed6\u9886\u57df\u53ef\u80fd\u4f1a\u7528\u884c\u52a8\u8005(actors)\u6216\u662f\u9876\u70b9(vertex)\u6765\u79f0\u547c\uff0c\u8282\u70b9\u53ef\u4ee5\u4ee3\u8868\u4e2a\u4eba\u3001\u4ea7\u54c1\u3001\u4e8b\u4ef6\u3001\u56fd\u5bb6\u3002\u94fe\u63a5(edge)\uff0c\u662f\u4ee3\u8868\u8282\u70b9\u4e4b\u95f4\u7684\u5173\u7cfb<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[1],"tags":[156,155,154],"class_list":["post-332","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-sna","tag-social-network-analysis","tag-social-network-analysis-1"],"_links":{"self":[{"href":"https:\/\/www.jiansuoke.com\/post\/wp-json\/wp\/v2\/posts\/332","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.jiansuoke.com\/post\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.jiansuoke.com\/post\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.jiansuoke.com\/post\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.jiansuoke.com\/post\/wp-json\/wp\/v2\/comments?post=332"}],"version-history":[{"count":2,"href":"https:\/\/www.jiansuoke.com\/post\/wp-json\/wp\/v2\/posts\/332\/revisions"}],"predecessor-version":[{"id":1278,"href":"https:\/\/www.jiansuoke.com\/post\/wp-json\/wp\/v2\/posts\/332\/revisions\/1278"}],"wp:attachment":[{"href":"https:\/\/www.jiansuoke.com\/post\/wp-json\/wp\/v2\/media?parent=332"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.jiansuoke.com\/post\/wp-json\/wp\/v2\/categories?post=332"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.jiansuoke.com\/post\/wp-json\/wp\/v2\/tags?post=332"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}