コード例 #1
0
 def adj_mat(graph, weight=None):
     if weight not in (None, False):
         weight = graph.edge_properties[weight]
         return _adj(graph, weight).T
     return _adj(graph).T
コード例 #2
0
ファイル: globals.py プロジェクト: Silmathoron/NNGT
 def adj_mat(graph, weight=None):
     if weight is not None:
         weight = graph.edge_properties[weight]
     return _adj(graph, weight).T
コード例 #3
0
ファイル: globals.py プロジェクト: openube/NNGT
 def adj_mat(graph, weights=None):
     if weights is not None:
         weights = graph.edge_properties[weights]
     return _adj(graph, weights).T
コード例 #4
0
 def adj_mat(graph, weight=None):
     if weight is not None:
         weight = graph.edge_properties[weight]
     return _adj(graph, weight).T