Fix syntax error in Python 3: u'' -> ''. Also add .gitignore.
This commit is contained in:
6
.gitignore
vendored
Normal file
6
.gitignore
vendored
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
*.pyc
|
||||||
|
__pycache__
|
||||||
|
*~
|
||||||
|
.DS_Store
|
||||||
|
build/*
|
||||||
|
|
||||||
@@ -295,7 +295,7 @@ def graph_from_edges(edge_list, node_prefix='', directed=False):
|
|||||||
return graph
|
return graph
|
||||||
|
|
||||||
|
|
||||||
def graph_from_adjacency_matrix(matrix, node_prefix=u'', directed=False):
|
def graph_from_adjacency_matrix(matrix, node_prefix='', directed=False):
|
||||||
"""Creates a basic graph out of an adjacency matrix.
|
"""Creates a basic graph out of an adjacency matrix.
|
||||||
|
|
||||||
The matrix has to be a list of rows of values
|
The matrix has to be a list of rows of values
|
||||||
|
|||||||
Reference in New Issue
Block a user