Fix syntax error in Python 3: u'' -> ''. Also add .gitignore.
This commit is contained in:
parent
9be233d50f
commit
2a03630c0a
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
|
||||
|
||||
|
||||
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.
|
||||
|
||||
The matrix has to be a list of rows of values
|
||||
|
Loading…
x
Reference in New Issue
Block a user