摘要:
what is Version Control 版本控制系统是按时间顺序,记录你对某个或者某组文件所做的所有修改,方便你之后找回某个特定的版本。版本控制对数据科学家尤为重要,因为我们通常要面对一系列的脚本和程序,并且时不时地要做修改,这些修改有好有坏,也可能同时还有其他人在同一组程序上操作,而你想及 阅读全文
摘要:
Given a binary tree, find its maximum depth.求二叉树的最大深度 The maximum depth is the number of nodes along the longest path from the root node down to the f 阅读全文
摘要:
double_edge_swap(G) 这是一个连边置乱的函数,输入的G必须为无向图,且图节点不小于4 # Instead of choosing uniformly at random from a generated edge list, # this algorithm chooses non 阅读全文
摘要:
编写检验网络的匹配特性的程序时,涉及到节点的强度(与节点相连边的权重和)这个概念,后才明白nx.degree()还有如此强大的功能。 直接上例子: import networkx as nxG=nx.Graph()G.add_edge(1,2, weight=1)G.add_edge(1,3, we 阅读全文