Skip to content

Commit

Permalink
rerender svgs.
Browse files Browse the repository at this point in the history
  • Loading branch information
michelp committed Dec 15, 2019
1 parent bfacf1c commit 97efc72
Show file tree
Hide file tree
Showing 6 changed files with 1,341 additions and 1,345 deletions.
252 changes: 126 additions & 126 deletions pygraphblas/demo/BetweenessCentrality.ipynb

Large diffs are not rendered by default.

2,087 changes: 1,043 additions & 1,044 deletions pygraphblas/demo/Introduction to GraphBLAS with Python.ipynb

Large diffs are not rendered by default.

208 changes: 104 additions & 104 deletions pygraphblas/demo/K-Truss.ipynb

Large diffs are not rendered by default.

106 changes: 53 additions & 53 deletions pygraphblas/demo/PageRank.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
},
{
"cell_type": "code",
"execution_count": 7,
"execution_count": 4,
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -39,7 +39,7 @@
},
{
"cell_type": "code",
"execution_count": 8,
"execution_count": 5,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -48,7 +48,7 @@
},
{
"cell_type": "code",
"execution_count": 9,
"execution_count": 6,
"metadata": {},
"outputs": [
{
Expand All @@ -60,151 +60,151 @@
"<!-- Generated by graphviz version 2.42.3 (20191010.1750)\n",
" -->\n",
"<!-- Title: %3 Pages: 1 -->\n",
"<svg width=\"605pt\" height=\"202pt\"\n",
" viewBox=\"0.00 0.00 605.50 201.76\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\">\n",
"<g id=\"graph0\" class=\"graph\" transform=\"scale(1 1) rotate(0) translate(4 197.76)\">\n",
"<svg width=\"644pt\" height=\"206pt\"\n",
" viewBox=\"0.00 0.00 644.42 205.76\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\">\n",
"<g id=\"graph0\" class=\"graph\" transform=\"scale(1 1) rotate(0) translate(4 201.76)\">\n",
"<title>%3</title>\n",
"<polygon fill=\"white\" stroke=\"transparent\" points=\"-4,4 -4,-197.76 601.5,-197.76 601.5,4 -4,4\"/>\n",
"<polygon fill=\"white\" stroke=\"transparent\" points=\"-4,4 -4,-201.76 640.42,-201.76 640.42,4 -4,4\"/>\n",
"<!-- 0 -->\n",
"<g id=\"node1\" class=\"node\">\n",
"<title>0</title>\n",
"<ellipse fill=\"none\" stroke=\"black\" cx=\"32.5\" cy=\"-131.26\" rx=\"32.5\" ry=\"32.5\"/>\n",
"<text text-anchor=\"middle\" x=\"32.5\" y=\"-127.56\" font-family=\"Times,serif\" font-size=\"14.00\">0.9</text>\n",
"<ellipse fill=\"none\" stroke=\"black\" cx=\"34.5\" cy=\"-135.26\" rx=\"34.5\" ry=\"34.5\"/>\n",
"<text text-anchor=\"middle\" x=\"34.5\" y=\"-131.56\" font-family=\"Times,serif\" font-size=\"14.00\">0.957</text>\n",
"</g>\n",
"<!-- 1 -->\n",
"<g id=\"node2\" class=\"node\">\n",
"<title>1</title>\n",
"<ellipse fill=\"none\" stroke=\"black\" cx=\"161.75\" cy=\"-72.26\" rx=\"21.5\" ry=\"21.5\"/>\n",
"<text text-anchor=\"middle\" x=\"161.75\" y=\"-68.56\" font-family=\"Times,serif\" font-size=\"14.00\">0.6</text>\n",
"<ellipse fill=\"none\" stroke=\"black\" cx=\"176.36\" cy=\"-74.26\" rx=\"28.84\" ry=\"23.5\"/>\n",
"<text text-anchor=\"middle\" x=\"176.36\" y=\"-70.56\" font-family=\"Times,serif\" font-size=\"14.00\">0.657</text>\n",
"</g>\n",
"<!-- 0&#45;&gt;1 -->\n",
"<g id=\"edge1\" class=\"edge\">\n",
"<title>0&#45;&gt;1</title>\n",
"<path fill=\"none\" stroke=\"black\" d=\"M62.37,-117.88C83.39,-108.13 111.7,-95 132.56,-85.33\"/>\n",
"<polygon fill=\"black\" stroke=\"black\" points=\"134.25,-88.41 141.85,-81.03 131.3,-82.06 134.25,-88.41\"/>\n",
"<path fill=\"none\" stroke=\"black\" d=\"M66.54,-121.73C88.65,-112.08 118.36,-99.12 141.16,-89.18\"/>\n",
"<polygon fill=\"black\" stroke=\"black\" points=\"142.69,-92.33 150.46,-85.12 139.89,-85.91 142.69,-92.33\"/>\n",
"</g>\n",
"<!-- 4 -->\n",
"<g id=\"node3\" class=\"node\">\n",
"<title>4</title>\n",
"<ellipse fill=\"none\" stroke=\"black\" cx=\"291\" cy=\"-117.26\" rx=\"32.5\" ry=\"32.5\"/>\n",
"<text text-anchor=\"middle\" x=\"291\" y=\"-113.56\" font-family=\"Times,serif\" font-size=\"14.00\">1.5</text>\n",
"<ellipse fill=\"none\" stroke=\"black\" cx=\"318.21\" cy=\"-119.26\" rx=\"34.5\" ry=\"34.5\"/>\n",
"<text text-anchor=\"middle\" x=\"318.21\" y=\"-115.56\" font-family=\"Times,serif\" font-size=\"14.00\">1.557</text>\n",
"</g>\n",
"<!-- 0&#45;&gt;4 -->\n",
"<g id=\"edge2\" class=\"edge\">\n",
"<title>0&#45;&gt;4</title>\n",
"<path fill=\"none\" stroke=\"black\" d=\"M64.44,-124.99C110.44,-119.79 196.95,-114.88 248.43,-114.4\"/>\n",
"<polygon fill=\"black\" stroke=\"black\" points=\"248.56,-117.9 258.55,-114.37 248.53,-110.9 248.56,-117.9\"/>\n",
"<path fill=\"none\" stroke=\"black\" d=\"M68.64,-128.84C119.58,-123.18 217.13,-117.47 273.69,-116.69\"/>\n",
"<polygon fill=\"black\" stroke=\"black\" points=\"273.79,-120.19 283.76,-116.61 273.73,-113.19 273.79,-120.19\"/>\n",
"</g>\n",
"<!-- 1&#45;&gt;4 -->\n",
"<g id=\"edge4\" class=\"edge\">\n",
"<title>1&#45;&gt;4</title>\n",
"<path fill=\"none\" stroke=\"black\" d=\"M182.35,-79.2C200.45,-85.6 227.87,-95.29 250.5,-103.3\"/>\n",
"<polygon fill=\"black\" stroke=\"black\" points=\"249.59,-106.69 260.19,-106.72 251.93,-100.09 249.59,-106.69\"/>\n",
"<path fill=\"none\" stroke=\"black\" d=\"M203.33,-82.62C223.59,-89.14 252.11,-98.32 275.54,-105.86\"/>\n",
"<polygon fill=\"black\" stroke=\"black\" points=\"274.64,-109.24 285.23,-108.97 276.79,-102.58 274.64,-109.24\"/>\n",
"</g>\n",
"<!-- 3 -->\n",
"<g id=\"node4\" class=\"node\">\n",
"<title>3</title>\n",
"<ellipse fill=\"none\" stroke=\"black\" cx=\"428\" cy=\"-56.26\" rx=\"25\" ry=\"16.03\"/>\n",
"<text text-anchor=\"middle\" x=\"428\" y=\"-52.56\" font-family=\"Times,serif\" font-size=\"14.00\">1.2</text>\n",
"<ellipse fill=\"none\" stroke=\"black\" cx=\"460.07\" cy=\"-56.26\" rx=\"35.21\" ry=\"16.03\"/>\n",
"<text text-anchor=\"middle\" x=\"460.07\" y=\"-52.56\" font-family=\"Times,serif\" font-size=\"14.00\">1.257</text>\n",
"</g>\n",
"<!-- 1&#45;&gt;3 -->\n",
"<g id=\"edge3\" class=\"edge\">\n",
"<title>1&#45;&gt;3</title>\n",
"<path fill=\"none\" stroke=\"black\" d=\"M183.48,-71.01C228.86,-68.26 337.34,-61.69 392.92,-58.33\"/>\n",
"<polygon fill=\"black\" stroke=\"black\" points=\"393.2,-61.82 402.97,-57.72 392.78,-54.83 393.2,-61.82\"/>\n",
"<path fill=\"none\" stroke=\"black\" d=\"M205.14,-72.49C254.11,-69.36 356.17,-62.84 414.89,-59.09\"/>\n",
"<polygon fill=\"black\" stroke=\"black\" points=\"415.23,-62.57 424.98,-58.44 414.78,-55.59 415.23,-62.57\"/>\n",
"</g>\n",
"<!-- 4&#45;&gt;0 -->\n",
"<g id=\"edge7\" class=\"edge\">\n",
"<title>4&#45;&gt;0</title>\n",
"<path fill=\"none\" stroke=\"black\" d=\"M259.09,-123.53C213.1,-128.74 126.56,-133.64 75.07,-134.13\"/>\n",
"<polygon fill=\"black\" stroke=\"black\" points=\"74.94,-130.63 64.95,-134.16 74.96,-137.63 74.94,-130.63\"/>\n",
"<path fill=\"none\" stroke=\"black\" d=\"M284.27,-125.66C233.38,-131.33 135.63,-137.06 79,-137.83\"/>\n",
"<polygon fill=\"black\" stroke=\"black\" points=\"78.89,-134.33 68.92,-137.92 78.95,-141.33 78.89,-134.33\"/>\n",
"</g>\n",
"<!-- 4&#45;&gt;3 -->\n",
"<g id=\"edge9\" class=\"edge\">\n",
"<title>4&#45;&gt;3</title>\n",
"<path fill=\"none\" stroke=\"black\" d=\"M320.96,-104.18C343.74,-93.89 375.32,-79.61 398.08,-69.33\"/>\n",
"<polygon fill=\"black\" stroke=\"black\" points=\"399.58,-72.49 407.25,-65.19 396.7,-66.11 399.58,-72.49\"/>\n",
"<path fill=\"none\" stroke=\"black\" d=\"M349.9,-105.44C371.99,-95.49 401.81,-82.05 424.7,-71.74\"/>\n",
"<polygon fill=\"black\" stroke=\"black\" points=\"426.36,-74.83 434.04,-67.54 423.49,-68.45 426.36,-74.83\"/>\n",
"</g>\n",
"<!-- 2 -->\n",
"<g id=\"node5\" class=\"node\">\n",
"<title>2</title>\n",
"<ellipse fill=\"none\" stroke=\"black\" cx=\"565\" cy=\"-130.26\" rx=\"32.5\" ry=\"32.5\"/>\n",
"<text text-anchor=\"middle\" x=\"565\" y=\"-126.56\" font-family=\"Times,serif\" font-size=\"14.00\">1.2</text>\n",
"<ellipse fill=\"none\" stroke=\"black\" cx=\"601.92\" cy=\"-131.26\" rx=\"34.5\" ry=\"34.5\"/>\n",
"<text text-anchor=\"middle\" x=\"601.92\" y=\"-127.56\" font-family=\"Times,serif\" font-size=\"14.00\">1.257</text>\n",
"</g>\n",
"<!-- 4&#45;&gt;2 -->\n",
"<g id=\"edge8\" class=\"edge\">\n",
"<title>4&#45;&gt;2</title>\n",
"<path fill=\"none\" stroke=\"black\" d=\"M323.7,-117.09C357.59,-117.07 412.88,-117.54 460.5,-120.26 480.87,-121.43 503.44,-123.51 522.29,-125.48\"/>\n",
"<polygon fill=\"black\" stroke=\"black\" points=\"522.02,-128.97 532.34,-126.55 522.77,-122.01 522.02,-128.97\"/>\n",
"<path fill=\"none\" stroke=\"black\" d=\"M353.02,-118.47C388.52,-117.87 445.94,-117.55 495.42,-120.26 515.75,-121.38 538.19,-123.58 557.13,-125.72\"/>\n",
"<polygon fill=\"black\" stroke=\"black\" points=\"556.92,-129.22 567.25,-126.9 557.73,-122.27 556.92,-129.22\"/>\n",
"</g>\n",
"<!-- 6 -->\n",
"<g id=\"node6\" class=\"node\">\n",
"<title>6</title>\n",
"<ellipse fill=\"none\" stroke=\"black\" cx=\"428\" cy=\"-161.26\" rx=\"32.5\" ry=\"32.5\"/>\n",
"<text text-anchor=\"middle\" x=\"428\" y=\"-157.56\" font-family=\"Times,serif\" font-size=\"14.00\">0.9</text>\n",
"<ellipse fill=\"none\" stroke=\"black\" cx=\"460.07\" cy=\"-163.26\" rx=\"34.5\" ry=\"34.5\"/>\n",
"<text text-anchor=\"middle\" x=\"460.07\" y=\"-159.56\" font-family=\"Times,serif\" font-size=\"14.00\">0.957</text>\n",
"</g>\n",
"<!-- 4&#45;&gt;6 -->\n",
"<g id=\"edge10\" class=\"edge\">\n",
"<title>4&#45;&gt;6</title>\n",
"<path fill=\"none\" stroke=\"black\" d=\"M323.31,-121.67C342.94,-126.92 368.38,-135.1 389.14,-142.79\"/>\n",
"<polygon fill=\"black\" stroke=\"black\" points=\"388.02,-146.11 398.61,-146.39 390.51,-139.57 388.02,-146.11\"/>\n",
"<path fill=\"none\" stroke=\"black\" d=\"M352.71,-123.94C372.66,-129.15 398.1,-137.05 419.1,-144.52\"/>\n",
"<polygon fill=\"black\" stroke=\"black\" points=\"418.11,-147.89 428.7,-148.03 420.51,-141.31 418.11,-147.89\"/>\n",
"</g>\n",
"<!-- 3&#45;&gt;2 -->\n",
"<g id=\"edge6\" class=\"edge\">\n",
"<title>3&#45;&gt;2</title>\n",
"<path fill=\"none\" stroke=\"black\" d=\"M447.49,-66.4C467.96,-77.62 501.5,-96 527.34,-110.17\"/>\n",
"<polygon fill=\"black\" stroke=\"black\" points=\"525.68,-113.25 536.13,-114.99 529.04,-107.11 525.68,-113.25\"/>\n",
"<path fill=\"none\" stroke=\"black\" d=\"M483.85,-68.48C505.01,-79.83 536.96,-96.96 562.14,-110.46\"/>\n",
"<polygon fill=\"black\" stroke=\"black\" points=\"560.61,-113.62 571.07,-115.26 563.92,-107.45 560.61,-113.62\"/>\n",
"</g>\n",
"<!-- 2&#45;&gt;6 -->\n",
"<g id=\"edge5\" class=\"edge\">\n",
"<title>2&#45;&gt;6</title>\n",
"<path fill=\"none\" stroke=\"black\" d=\"M534.85,-142.63C516.06,-148.13 491.34,-154.01 470.52,-158.01\"/>\n",
"<polygon fill=\"black\" stroke=\"black\" points=\"469.86,-154.58 460.65,-159.82 471.12,-161.46 469.86,-154.58\"/>\n",
"<path fill=\"none\" stroke=\"black\" d=\"M569.61,-144.16C550.44,-149.68 525.63,-155.54 504.56,-159.61\"/>\n",
"<polygon fill=\"black\" stroke=\"black\" points=\"503.76,-156.2 494.56,-161.46 505.03,-163.08 503.76,-156.2\"/>\n",
"</g>\n",
"<!-- 6&#45;&gt;0 -->\n",
"<g id=\"edge13\" class=\"edge\">\n",
"<title>6&#45;&gt;0</title>\n",
"<path fill=\"none\" stroke=\"black\" d=\"M395.29,-161.7C361.4,-161.98 306.11,-161.89 258.5,-159.26 204.32,-156.27 190.83,-154.08 137,-147.26 116.45,-144.66 93.7,-141.21 74.77,-138.18\"/>\n",
"<polygon fill=\"black\" stroke=\"black\" points=\"75.12,-134.69 64.69,-136.54 74,-141.6 75.12,-134.69\"/>\n",
"<path fill=\"none\" stroke=\"black\" d=\"M425.43,-164.17C390.11,-164.91 332.98,-165.5 283.71,-163.26 220.09,-160.37 204.26,-157.64 141,-150.26 120.44,-147.87 97.7,-144.7 78.61,-141.89\"/>\n",
"<polygon fill=\"black\" stroke=\"black\" points=\"79.11,-138.43 68.71,-140.42 78.08,-145.35 79.11,-138.43\"/>\n",
"</g>\n",
"<!-- 6&#45;&gt;4 -->\n",
"<g id=\"edge15\" class=\"edge\">\n",
"<title>6&#45;&gt;4</title>\n",
"<path fill=\"none\" stroke=\"black\" d=\"M395.43,-156.79C375.79,-151.52 350.43,-143.36 329.74,-135.69\"/>\n",
"<polygon fill=\"black\" stroke=\"black\" points=\"330.89,-132.39 320.3,-132.1 328.4,-138.93 330.89,-132.39\"/>\n",
"<path fill=\"none\" stroke=\"black\" d=\"M425.84,-158.66C405.86,-153.46 380.29,-145.52 359.2,-138.01\"/>\n",
"<polygon fill=\"black\" stroke=\"black\" points=\"360.15,-134.63 349.56,-134.49 357.75,-141.21 360.15,-134.63\"/>\n",
"</g>\n",
"<!-- 6&#45;&gt;2 -->\n",
"<g id=\"edge14\" class=\"edge\">\n",
"<title>6&#45;&gt;2</title>\n",
"<path fill=\"none\" stroke=\"black\" d=\"M458.29,-148.86C477.08,-143.36 501.77,-137.49 522.56,-133.5\"/>\n",
"<polygon fill=\"black\" stroke=\"black\" points=\"523.2,-136.94 532.41,-131.7 521.94,-130.05 523.2,-136.94\"/>\n",
"<path fill=\"none\" stroke=\"black\" d=\"M492.1,-150.44C511.19,-144.94 535.95,-139.08 557.02,-134.99\"/>\n",
"<polygon fill=\"black\" stroke=\"black\" points=\"557.84,-138.4 567.03,-133.14 556.56,-131.52 557.84,-138.4\"/>\n",
"</g>\n",
"<!-- 5 -->\n",
"<g id=\"node7\" class=\"node\">\n",
"<title>5</title>\n",
"<ellipse fill=\"none\" stroke=\"black\" cx=\"161.75\" cy=\"-16.26\" rx=\"25\" ry=\"16.03\"/>\n",
"<text text-anchor=\"middle\" x=\"161.75\" y=\"-12.56\" font-family=\"Times,serif\" font-size=\"14.00\">0.3</text>\n",
"<ellipse fill=\"none\" stroke=\"black\" cx=\"176.36\" cy=\"-16.26\" rx=\"35.21\" ry=\"16.03\"/>\n",
"<text text-anchor=\"middle\" x=\"176.36\" y=\"-12.56\" font-family=\"Times,serif\" font-size=\"14.00\">0.357</text>\n",
"</g>\n",
"<!-- 5&#45;&gt;4 -->\n",
"<g id=\"edge12\" class=\"edge\">\n",
"<title>5&#45;&gt;4</title>\n",
"<path fill=\"none\" stroke=\"black\" d=\"M178.35,-28.65C197.87,-44.14 231.82,-71.08 257.17,-91.21\"/>\n",
"<polygon fill=\"black\" stroke=\"black\" points=\"255.06,-94 265.07,-97.47 259.41,-88.52 255.06,-94\"/>\n",
"<path fill=\"none\" stroke=\"black\" d=\"M195.93,-29.94C217.74,-46.01 254.43,-73.02 281.75,-93.15\"/>\n",
"<polygon fill=\"black\" stroke=\"black\" points=\"279.77,-96.04 289.9,-99.15 283.92,-90.4 279.77,-96.04\"/>\n",
"</g>\n",
"<!-- 5&#45;&gt;3 -->\n",
"<g id=\"edge11\" class=\"edge\">\n",
"<title>5&#45;&gt;3</title>\n",
"<path fill=\"none\" stroke=\"black\" d=\"M186.2,-19.81C233.21,-26.93 339.12,-42.96 393.45,-51.19\"/>\n",
"<polygon fill=\"black\" stroke=\"black\" points=\"393.19,-54.69 403.6,-52.72 394.24,-47.76 393.19,-54.69\"/>\n",
"<path fill=\"none\" stroke=\"black\" d=\"M210.5,-20.97C261.57,-28.22 359.51,-42.13 416,-50.15\"/>\n",
"<polygon fill=\"black\" stroke=\"black\" points=\"415.66,-53.63 426.05,-51.58 416.64,-46.7 415.66,-53.63\"/>\n",
"</g>\n",
"</g>\n",
"</svg>\n"
],
"text/plain": [
"<graphviz.dot.Digraph at 0x7f83397ab908>"
"<graphviz.dot.Digraph at 0x7fb1dc09beb8>"
]
},
"execution_count": 9,
"execution_count": 6,
"metadata": {},
"output_type": "execute_result"
}
Expand Down
31 changes: 14 additions & 17 deletions pygraphblas/demo/Triangle_Counting.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
},
{
"cell_type": "code",
"execution_count": 33,
"execution_count": 1,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -20,7 +20,7 @@
},
{
"cell_type": "code",
"execution_count": 34,
"execution_count": 2,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -29,7 +29,7 @@
},
{
"cell_type": "code",
"execution_count": 35,
"execution_count": 3,
"metadata": {},
"outputs": [
{
Expand All @@ -38,7 +38,7 @@
"707"
]
},
"execution_count": 35,
"execution_count": 3,
"metadata": {},
"output_type": "execute_result"
}
Expand All @@ -53,7 +53,7 @@
},
{
"cell_type": "code",
"execution_count": 36,
"execution_count": 4,
"metadata": {},
"outputs": [
{
Expand All @@ -62,7 +62,7 @@
"1907"
]
},
"execution_count": 36,
"execution_count": 4,
"metadata": {},
"output_type": "execute_result"
}
Expand All @@ -73,13 +73,12 @@
" ntri = C.reduce_int() // 2\n",
" return ntri\n",
" \n",
"\n",
"cohen(M, M.triu(), M.tril())"
]
},
{
"cell_type": "code",
"execution_count": 37,
"execution_count": 5,
"metadata": {},
"outputs": [
{
Expand All @@ -88,7 +87,7 @@
"1907"
]
},
"execution_count": 37,
"execution_count": 5,
"metadata": {},
"output_type": "execute_result"
}
Expand All @@ -98,14 +97,12 @@
" C = L.mxm(L, mask=L)\n",
" return C.reduce_int()\n",
"\n",
"\n",
"\n",
"sandia(M, M.tril())"
]
},
{
"cell_type": "code",
"execution_count": 38,
"execution_count": 6,
"metadata": {},
"outputs": [
{
Expand All @@ -114,7 +111,7 @@
"1907"
]
},
"execution_count": 38,
"execution_count": 6,
"metadata": {},
"output_type": "execute_result"
}
Expand All @@ -125,7 +122,7 @@
},
{
"cell_type": "code",
"execution_count": 39,
"execution_count": 7,
"metadata": {},
"outputs": [
{
Expand All @@ -134,7 +131,7 @@
"1907"
]
},
"execution_count": 39,
"execution_count": 7,
"metadata": {},
"output_type": "execute_result"
}
Expand All @@ -149,7 +146,7 @@
},
{
"cell_type": "code",
"execution_count": 40,
"execution_count": 8,
"metadata": {},
"outputs": [
{
Expand All @@ -158,7 +155,7 @@
"1907"
]
},
"execution_count": 40,
"execution_count": 8,
"metadata": {},
"output_type": "execute_result"
}
Expand Down
2 changes: 1 addition & 1 deletion pygraphblas/demo/gviz.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def draw_graph(M, name='', rankdir='LR', show_weight=True,
g = Digraph(name)
g.attr(rankdir=rankdir, ranksep='1')
for i, j, v in M:
size = _str(size_vector[i]) if size_vector else '1.0'
size = _str(size_vector[i]) if size_vector else '0.5'
ilabel = _str(label_vector[i]) if label_vector else str(i)
jlabel = _str(label_vector[j]) if label_vector else str(j)
vlabel = _str(v) if show_weight else None
Expand Down

0 comments on commit 97efc72

Please sign in to comment.