Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix doc for from_numpy_matrix and to_numpy_matrix #1482

Merged
merged 1 commit into from
Apr 25, 2015

Conversation

MridulS
Copy link
Member

@MridulS MridulS commented Apr 25, 2015

chebee7i added a commit that referenced this pull request Apr 25, 2015
Fix doc for from_numpy_matrix and to_numpy_matrix
@chebee7i chebee7i merged commit 38b9ba5 into networkx:master Apr 25, 2015
@MridulS MridulS deleted the fixdoc branch April 25, 2015 15:57
the entries will be interpreted as weighted edges joining the vertices
(without creating parallel edges):

>>> import numpy
>>> A = numpy.matrix([[1, 1], [1, 2]])
>>> G = nx.from_numpy_matrix(A, create_using=nx.MultiGraph())
>>> G = nx.from_numpy_matrix(A, create_using = nx.MultiGraph())
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't add spaces around the equals sign when used to assign keyword arguments to a function.

http://legacy.python.org/dev/peps/pep-0008/#other-recommendations

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jfinkels Thanks for pointing out that, will take care of it. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants