summaryrefslogtreecommitdiff
path: root/networkx/linalg/modularitymatrix.py
diff options
context:
space:
mode:
authorJGab <jean.gabriel.young@gmail.com>2015-04-08 13:11:20 -0400
committerJGab <jean.gabriel.young@gmail.com>2015-04-08 13:11:20 -0400
commit89711442dc5397ec2f76ea81fdc28d93a138757d (patch)
tree40b6dcad65ce963d39d5af807f17f483b08338ef /networkx/linalg/modularitymatrix.py
parent7529f81d3e530f5328eb9a076e91a6dc8bcd1470 (diff)
downloadnetworkx-89711442dc5397ec2f76ea81fdc28d93a138757d.tar.gz
Future division and ASCII fix
Diffstat (limited to 'networkx/linalg/modularitymatrix.py')
-rw-r--r--networkx/linalg/modularitymatrix.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/networkx/linalg/modularitymatrix.py b/networkx/linalg/modularitymatrix.py
index d61e65fd..2a0deaf5 100644
--- a/networkx/linalg/modularitymatrix.py
+++ b/networkx/linalg/modularitymatrix.py
@@ -6,8 +6,10 @@
# Pieter Swart <swart@lanl.gov>
# All rights reserved.
# BSD license.
+from __future__ import division
import networkx as nx
from networkx.utils import not_implemented_for
+
__author__ = "\n".join(['Aric Hagberg <aric.hagberg@gmail.com>',
'Pieter Swart (swart@lanl.gov)',
'Dan Schult (dschult@colgate.edu)',
@@ -51,7 +53,7 @@ def modularity_matrix(G, nodelist=None):
References
----------
.. [1] M. E. J. Newman, "Modularity and community structure in networks",
- Proc. Natl. Acad. Sci. USA, vol. 103, pp. 8577–8582, 2006.
+ Proc. Natl. Acad. Sci. USA, vol. 103, pp. 8577-8582, 2006.
"""
if nodelist is None:
nodelist = G.nodes()