<?xml version="1.0" encoding="UTF-8"?>
<rss  xmlns:atom="http://www.w3.org/2005/Atom" 
      xmlns:media="http://search.yahoo.com/mrss/" 
      xmlns:content="http://purl.org/rss/1.0/modules/content/" 
      xmlns:dc="http://purl.org/dc/elements/1.1/" 
      version="2.0">
<channel>
<title>dynanet</title>
<link>https://dynanet.dev/</link>
<atom:link href="https://dynanet.dev/index.xml" rel="self" type="application/rss+xml"/>
<description>Articles on networks, graphs and data.</description>
<generator>quarto-1.10.18</generator>
<lastBuildDate>Sun, 04 Oct 2026 00:00:00 GMT</lastBuildDate>
<item>
  <title>Hello, networks</title>
  <dc:creator>Aghufran </dc:creator>
  <link>https://dynanet.dev/posts/2026-10-04-hello-networks/</link>
  <description><![CDATA[ 





<p>Posts can be written as <code>.qmd</code> files like this one, or as Jupyter notebooks (<code>.ipynb</code>) dropped into a folder under <code>posts/</code>. Code runs at build time and interactive output is embedded in the page.</p>
<div id="cell-fig-karate" class="cell" data-execution_count="1">
<details class="code-fold">
<summary>Code</summary>
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb1" style="background: #f1f3f5;"><pre class="sourceCode python code-with-copy"><code class="sourceCode python"><span id="cb1-1"><span class="im" style="color: #00769E;
background-color: null;
font-style: inherit;">import</span> networkx <span class="im" style="color: #00769E;
background-color: null;
font-style: inherit;">as</span> nx</span>
<span id="cb1-2"><span class="im" style="color: #00769E;
background-color: null;
font-style: inherit;">import</span> plotly.graph_objects <span class="im" style="color: #00769E;
background-color: null;
font-style: inherit;">as</span> go</span>
<span id="cb1-3"></span>
<span id="cb1-4">G <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">=</span> nx.karate_club_graph()</span>
<span id="cb1-5">pos <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">=</span> nx.spring_layout(G, seed<span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">=</span><span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">42</span>)</span>
<span id="cb1-6"></span>
<span id="cb1-7">edge_x, edge_y <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">=</span> [], []</span>
<span id="cb1-8"><span class="cf" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">for</span> u, v <span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">in</span> G.edges():</span>
<span id="cb1-9">    edge_x <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">+=</span> [pos[u][<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">0</span>], pos[v][<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">0</span>], <span class="va" style="color: #111111;
background-color: null;
font-style: inherit;">None</span>]</span>
<span id="cb1-10">    edge_y <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">+=</span> [pos[u][<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">1</span>], pos[v][<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">1</span>], <span class="va" style="color: #111111;
background-color: null;
font-style: inherit;">None</span>]</span>
<span id="cb1-11"></span>
<span id="cb1-12">clubs <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">=</span> [G.nodes[n][<span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"club"</span>] <span class="cf" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">for</span> n <span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">in</span> G.nodes()]</span>
<span id="cb1-13">fig <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">=</span> go.Figure(</span>
<span id="cb1-14">    [</span>
<span id="cb1-15">        go.Scatter(x<span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">=</span>edge_x, y<span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">=</span>edge_y, mode<span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">=</span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"lines"</span>,</span>
<span id="cb1-16">                   line<span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">=</span><span class="bu" style="color: null;
background-color: null;
font-style: inherit;">dict</span>(width<span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">=</span><span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.6</span>, color<span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">=</span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"#999"</span>), hoverinfo<span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">=</span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"skip"</span>),</span>
<span id="cb1-17">        go.Scatter(</span>
<span id="cb1-18">            x<span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">=</span>[pos[n][<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">0</span>] <span class="cf" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">for</span> n <span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">in</span> G.nodes()],</span>
<span id="cb1-19">            y<span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">=</span>[pos[n][<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">1</span>] <span class="cf" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">for</span> n <span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">in</span> G.nodes()],</span>
<span id="cb1-20">            mode<span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">=</span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"markers"</span>,</span>
<span id="cb1-21">            marker<span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">=</span><span class="bu" style="color: null;
background-color: null;
font-style: inherit;">dict</span>(size<span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">=</span>[<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">6</span> <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">+</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">2</span> <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">*</span> G.degree(n) <span class="cf" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">for</span> n <span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">in</span> G.nodes()],</span>
<span id="cb1-22">                        color<span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">=</span>[<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">0</span> <span class="cf" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">if</span> c <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">==</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Mr. Hi"</span> <span class="cf" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">else</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">1</span> <span class="cf" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">for</span> c <span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">in</span> clubs],</span>
<span id="cb1-23">                        colorscale<span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">=</span>[[<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">0</span>, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"#2a78d6"</span>], [<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">1</span>, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"#e0712c"</span>]]),</span>
<span id="cb1-24">            text<span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">=</span>[<span class="ss" style="color: #20794D;
background-color: null;
font-style: inherit;">f"Node </span><span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">{</span>n<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">}</span><span class="ss" style="color: #20794D;
background-color: null;
font-style: inherit;">&lt;br&gt;Club: </span><span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">{</span>c<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">}</span><span class="ss" style="color: #20794D;
background-color: null;
font-style: inherit;">&lt;br&gt;Degree: </span><span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">{</span>G<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">.</span>degree(n)<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">}</span><span class="ss" style="color: #20794D;
background-color: null;
font-style: inherit;">"</span></span>
<span id="cb1-25">                  <span class="cf" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">for</span> n, c <span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">in</span> <span class="bu" style="color: null;
background-color: null;
font-style: inherit;">zip</span>(G.nodes(), clubs)],</span>
<span id="cb1-26">            hoverinfo<span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">=</span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"text"</span>,</span>
<span id="cb1-27">        ),</span>
<span id="cb1-28">    ],</span>
<span id="cb1-29">    layout<span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">=</span>go.Layout(showlegend<span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">=</span><span class="va" style="color: #111111;
background-color: null;
font-style: inherit;">False</span>, hovermode<span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">=</span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"closest"</span>,</span>
<span id="cb1-30">                     margin<span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">=</span><span class="bu" style="color: null;
background-color: null;
font-style: inherit;">dict</span>(l<span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">=</span><span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">0</span>, r<span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">=</span><span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">0</span>, t<span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">=</span><span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">0</span>, b<span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">=</span><span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">0</span>),</span>
<span id="cb1-31">                     xaxis<span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">=</span><span class="bu" style="color: null;
background-color: null;
font-style: inherit;">dict</span>(visible<span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">=</span><span class="va" style="color: #111111;
background-color: null;
font-style: inherit;">False</span>), yaxis<span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">=</span><span class="bu" style="color: null;
background-color: null;
font-style: inherit;">dict</span>(visible<span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">=</span><span class="va" style="color: #111111;
background-color: null;
font-style: inherit;">False</span>),</span>
<span id="cb1-32">                     paper_bgcolor<span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">=</span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"rgba(0,0,0,0)"</span>, plot_bgcolor<span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">=</span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"rgba(0,0,0,0)"</span>),</span>
<span id="cb1-33">)</span>
<span id="cb1-34">fig.show()</span></code></pre></div></div>
</details>
<div id="fig-karate" class="cell-output cell-output-display quarto-float quarto-figure quarto-figure-center anchored">
<figure class="quarto-float quarto-float-fig figure">
<div aria-describedby="fig-karate-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<div style="height:525px; width:100%;">            <script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/3.2.2/es5/tex-svg.min.js"></script><script>if (window.MathJax && window.MathJax.Hub && window.MathJax.Hub.Config) {window.MathJax.Hub.Config({SVG: {font: "STIX-Web"}});}</script>                <script>window.PlotlyConfig = {MathJaxConfig: 'local'};</script>
        <script charset="utf-8" src="https://cdn.plot.ly/plotly-4.1.1.min.js" integrity="sha256-O24V1F27f8pb0glCkelh3cVHLNiHAJ5gCaVtq2aNch8=" crossorigin="anonymous"></script>                <div id="e6ce8af6-97ec-4892-888d-defc3acdce7e" class="plotly-graph-div" style="height:100%; width:100%;"></div>            <script>                window.PLOTLYENV=window.PLOTLYENV || {};                                if (document.getElementById("e6ce8af6-97ec-4892-888d-defc3acdce7e")) {                    Plotly.newPlot(                        "e6ce8af6-97ec-4892-888d-defc3acdce7e",                        [{"hoverinfo":"skip","line":{"color":"#999","width":0.6},"mode":"lines","x":[-0.1637610156025021,-0.22110656624798736,null,-0.1637610156025021,-0.09674034041415447,null,-0.1637610156025021,-0.3591582159625228,null,-0.1637610156025021,-0.07229970678169054,null,-0.1637610156025021,-0.09717721706357874,null,-0.1637610156025021,-0.1947784244080323,null,-0.1637610156025021,-0.3251725240524693,null,-0.1637610156025021,-0.0011697920357091234,null,-0.1637610156025021,0.042837332459480335,null,-0.1637610156025021,-0.47044853515423185,null,-0.1637610156025021,-0.6315773706598862,null,-0.1637610156025021,-0.15233910119383867,null,-0.1637610156025021,-0.34898558904265237,null,-0.1637610156025021,0.03928628689562421,null,-0.1637610156025021,-0.46423812660329555,null,-0.1637610156025021,0.22244687101605135,null,-0.22110656624798736,-0.09674034041415447,null,-0.22110656624798736,-0.3591582159625228,null,-0.22110656624798736,-0.3251725240524693,null,-0.22110656624798736,-0.15233910119383867,null,-0.22110656624798736,-0.34898558904265237,null,-0.22110656624798736,0.03928628689562421,null,-0.22110656624798736,-0.46423812660329555,null,-0.22110656624798736,-0.10091807492123406,null,-0.09674034041415447,-0.3591582159625228,null,-0.09674034041415447,-0.3251725240524693,null,-0.09674034041415447,-0.0011697920357091234,null,-0.09674034041415447,0.004290475810724824,null,-0.09674034041415447,-0.15233910119383867,null,-0.09674034041415447,0.31286553761978536,null,-0.09674034041415447,0.025224740721732208,null,-0.09674034041415447,0.14500092919216684,null,-0.3591582159625228,-0.3251725240524693,null,-0.3591582159625228,-0.6315773706598862,null,-0.3591582159625228,-0.15233910119383867,null,-0.07229970678169054,-0.1947784244080323,null,-0.07229970678169054,0.042837332459480335,null,-0.09717721706357874,-0.1947784244080323,null,-0.09717721706357874,0.042837332459480335,null,-0.09717721706357874,-0.14049188351342506,null,-0.1947784244080323,-0.14049188351342506,null,-0.0011697920357091234,-0.10091807492123406,null,-0.0011697920357091234,0.14500092919216684,null,-0.0011697920357091234,0.1339631104349227,null,0.004290475810724824,0.1339631104349227,null,-0.15233910119383867,0.1339631104349227,null,0.30552515064095687,0.14500092919216684,null,0.30552515064095687,0.1339631104349227,null,-0.028298909250223627,0.14500092919216684,null,-0.028298909250223627,0.1339631104349227,null,0.2857217216627078,0.14500092919216684,null,0.2857217216627078,0.1339631104349227,null,0.03928628689562421,0.1339631104349227,null,0.11506086536418461,0.14500092919216684,null,0.11506086536418461,0.1339631104349227,null,-0.07550970574233766,0.14500092919216684,null,-0.07550970574233766,0.1339631104349227,null,0.34042142719841684,0.44187123403994266,null,0.34042142719841684,0.31286553761978536,null,0.34042142719841684,0.40722416495399316,null,0.34042142719841684,0.14500092919216684,null,0.34042142719841684,0.1339631104349227,null,0.581428589750548,0.44187123403994266,null,0.581428589750548,0.31286553761978536,null,0.581428589750548,0.22244687101605135,null,0.44187123403994266,0.22244687101605135,null,0.5410026608885361,0.40722416495399316,null,0.5410026608885361,0.1339631104349227,null,0.31286553761978536,0.1339631104349227,null,0.025224740721732208,0.22244687101605135,null,0.025224740721732208,0.1339631104349227,null,0.40722416495399316,0.14500092919216684,null,0.40722416495399316,0.1339631104349227,null,-0.10091807492123406,0.14500092919216684,null,-0.10091807492123406,0.1339631104349227,null,0.22244687101605135,0.14500092919216684,null,0.22244687101605135,0.1339631104349227,null,0.14500092919216684,0.1339631104349227,null],"y":[0.32964542107317624,0.15465314513942682,null,0.32964542107317624,-0.0037573560658175995,null,0.32964542107317624,0.1728032018032186,null,0.32964542107317624,0.6118299837698934,null,0.32964542107317624,0.751932396613453,null,0.32964542107317624,0.7423079030021026,null,0.32964542107317624,0.0742949529007427,null,0.32964542107317624,-0.10817287772994941,null,0.32964542107317624,0.6887719750394118,null,0.32964542107317624,0.5798729526476855,null,0.32964542107317624,0.24946302282839056,null,0.32964542107317624,0.041140927956493364,null,0.32964542107317624,0.5328400662671233,null,0.32964542107317624,0.20684603040975344,null,0.32964542107317624,0.35865653156837984,null,0.32964542107317624,-0.09337813605721001,null,0.15465314513942682,-0.0037573560658175995,null,0.15465314513942682,0.1728032018032186,null,0.15465314513942682,0.0742949529007427,null,0.15465314513942682,0.041140927956493364,null,0.15465314513942682,0.5328400662671233,null,0.15465314513942682,0.20684603040975344,null,0.15465314513942682,0.35865653156837984,null,0.15465314513942682,-0.23595984038361023,null,-0.0037573560658175995,0.1728032018032186,null,-0.0037573560658175995,0.0742949529007427,null,-0.0037573560658175995,-0.10817287772994941,null,-0.0037573560658175995,-0.5530221298693542,null,-0.0037573560658175995,0.041140927956493364,null,-0.0037573560658175995,-0.1580322192793705,null,-0.0037573560658175995,-0.21020612426204355,null,-0.0037573560658175995,-0.3868283900546997,null,0.1728032018032186,0.0742949529007427,null,0.1728032018032186,0.24946302282839056,null,0.1728032018032186,0.041140927956493364,null,0.6118299837698934,0.7423079030021026,null,0.6118299837698934,0.6887719750394118,null,0.751932396613453,0.7423079030021026,null,0.751932396613453,0.6887719750394118,null,0.751932396613453,1.0,null,0.7423079030021026,1.0,null,-0.10817287772994941,-0.23595984038361023,null,-0.10817287772994941,-0.3868283900546997,null,-0.10817287772994941,-0.3174502931789706,null,-0.5530221298693542,-0.3174502931789706,null,0.041140927956493364,-0.3174502931789706,null,-0.5971952387445756,-0.3868283900546997,null,-0.5971952387445756,-0.3174502931789706,null,-0.4732965857414292,-0.3868283900546997,null,-0.4732965857414292,-0.3174502931789706,null,-0.729561070874141,-0.3868283900546997,null,-0.729561070874141,-0.3174502931789706,null,0.20684603040975344,-0.3174502931789706,null,-0.7241738778220087,-0.3868283900546997,null,-0.7241738778220087,-0.3174502931789706,null,-0.6032909516752911,-0.3868283900546997,null,-0.6032909516752911,-0.3174502931789706,null,-0.3121094950798013,-0.12852017387518871,null,-0.3121094950798013,-0.1580322192793705,null,-0.3121094950798013,-0.4430701164729471,null,-0.3121094950798013,-0.3868283900546997,null,-0.3121094950798013,-0.3174502931789706,null,-0.10159916409318481,-0.12852017387518871,null,-0.10159916409318481,-0.1580322192793705,null,-0.10159916409318481,-0.09337813605721001,null,-0.12852017387518871,-0.09337813605721001,null,-0.31543446975966133,-0.4430701164729471,null,-0.31543446975966133,-0.3174502931789706,null,-0.1580322192793705,-0.3174502931789706,null,-0.21020612426204355,-0.09337813605721001,null,-0.21020612426204355,-0.3174502931789706,null,-0.4430701164729471,-0.3868283900546997,null,-0.4430701164729471,-0.3174502931789706,null,-0.23595984038361023,-0.3868283900546997,null,-0.23595984038361023,-0.3174502931789706,null,-0.09337813605721001,-0.3868283900546997,null,-0.09337813605721001,-0.3174502931789706,null,-0.3868283900546997,-0.3174502931789706,null],"type":"scatter"},{"hoverinfo":"text","marker":{"color":[0,0,0,0,0,0,0,0,0,1,0,0,0,0,1,1,0,0,1,0,1,0,1,1,1,1,1,1,1,1,1,1,1,1],"colorscale":[[0,"#2a78d6"],[1,"#e0712c"]],"size":[38,24,26,18,12,14,14,14,16,10,12,8,10,16,10,10,10,10,10,12,10,10,10,16,12,12,10,14,12,14,14,18,30,40]},"mode":"markers","text":["Node 0\u003cbr\u003eClub: Mr. Hi\u003cbr\u003eDegree: 16","Node 1\u003cbr\u003eClub: Mr. Hi\u003cbr\u003eDegree: 9","Node 2\u003cbr\u003eClub: Mr. Hi\u003cbr\u003eDegree: 10","Node 3\u003cbr\u003eClub: Mr. Hi\u003cbr\u003eDegree: 6","Node 4\u003cbr\u003eClub: Mr. Hi\u003cbr\u003eDegree: 3","Node 5\u003cbr\u003eClub: Mr. Hi\u003cbr\u003eDegree: 4","Node 6\u003cbr\u003eClub: Mr. Hi\u003cbr\u003eDegree: 4","Node 7\u003cbr\u003eClub: Mr. Hi\u003cbr\u003eDegree: 4","Node 8\u003cbr\u003eClub: Mr. Hi\u003cbr\u003eDegree: 5","Node 9\u003cbr\u003eClub: Officer\u003cbr\u003eDegree: 2","Node 10\u003cbr\u003eClub: Mr. Hi\u003cbr\u003eDegree: 3","Node 11\u003cbr\u003eClub: Mr. Hi\u003cbr\u003eDegree: 1","Node 12\u003cbr\u003eClub: Mr. Hi\u003cbr\u003eDegree: 2","Node 13\u003cbr\u003eClub: Mr. Hi\u003cbr\u003eDegree: 5","Node 14\u003cbr\u003eClub: Officer\u003cbr\u003eDegree: 2","Node 15\u003cbr\u003eClub: Officer\u003cbr\u003eDegree: 2","Node 16\u003cbr\u003eClub: Mr. Hi\u003cbr\u003eDegree: 2","Node 17\u003cbr\u003eClub: Mr. Hi\u003cbr\u003eDegree: 2","Node 18\u003cbr\u003eClub: Officer\u003cbr\u003eDegree: 2","Node 19\u003cbr\u003eClub: Mr. Hi\u003cbr\u003eDegree: 3","Node 20\u003cbr\u003eClub: Officer\u003cbr\u003eDegree: 2","Node 21\u003cbr\u003eClub: Mr. Hi\u003cbr\u003eDegree: 2","Node 22\u003cbr\u003eClub: Officer\u003cbr\u003eDegree: 2","Node 23\u003cbr\u003eClub: Officer\u003cbr\u003eDegree: 5","Node 24\u003cbr\u003eClub: Officer\u003cbr\u003eDegree: 3","Node 25\u003cbr\u003eClub: Officer\u003cbr\u003eDegree: 3","Node 26\u003cbr\u003eClub: Officer\u003cbr\u003eDegree: 2","Node 27\u003cbr\u003eClub: Officer\u003cbr\u003eDegree: 4","Node 28\u003cbr\u003eClub: Officer\u003cbr\u003eDegree: 3","Node 29\u003cbr\u003eClub: Officer\u003cbr\u003eDegree: 4","Node 30\u003cbr\u003eClub: Officer\u003cbr\u003eDegree: 4","Node 31\u003cbr\u003eClub: Officer\u003cbr\u003eDegree: 6","Node 32\u003cbr\u003eClub: Officer\u003cbr\u003eDegree: 12","Node 33\u003cbr\u003eClub: Officer\u003cbr\u003eDegree: 17"],"x":[-0.1637610156025021,-0.22110656624798736,-0.09674034041415447,-0.3591582159625228,-0.07229970678169054,-0.09717721706357874,-0.1947784244080323,-0.3251725240524693,-0.0011697920357091234,0.004290475810724824,0.042837332459480335,-0.47044853515423185,-0.6315773706598862,-0.15233910119383867,0.30552515064095687,-0.028298909250223627,-0.14049188351342506,-0.34898558904265237,0.2857217216627078,0.03928628689562421,0.11506086536418461,-0.46423812660329555,-0.07550970574233766,0.34042142719841684,0.581428589750548,0.44187123403994266,0.5410026608885361,0.31286553761978536,0.025224740721732208,0.40722416495399316,-0.10091807492123406,0.22244687101605135,0.14500092919216684,0.1339631104349227],"y":[0.32964542107317624,0.15465314513942682,-0.0037573560658175995,0.1728032018032186,0.6118299837698934,0.751932396613453,0.7423079030021026,0.0742949529007427,-0.10817287772994941,-0.5530221298693542,0.6887719750394118,0.5798729526476855,0.24946302282839056,0.041140927956493364,-0.5971952387445756,-0.4732965857414292,1.0,0.5328400662671233,-0.729561070874141,0.20684603040975344,-0.7241738778220087,0.35865653156837984,-0.6032909516752911,-0.3121094950798013,-0.10159916409318481,-0.12852017387518871,-0.31543446975966133,-0.1580322192793705,-0.21020612426204355,-0.4430701164729471,-0.23595984038361023,-0.09337813605721001,-0.3868283900546997,-0.3174502931789706],"type":"scatter"}],                        {"hovermode":"closest","margin":{"b":0,"l":0,"r":0,"t":0},"paper_bgcolor":"rgba(0,0,0,0)","plot_bgcolor":"rgba(0,0,0,0)","showlegend":false,"xaxis":{"visible":false},"yaxis":{"visible":false},"template":{"data":{"histogram2dcontour":[{"type":"histogram2dcontour","colorbar":{"outlinewidth":0,"ticks":""},"colorscale":[[0.0,"#0d0887"],[0.1111111111111111,"#46039f"],[0.2222222222222222,"#7201a8"],[0.3333333333333333,"#9c179e"],[0.4444444444444444,"#bd3786"],[0.5555555555555556,"#d8576b"],[0.6666666666666666,"#ed7953"],[0.7777777777777778,"#fb9f3a"],[0.8888888888888888,"#fdca26"],[1.0,"#f0f921"]]}],"choropleth":[{"type":"choropleth","colorbar":{"outlinewidth":0,"ticks":""}}],"histogram2d":[{"type":"histogram2d","colorbar":{"outlinewidth":0,"ticks":""},"colorscale":[[0.0,"#0d0887"],[0.1111111111111111,"#46039f"],[0.2222222222222222,"#7201a8"],[0.3333333333333333,"#9c179e"],[0.4444444444444444,"#bd3786"],[0.5555555555555556,"#d8576b"],[0.6666666666666666,"#ed7953"],[0.7777777777777778,"#fb9f3a"],[0.8888888888888888,"#fdca26"],[1.0,"#f0f921"]]}],"heatmap":[{"type":"heatmap","colorbar":{"outlinewidth":0,"ticks":""},"colorscale":[[0.0,"#0d0887"],[0.1111111111111111,"#46039f"],[0.2222222222222222,"#7201a8"],[0.3333333333333333,"#9c179e"],[0.4444444444444444,"#bd3786"],[0.5555555555555556,"#d8576b"],[0.6666666666666666,"#ed7953"],[0.7777777777777778,"#fb9f3a"],[0.8888888888888888,"#fdca26"],[1.0,"#f0f921"]]}],"contourcarpet":[{"type":"contourcarpet","colorbar":{"outlinewidth":0,"ticks":""}}],"contour":[{"type":"contour","colorbar":{"outlinewidth":0,"ticks":""},"colorscale":[[0.0,"#0d0887"],[0.1111111111111111,"#46039f"],[0.2222222222222222,"#7201a8"],[0.3333333333333333,"#9c179e"],[0.4444444444444444,"#bd3786"],[0.5555555555555556,"#d8576b"],[0.6666666666666666,"#ed7953"],[0.7777777777777778,"#fb9f3a"],[0.8888888888888888,"#fdca26"],[1.0,"#f0f921"]]}],"surface":[{"type":"surface","colorbar":{"outlinewidth":0,"ticks":""},"colorscale":[[0.0,"#0d0887"],[0.1111111111111111,"#46039f"],[0.2222222222222222,"#7201a8"],[0.3333333333333333,"#9c179e"],[0.4444444444444444,"#bd3786"],[0.5555555555555556,"#d8576b"],[0.6666666666666666,"#ed7953"],[0.7777777777777778,"#fb9f3a"],[0.8888888888888888,"#fdca26"],[1.0,"#f0f921"]]}],"mesh3d":[{"type":"mesh3d","colorbar":{"outlinewidth":0,"ticks":""}}],"scatter":[{"fillpattern":{"fillmode":"overlay","size":10,"solidity":0.2},"type":"scatter"}],"parcoords":[{"type":"parcoords","line":{"colorbar":{"outlinewidth":0,"ticks":""}}}],"scatterpolargl":[{"type":"scatterpolargl","marker":{"colorbar":{"outlinewidth":0,"ticks":""}}}],"bar":[{"error_x":{"color":"#2a3f5f"},"error_y":{"color":"#2a3f5f"},"marker":{"line":{"color":"#E5ECF6","width":0.5},"pattern":{"fillmode":"overlay","size":10,"solidity":0.2}},"type":"bar"}],"scattergeo":[{"type":"scattergeo","marker":{"colorbar":{"outlinewidth":0,"ticks":""}}}],"scatterpolar":[{"type":"scatterpolar","marker":{"colorbar":{"outlinewidth":0,"ticks":""}}}],"histogram":[{"marker":{"pattern":{"fillmode":"overlay","size":10,"solidity":0.2}},"type":"histogram"}],"scattergl":[{"type":"scattergl","marker":{"colorbar":{"outlinewidth":0,"ticks":""}}}],"scatter3d":[{"type":"scatter3d","line":{"colorbar":{"outlinewidth":0,"ticks":""}},"marker":{"colorbar":{"outlinewidth":0,"ticks":""}}}],"scattermap":[{"type":"scattermap","marker":{"colorbar":{"outlinewidth":0,"ticks":""}}}],"scatterternary":[{"type":"scatterternary","marker":{"colorbar":{"outlinewidth":0,"ticks":""}}}],"scattercarpet":[{"type":"scattercarpet","marker":{"colorbar":{"outlinewidth":0,"ticks":""}}}],"carpet":[{"aaxis":{"endlinecolor":"#2a3f5f","gridcolor":"white","linecolor":"white","minorgridcolor":"white","startlinecolor":"#2a3f5f"},"baxis":{"endlinecolor":"#2a3f5f","gridcolor":"white","linecolor":"white","minorgridcolor":"white","startlinecolor":"#2a3f5f"},"type":"carpet"}],"table":[{"cells":{"fill":{"color":"#EBF0F8"},"line":{"color":"white"}},"header":{"fill":{"color":"#C8D4E3"},"line":{"color":"white"}},"type":"table"}],"barpolar":[{"marker":{"line":{"color":"#E5ECF6","width":0.5},"pattern":{"fillmode":"overlay","size":10,"solidity":0.2}},"type":"barpolar"}],"pie":[{"automargin":true,"type":"pie"}]},"layout":{"autotypenumbers":"strict","colorway":["#636efa","#EF553B","#00cc96","#ab63fa","#FFA15A","#19d3f3","#FF6692","#B6E880","#FF97FF","#FECB52"],"font":{"color":"#2a3f5f"},"hovermode":"closest","hoverlabel":{"align":"left"},"paper_bgcolor":"white","plot_bgcolor":"#E5ECF6","polar":{"bgcolor":"#E5ECF6","angularaxis":{"gridcolor":"white","linecolor":"white","ticks":""},"radialaxis":{"gridcolor":"white","linecolor":"white","ticks":""}},"ternary":{"bgcolor":"#E5ECF6","aaxis":{"gridcolor":"white","linecolor":"white","ticks":""},"baxis":{"gridcolor":"white","linecolor":"white","ticks":""},"caxis":{"gridcolor":"white","linecolor":"white","ticks":""}},"coloraxis":{"colorbar":{"outlinewidth":0,"ticks":""}},"colorscale":{"sequential":[[0.0,"#0d0887"],[0.1111111111111111,"#46039f"],[0.2222222222222222,"#7201a8"],[0.3333333333333333,"#9c179e"],[0.4444444444444444,"#bd3786"],[0.5555555555555556,"#d8576b"],[0.6666666666666666,"#ed7953"],[0.7777777777777778,"#fb9f3a"],[0.8888888888888888,"#fdca26"],[1.0,"#f0f921"]],"sequentialminus":[[0.0,"#0d0887"],[0.1111111111111111,"#46039f"],[0.2222222222222222,"#7201a8"],[0.3333333333333333,"#9c179e"],[0.4444444444444444,"#bd3786"],[0.5555555555555556,"#d8576b"],[0.6666666666666666,"#ed7953"],[0.7777777777777778,"#fb9f3a"],[0.8888888888888888,"#fdca26"],[1.0,"#f0f921"]],"diverging":[[0,"#8e0152"],[0.1,"#c51b7d"],[0.2,"#de77ae"],[0.3,"#f1b6da"],[0.4,"#fde0ef"],[0.5,"#f7f7f7"],[0.6,"#e6f5d0"],[0.7,"#b8e186"],[0.8,"#7fbc41"],[0.9,"#4d9221"],[1,"#276419"]]},"xaxis":{"gridcolor":"white","linecolor":"white","ticks":"","title":{"standoff":15},"zerolinecolor":"white","automargin":true,"zerolinewidth":2},"yaxis":{"gridcolor":"white","linecolor":"white","ticks":"","title":{"standoff":15},"zerolinecolor":"white","automargin":true,"zerolinewidth":2},"scene":{"xaxis":{"backgroundcolor":"#E5ECF6","gridcolor":"white","linecolor":"white","showbackground":true,"ticks":"","zerolinecolor":"white","gridwidth":2},"yaxis":{"backgroundcolor":"#E5ECF6","gridcolor":"white","linecolor":"white","showbackground":true,"ticks":"","zerolinecolor":"white","gridwidth":2},"zaxis":{"backgroundcolor":"#E5ECF6","gridcolor":"white","linecolor":"white","showbackground":true,"ticks":"","zerolinecolor":"white","gridwidth":2}},"shapedefaults":{"line":{"color":"#2a3f5f"}},"annotationdefaults":{"arrowcolor":"#2a3f5f","arrowhead":0,"arrowwidth":1},"geo":{"bgcolor":"white","landcolor":"#E5ECF6","subunitcolor":"white","showland":true,"showlakes":true,"lakecolor":"white"},"title":{"x":0.05},"margin":{"b":0,"l":0,"r":0,"t":30}}}},                        {"responsive": true}                    ).then(function(){
                            
var gd = document.getElementById('e6ce8af6-97ec-4892-888d-defc3acdce7e');
var x = new MutationObserver(function (mutations, observer) {{
        var display = window.getComputedStyle(gd).display;
        if (!display || display === 'none') {{
            console.log([gd, 'removed!']);
            Plotly.purge(gd);
            observer.disconnect();
        }}
}});

// Listen for the removal of the full notebook cells
var notebookContainer = gd.closest('#notebook-container');
if (notebookContainer) {{
    x.observe(notebookContainer, {childList: true});
}}

// Listen for the clearing of the current output cell
var outputEl = gd.closest('.output');
if (outputEl) {{
    x.observe(outputEl, {childList: true});
}}

                        })                };            </script>        </div>
</div>
<figcaption class="quarto-float-caption-bottom quarto-float-caption quarto-float-fig" id="fig-karate-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
Figure&nbsp;1: Zachary’s karate club, coloured by faction. Hover a node for details.
</figcaption>
</figure>
</div>
</div>
<p>The graph has 34 nodes and 78 edges.</p>
<p>For live data from Neo4j, see the <a href="https://graphs.dynanet.dev">Graph Explorer</a>.</p>



 ]]></description>
  <category>networkx</category>
  <category>example</category>
  <guid>https://dynanet.dev/posts/2026-10-04-hello-networks/</guid>
  <pubDate>Sun, 04 Oct 2026 00:00:00 GMT</pubDate>
</item>
</channel>
</rss>
