"[<networkx.classes.graph.Graph object at 0x1114e8f60>, <networkx.classes.graph.Graph object at 0x1114ec438>, <networkx.classes.graph.Graph object at 0xa24a82a58>, <networkx.classes.graph.Graph object at 0xa24a82630>, <networkx.classes.graph.Graph object at 0xa24a827b8>, <networkx.classes.graph.Graph object at 0xa24a825f8>, <networkx.classes.graph.Graph object at 0xa24a82588>, <networkx.classes.graph.Graph object at 0xa24a82780>, <networkx.classes.graph.Graph object at 0xa24a82940>, <networkx.classes.graph.Graph object at 0xa24a82748>, <networkx.classes.graph.Graph object at 0xa24a826d8>, <networkx.classes.graph.Graph object at 0xa24a82668>, <networkx.classes.graph.Graph object at 0xa24a82978>, <networkx.classes.graph.Graph object at 0xa24a829b0>, <networkx.classes.graph.Graph object at 0xa24a82908>, <networkx.classes.graph.Graph object at 0xa24a82898>, <networkx.classes.graph.Graph object at 0xa24a82828>, <networkx.classes.graph.Graph object at 0xa24a827f0>, <networkx.classes.graph.Graph object at 0xa24a828d0>, <networkx.classes.graph.Graph object at 0xa24a829e8>, <networkx.classes.graph.Graph object at 0xa24a82860>, <networkx.classes.graph.Graph object at 0xa24a82a20>, <networkx.classes.graph.Graph object at 0xa24a826a0>, <networkx.classes.graph.Graph object at 0xa24a82a90>, <networkx.classes.graph.Graph object at 0xa24a82ac8>, <networkx.classes.graph.Graph object at 0xa24a82b00>, <networkx.classes.graph.Graph object at 0xa24a82b38>, <networkx.classes.graph.Graph object at 0xa24a82b70>, <networkx.classes.graph.Graph object at 0xa24a82ba8>, <networkx.classes.graph.Graph object at 0xa24a82be0>, <networkx.classes.graph.Graph object at 0xa24a82c18>, <networkx.classes.graph.Graph object at 0xa24a82c50>, <networkx.classes.graph.Graph object at 0xa24a82c88>, <networkx.classes.graph.Graph object at 0xa24a82cc0>, <networkx.classes.graph.Graph object at 0xa24a82cf8>, <networkx.classes.graph.Graph object at 0xa24a82d30>]\n"
]
},
{
"ename": "TypeError",
"evalue": "__call__() got an unexpected keyword argument 'keys'",
"\u001b[0;32m~/Documents/GitHub/cycle-coalescence-algorithm/cycle_analysis/cycle_tools_coalescence.py\u001b[0m in \u001b[0;36mcalc_cycle_coalescence\u001b[0;34m(self, input_graph, cycle_basis)\u001b[0m\n\u001b[1;32m 31\u001b[0m \u001b[0mcycle_tree\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0mnx\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mGraph\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 32\u001b[0m \u001b[0;32mfor\u001b[0m \u001b[0mcycle\u001b[0m \u001b[0;32min\u001b[0m \u001b[0mcycle_basis\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m---> 33\u001b[0;31m \u001b[0mcycle_tree\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0madd_node\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mtuple\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mcycle\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0medges\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mkeys\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0;32mTrue\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0mlabel\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0;34m'base'\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0mweight\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0;36m1.\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0mbranch_type\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0;34m'none'\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0mpos\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m-\u001b[0m\u001b[0;36m1\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;34m-\u001b[0m\u001b[0;36m1\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 34\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 35\u001b[0m \u001b[0;31m# get the weights of the input graph and sort\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n",
"\u001b[0;31mTypeError\u001b[0m: __call__() got an unexpected keyword argument 'keys'"
]
}
],
"source": [
"import sys\n",
"sys.path.insert(0, \"../cycle_analysis\")\n",
"import cycle_tools_coalescence as ctc\n",
"import test as cat\n",
"import networkx as nx\n",
"import matplotlib.pyplot as plt\n",
"import cycle_analysis.cycle_coalescence as cc\n",
"import cycle_analysis.test as cat\n",
"# import cycle_analysis.cycle_tools_coalescence as ctc\n",
"# import cycle_analysis.test as cat\n",
"\n",
"# generate a dummy graph for testing\n",
"# put an edge weight distribution on the system, available are random/gradient/bigradient/nested_square\n",
"G=nx.grid_graph((7,7,1))\n",
...
...
@@ -32,9 +44,11 @@
"pos=nx.get_node_attributes(G,'pos')\n",
"\n",
"# merge all shortest cycles and create merging tree, then calc asymmetry of the tree's branches\n",