{"id":1934,"date":"2023-11-23T10:08:02","date_gmt":"2023-11-23T02:08:02","guid":{"rendered":"http:\/\/zhang.mba\/?p=1934"},"modified":"2023-11-23T10:25:41","modified_gmt":"2023-11-23T02:25:41","slug":"networkx-chuang-jian-cao-zuo-he-yan-jiu-fu-za-wang","status":"publish","type":"post","link":"https:\/\/zhang.mba\/index.php\/2023\/11\/23\/10\/08\/02\/1934\/networkx-chuang-jian-cao-zuo-he-yan-jiu-fu-za-wang\/python\/zhangzhiqi\/","title":{"rendered":"networkx\uff0c\u521b\u5efa\u3001\u64cd\u4f5c\u548c\u7814\u7a76\u590d\u6742\u7f51\u7edc\u7684\u7ed3\u6784\u3001\u52a8\u6001\u548c\u529f\u80fd"},"content":{"rendered":"<h3><a id=\"%E4%BB%80%E4%B9%88%E6%98%AF%E5%9B%BE\" class=\"anchor\" aria-hidden=\"true\"><span class=\"octicon octicon-link\"><\/span><\/a>\u4ec0\u4e48\u662f\u56fe<\/h3>\n<p>\u56fe\u662f\u7531\u8282\u70b9\uff08\u4e5f\u79f0\u4e3a\u9876\u70b9\uff09\u548c\u8fb9\u7ec4\u6210\u7684\u6570\u636e\u7ed3\u6784\u3002<strong>\u8282\u70b9\u8868\u793a\u56fe\u4e2d\u7684\u5b9e\u4f53\uff0c\u8fb9\u8868\u793a\u5b9e\u4f53\u4e4b\u95f4\u7684\u5173\u7cfb\u6216\u8fde\u63a5<\/strong>\u3002<\/p>\n<p>\u56fe\u53ef\u7528\u4e8e\u5bf9\u5404\u79cd\u73b0\u5b9e\u4e16\u754c\u95ee\u9898\u8fdb\u884c\u5efa\u6a21\uff0c\u4f8b\u5982\u793e\u4ea4\u7f51\u7edc\u3001\u4ea4\u901a\u7cfb\u7edf\u548c\u8ba1\u7b97\u673a\u7f51\u7edc\u7b49\u3002<\/p>\n<p>\u6709\u5411\u56fe\u662f\u8fb9\u6709\u65b9\u5411\u7684\u56fe\u3002\u8fd9\u610f\u5473\u7740<strong>\u8fb9\u4ec5\u6cbf\u7279\u5b9a\u65b9\u5411\u4ece\u4e00\u4e2a\u8282\u70b9\u5230\u8fbe\u53e6\u4e00\u4e2a\u8282\u70b9<\/strong>\u3002<\/p>\n<p>\u76f8\u53cd\uff0c\u65e0\u5411\u56fe\u6ca1\u6709\u65b9\u5411\uff0c<strong>\u8fb9\u53ef\u4ee5\u4ee5\u4efb\u4f55\u65b9\u5411\u4ece\u4e00\u4e2a\u8282\u70b9\u5230\u53e6\u4e00\u4e2a\u8282\u70b9<\/strong>\u3002<\/p>\n<p>\u6700\u540e\uff0c\u591a\u91cd\u56fe\u662f\u5728\u76f8\u540c\u7684\u4e24\u4e2a\u8282\u70b9\u4e4b\u95f4\u53ef\u4ee5\u5177\u6709\u591a\u6761\u8fb9\u7684\u56fe\u3002<\/p>\n<h3><a id=\"%E5%88%9D%E4%BD%93%E9%AA%8C\" class=\"anchor\" aria-hidden=\"true\"><span class=\"octicon octicon-link\"><\/span><\/a>\u521d\u4f53\u9a8c<\/h3>\n<h4><a id=\"%E5%BA%93%E7%9A%84%E5%AE%89%E8%A3%85\" class=\"anchor\" aria-hidden=\"true\"><span class=\"octicon octicon-link\"><\/span><\/a>\u5e93\u7684\u5b89\u88c5<\/h4>\n<p>\u53ef\u4ee5\u4f7f\u7528 pip \u6765\u5b89\u88c5 NetworkX\u3002<\/p>\n<pre class=\"line-numbers\"><code class=\"language-python\">pip\u00a0install\u00a0networkx\n<\/code><\/pre>\n<p>\u5b89\u88c5\u5b8c NetworkX \u540e\uff0c\u4f60\u5c31\u53ef\u4ee5\u5f00\u59cb\u5728 Jupyter Notebook \u4e2d\u4f7f\u7528\u5b83\u3002<\/p>\n<p>\u9996\u5148\uff0c\u4f60\u9700\u8981\u5bfc\u5165 networkx \u548c matplotlib \u5305\uff0c\u5b83\u4eec\u7528\u4e8e\u7ed8\u5236\u548c\u53ef\u89c6\u5316\u56fe\u5f62\u3002<\/p>\n<p>\u4e0b\u9762\u662f\u5982\u4f55\u4f7f\u7528 NetworkX \u521b\u5efa\u7b80\u5355\u56fe\u5f62\uff0c\u5e76\u4f7f\u7528 matplotlib \u7ed8\u5236\u5b83\u7684\u793a\u4f8b\u3002<\/p>\n<h4><a id=\"%E7%A4%BA%E4%BE%8B\" class=\"anchor\" aria-hidden=\"true\"><span class=\"octicon octicon-link\"><\/span><\/a>\u793a\u4f8b<\/h4>\n<p>\u5728\u6b64\u793a\u4f8b\u4e2d\uff0c\u6211\u4eec\u9996\u5148\u4f7f\u7528 import \u8bed\u53e5\u5bfc\u5165 networkx \u548c matplotlib \u5305\u3002<\/p>\n<p>\u7136\u540e\uff0c\u6211\u4eec\u4f7f\u7528 NetworkX \u7684 Graph \u7c7b\u521b\u5efa\u4e00\u4e2a\u7a7a\u56fe\u3002<\/p>\n<p>\u6211\u4eec\u4f7f\u7528 add_node() \u51fd\u6570\u6dfb\u52a0 ID \u4e3a 1 \u548c 2 \u7684\u4e24\u4e2a\u8282\u70b9\uff0c\u5e76\u4f7f\u7528 add_edge() \u51fd\u6570\u5728\u5b83\u4eec\u4e4b\u95f4\u6dfb\u52a0\u4e00\u6761\u8fb9\u3002<\/p>\n<p>\u6700\u540e\uff0c\u6211\u4eec\u4f7f\u7528 NetworkX \u7684 draw() \u51fd\u6570\u7ed8\u5236\u5e26\u6709\u6807\u7b7e\u7684\u56fe\u5f62\uff0c\u5e76\u4f7f\u7528 matplotlib \u7684 show() \u51fd\u6570\u5b9e\u9645\u663e\u793a\u5b83\u3002<\/p>\n<p>\u6b63\u5982\u4f60\u6240\u770b\u5230\u7684\uff0cGraph \u521b\u5efa\u4e86\u4e00\u4e2a\u65e0\u5411\u56fe\u3002<\/p>\n<pre class=\"line-numbers\"><code class=\"language-python\">import random\nimport networkx as nx\n\nG = nx.Graph()\nG.add_node('1')\nG.add_node('2')\nG.add_edge('1','2')\nnx.draw(G,with_labels=True)\n<\/code><\/pre>\n<p><div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='https:\/\/mmbiz.qpic.cn\/mmbiz_png\/ibPqnScajrbEWjor5QTC81K0vM6Ex68tANRKP61Qeom1w3dIapVUia9iciaiaBq5fHSFbyGqfEtAnJEccTvbRtVGpKA\/640?wx_fmt=png&amp;wxfrom=5&amp;wx_lazy=1&amp;wx_co=1'><img class=\"lazyload lazyload-style-2\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  data-original=\"https:\/\/mmbiz.qpic.cn\/mmbiz_png\/ibPqnScajrbEWjor5QTC81K0vM6Ex68tANRKP61Qeom1w3dIapVUia9iciaiaBq5fHSFbyGqfEtAnJEccTvbRtVGpKA\/640?wx_fmt=png&amp;wxfrom=5&amp;wx_lazy=1&amp;wx_co=1\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" alt=\"\u56fe\u7247\" \/><\/div><\/p>\n<p>\u5f53\u7136\uff0cnetworkx \u7684\u4e3b\u8981\u76ee\u7684\u4e0d\u662f\u7ed8\u5236\u5982\u6b64\u7b80\u5355\u7684\u56fe\u8868\u3002\u76f8\u53cd\uff0cnetworkx \u7684\u771f\u6b63\u5f3a\u5927\u4e4b\u5904\u5728\u4e8e<strong>\u5206\u6790\u56fe\u8868<\/strong>\u3002<\/p>\n<p>\u4f8b\u5982\uff0c\u6211\u4eec\u53ef\u4ee5\u8f7b\u677e<strong>\u627e\u5230\u4e24\u4e2a\u7ed9\u5b9a\u8282\u70b9\u4e4b\u95f4\u7684\u6700\u77ed\u8def\u5f84<\/strong>\u3002<\/p>\n<p>\u4e3a\u4e86\u8bf4\u660e\u8fd9\u4e00\u70b9\uff0c\u6211\u4eec\u5c06<strong>\u521b\u5efa\u4e00\u4e2a\u66f4\u5927\u7684\u968f\u673a\u56fe\u8868<\/strong>\u3002<\/p>\n<pre class=\"line-numbers\"><code class=\"language-python\"># Create a random graph of 100 nodes:\n\nnum_nodes = 100\n\nG = nx.Graph()\nG.add_nodes_from(range(num_nodes))\n\n# Give each node an edge to two other nodes, randomly chosen\nfor i in range(num_nodes):\n    G.add_edge(i, random.randint(0, num_nodes-1))\n    G.add_edge(i, random.randint(0, num_nodes-1))\n\n# We are looking for the shortest distance from node 0 to node 99.\n# Paint node 0 red and node 99 green.\n\ncolor_map = [&quot;gray&quot;] * num_nodes\ncolor_map[0] = &quot;red&quot;\ncolor_map[-1] = &quot;green&quot;\n    \nnx.draw(G, node_color=color_map, with_labels=True)\n<\/code><\/pre>\n<p>\u6b64\u4ee3\u7801\u793a\u4f8b\u521b\u5efa\u4e86\u4e00\u4e2a\u5305\u542b 100 \u4e2a\u8282\u70b9\u548c\u8282\u70b9\u4e4b\u95f4\u7684\u8fb9\u7684\u968f\u673a\u56fe\u3002<\/p>\n<p>\u5b83\u4f7f\u7528 Python \u6807\u51c6\u5e93\u4e2d\u7684 random \u6a21\u5757\uff0c\u901a\u8fc7\u968f\u673a\u9009\u62e9\u4e24\u4e2a\u8282\u70b9\u6765\u6dfb\u52a0\u8fb9\u3002<\/p>\n<p>\u7136\u540e\uff0c\u6839\u636e\u8282\u70b9\u662f\u8d77\u59cb\u8282\u70b9\uff08\u7ea2\u8272\uff09\u8fd8\u662f\u7ed3\u675f\u8282\u70b9\uff08\u7eff\u8272\uff09\u6765\u5206\u914d\u8282\u70b9\u7684\u989c\u8272\u3002\u8fd9\u662f\u901a\u8fc7\u521b\u5efa color_map \u5217\u8868\u6765\u5b8c\u6210\u7684\uff0c\u5176\u4e2d\u6bcf\u4e2a\u5143\u7d20\u5bf9\u5e94\u4e8e\u56fe\u4e2d\u7684\u4e00\u4e2a\u8282\u70b9\u3002color_map \u5217\u8868\u7684\u7b2c\u4e00\u4e2a\u5143\u7d20\u8bbe\u7f6e\u4e3a\u201cred\u201d\uff0c\u5bf9\u5e94\u4e8e\u8d77\u59cb\u8282\u70b9\uff0c\u6700\u540e\u4e00\u4e2a\u5143\u7d20\u8bbe\u7f6e\u4e3a\u201cgreen\u201d\uff0c\u5bf9\u5e94\u4e8e\u7ed3\u675f\u8282\u70b9\u3002<\/p>\n<p>\u6700\u540e\uff0cNetworkX \u7684 draw() \u51fd\u6570\u7528\u4e8e\u7ed8\u5236\u5177\u6709\u6307\u5b9a\u989c\u8272\u7684\u56fe\u5f62\u3002node_color \u53c2\u6570\u8bbe\u7f6e\u4e3a color_map \u5217\u8868\uff0c\u5b83\u5c06\u6bcf\u4e2a\u8282\u70b9\u6620\u5c04\u5230\u5176\u76f8\u5e94\u7684\u989c\u8272\u3002<\/p>\n<p><div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='https:\/\/mmbiz.qpic.cn\/mmbiz_png\/ibPqnScajrbEWjor5QTC81K0vM6Ex68tAOq02TG1dks6YR5vKAr5SqiaIm6Qic95Z1pvG5M2VjTmqKibTlmKicTjGIg\/640?wx_fmt=png&amp;wxfrom=5&amp;wx_lazy=1&amp;wx_co=1'><img class=\"lazyload lazyload-style-2\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  data-original=\"https:\/\/mmbiz.qpic.cn\/mmbiz_png\/ibPqnScajrbEWjor5QTC81K0vM6Ex68tAOq02TG1dks6YR5vKAr5SqiaIm6Qic95Z1pvG5M2VjTmqKibTlmKicTjGIg\/640?wx_fmt=png&amp;wxfrom=5&amp;wx_lazy=1&amp;wx_co=1\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" alt=\"\u56fe\u7247\" \/><\/div><\/p>\n<p>\u63a5\u4e0b\u6765\uff0c<strong>\u6211\u4eec\u8ba1\u7b97\u7ea2\u8272\u8282\u70b9\u548c\u7eff\u8272\u8282\u70b9\u4e4b\u95f4\u7684\u6700\u77ed\u8def\u5f84\u3002<\/strong><\/p>\n<p>\u793a\u4f8b\u4e2d\u521b\u5efa\u7684\u968f\u673a\u56fe\u4e2d\u7684\u8d77\u59cb\uff08\u7ea2\u8272\uff09\u548c\u7ed3\u675f\uff08\u7eff\u8272\uff09\u8282\u70b9\u4e4b\u95f4\u7684\u6700\u77ed\u8def\u5f84\u662f\u4f7f\u7528 NetworkX \u7684 Shortest_path() \u51fd\u6570\u8ba1\u7b97\u7684\u3002<\/p>\n<p>\u8be5\u51fd\u6570\u5c06\u56fe\u4ee5\u53ca\u8d77\u59cb\u8282\u70b9\u548c\u7ed3\u675f\u8282\u70b9\u7684 ID \u4f5c\u4e3a\u8f93\u5165\u3002\u7ed3\u679c\u5b58\u50a8\u5728\u53d8\u91cf path \u4e2d\uff0c\u5b83<strong>\u5f62\u6210\u4e24\u4e2a\u8282\u70b9\u4e4b\u95f4\u6700\u77ed\u8def\u5f84\u7684\u8282\u70b9\u5217\u8868<\/strong>\u3002<\/p>\n<pre class=\"line-numbers\"><code class=\"language-python\">path=nx.shortest_path(G,source=0,\u00a0target=99)\n<\/code><\/pre>\n<p>\u8ba9\u6211\u4eec\u5c06\u6700\u77ed\u8def\u5f84\u6d82\u6210\u7ea2\u8272\uff0c<strong>\u5373\u6700\u77ed\u8def\u5f84\u4e0a\u7684\u6240\u6709\u8fb9\u90fd\u5e94\u6d82\u6210\u7ea2\u8272\uff0c\u6240\u6709\u5176\u4ed6\u8fb9\u6d82\u6210\u9ed1\u8272\u3002<\/strong><\/p>\n<pre class=\"line-numbers\"><code class=\"language-python\">= [(path[i], path[i+1]) for i in range(len(path)-1)]\nedge_colors = []\nfor edge in G.edges:\n    if edge in edges_on_path \\\n            or tuple(reversed(edge)) in edges_on_path:\n        edge_colors.append(&quot;red&quot;)\n    else:\n        edge_colors.append(&quot;black&quot;)\n        \nnx.draw_spring(G, node_color=color_map, edge_color=edge_colors, with_labels=True)\n\n<\/code><\/pre>\n<p>\u6700\u77ed\u8def\u5f84\u4e0a\u7684\u8fb9\u5b58\u50a8\u5728 edges_on_path \u5217\u8868\u4e2d\u3002<\/p>\n<p><strong>\u8fd9\u662f\u901a\u8fc7\u8fed\u4ee3 path \u5217\u8868\u4e2d\u7684\u8282\u70b9\u5e76\u5c06\u76f8\u90bb\u8282\u70b9\u4e4b\u95f4\u7684\u8fb9\u6dfb\u52a0\u5230 edges_on_path \u5217\u8868\u4e2d\u6765\u5b8c\u6210\u7684\u3002<\/strong><\/p>\n<p>\u7136\u540e\uff0c\u6839\u636e\u8fb9\u662f\u5426\u5728\u6700\u77ed\u8def\u5f84\u4e0a\u521b\u5efa edge_colors \u5217\u8868\u3002\u5982\u679c\u8fb9\u7f18\u4f4d\u4e8e\u6700\u77ed\u8def\u5f84\u4e0a\uff0c\u5219\u5176\u989c\u8272\u8bbe\u7f6e\u4e3a\u201c\u7ea2\u8272\u201d\u3002\u5426\u5219\uff0c\u5176\u989c\u8272\u8bbe\u7f6e\u4e3a \u201c\u9ed1\u8272\u201d\u3002<\/p>\n<p>\u6700\u540e\uff0cNetworkX \u7684 draw_spring() \u51fd\u6570\u7528\u4e8e\u7ed8\u5236\u5177\u6709\u6307\u5b9a\u8282\u70b9\u548c\u8fb9\u989c\u8272\u7684\u56fe\u5f62\u3002node_color \u53c2\u6570\u8bbe\u7f6e\u4e3a color_map \u5217\u8868\uff0c\u8be5\u5217\u8868\u5c06\u6bcf\u4e2a\u8282\u70b9\u6620\u5c04\u5230\u5176\u76f8\u5e94\u7684\u989c\u8272\u3002\u5c06 edge_color \u53c2\u6570\u8bbe\u7f6e\u4e3a edge_colors \u5217\u8868\uff0c\u8be5\u5217\u8868\u5c06\u6bcf\u6761\u8fb9\u6620\u5c04\u5230\u5176\u76f8\u5e94\u7684\u989c\u8272\u3002<\/p>\n<p><div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='https:\/\/mmbiz.qpic.cn\/mmbiz_png\/ibPqnScajrbEWjor5QTC81K0vM6Ex68tAsJ4qNChiaHabnvJYEnwENaDlNm5XoGcuUT52Xu52WBJXZ1zNvFEkkCg\/640?wx_fmt=png&amp;wxfrom=5&amp;wx_lazy=1&amp;wx_co=1'><img class=\"lazyload lazyload-style-2\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  data-original=\"https:\/\/mmbiz.qpic.cn\/mmbiz_png\/ibPqnScajrbEWjor5QTC81K0vM6Ex68tAsJ4qNChiaHabnvJYEnwENaDlNm5XoGcuUT52Xu52WBJXZ1zNvFEkkCg\/640?wx_fmt=png&amp;wxfrom=5&amp;wx_lazy=1&amp;wx_co=1\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" alt=\"\u56fe\u7247\" \/><\/div><\/p>\n<p>\u901a\u8fc7\u4f7f\u7528 Python \u4e2d\u7684 networkx \u5e93\uff0c\u4f60\u53ef\u4ee5\u8f7b\u677e\u521b\u5efa\u548c\u5206\u6790\u590d\u6742\u56fe\uff0c\u5305\u62ec\u6709\u5411\u56fe\u548c\u65e0\u5411\u56fe\u3001\u591a\u91cd\u56fe\u7b49\u3002<\/p>\n<p>\u6765\u6e90&#8212;&#8211;\u7a0b\u5e8f\u5458\u5c0f\u5bd2<\/p>\n<!--CusAds0-->\n<div style=\"font-size: 0px; height: 0px; line-height: 0px; margin: 0; padding: 0; clear: both;\"><\/div>","protected":false},"excerpt":{"rendered":"<p>\u4ec0\u4e48\u662f\u56fe \u56fe\u662f\u7531\u8282\u70b9\uff08\u4e5f\u79f0\u4e3a\u9876\u70b9\uff09\u548c\u8fb9\u7ec4\u6210\u7684\u6570\u636e\u7ed3\u6784\u3002\u8282\u70b9\u8868\u793a\u56fe\u4e2d\u7684\u5b9e\u4f53\uff0c\u8fb9\u8868\u793a\u5b9e\u4f53\u4e4b\u95f4\u7684\u5173\u7cfb\u6216\u8fde\u63a5\u3002 \u56fe\u53ef\u7528\u4e8e\u5bf9\u5404\u79cd\u73b0\u5b9e\u4e16\u754c\u95ee\u9898\u8fdb\u884c\u5efa\u6a21\uff0c\u4f8b\u5982\u793e\u4ea4\u7f51\u7edc\u3001\u4ea4\u901a\u7cfb\u7edf\u548c\u8ba1\u7b97\u673a\u7f51\u7edc\u7b49\u3002 \u6709\u5411\u56fe\u662f\u8fb9\u6709\u65b9\u5411\u7684\u56fe\u3002\u8fd9\u610f\u5473\u7740\u8fb9\u4ec5\u6cbf\u7279\u5b9a\u65b9\u5411\u4ece\u4e00\u4e2a\u8282\u70b9\u5230\u8fbe &#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0},"categories":[12,73],"tags":[54],"_links":{"self":[{"href":"https:\/\/zhang.mba\/index.php\/wp-json\/wp\/v2\/posts\/1934"}],"collection":[{"href":"https:\/\/zhang.mba\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/zhang.mba\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/zhang.mba\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/zhang.mba\/index.php\/wp-json\/wp\/v2\/comments?post=1934"}],"version-history":[{"count":0,"href":"https:\/\/zhang.mba\/index.php\/wp-json\/wp\/v2\/posts\/1934\/revisions"}],"wp:attachment":[{"href":"https:\/\/zhang.mba\/index.php\/wp-json\/wp\/v2\/media?parent=1934"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/zhang.mba\/index.php\/wp-json\/wp\/v2\/categories?post=1934"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/zhang.mba\/index.php\/wp-json\/wp\/v2\/tags?post=1934"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}