diff options
| author | Dan Schult <dschult@colgate.edu> | 2017-11-24 23:54:34 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-11-24 23:54:34 -0500 |
| commit | 198d6cc9ae759c1a577d59ca603c79321f7a86e7 (patch) | |
| tree | af8a04a0182969bafc8434a6199f8984c58f8485 | |
| parent | d5be0b25a2e07b6dfb1c343b0357b7dcf35e9306 (diff) | |
| download | networkx-dschult-patch-gml.tar.gz | |
Fix typo in gml.py and add testsdschult-patch-gml
Fixes #2740
| -rw-r--r-- | networkx/readwrite/gml.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/networkx/readwrite/gml.py b/networkx/readwrite/gml.py index fd069511..b06e1c65 100644 --- a/networkx/readwrite/gml.py +++ b/networkx/readwrite/gml.py @@ -677,7 +677,7 @@ def generate_gml(G, stringizer=None): if epos != -1 and text.find('.', 0, epos) == -1: text = text[:epos] + '.' + text[epos:] if key == 'label': - yield indent + key + ' "' + test + '"' + yield indent + key + ' "' + text + '"' else: yield indent + key + ' ' + text elif isinstance(value, dict): |
