Skip to content

Instantly share code, notes, and snippets.

@domitry
domitry / hoge.ipynb
Last active February 12, 2016 02:07
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
gcc testMathTool.c MathTool.c -lm -o test.out
./test.out
rm ./test.out
@domitry
domitry / RRI.ipynb
Created May 30, 2017 09:32
RRI tet
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
diff --git a/graphspace_python/graphs/classes/gsgraph.py b/graphspace_python/graphs/classes/gsgraph.py
index abf024c..790f3ab 100644
--- a/graphspace_python/graphs/classes/gsgraph.py
+++ b/graphspace_python/graphs/classes/gsgraph.py
@@ -470,7 +470,7 @@ class GSGraph(nx.DiGraph):
attr_dict.update({"source": source, "target": target})
GSGraph.validate_edge_data_properties(data_properties=attr_dict, nodes_list=self.nodes())
- super(GSGraph, self).add_edge(source, target, attr_dict)
+ super(GSGraph, self).add_edge(source, target, **attr_dict)