<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/python-packages/networkx.git/networkx/classes/tests/test_graph.py, branch docdraft</title>
<subtitle>github.com: networkx/networkx.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/networkx.git/'/>
<entry>
<title>Expand data keyword in G.edges and add default data</title>
<updated>2015-01-18T02:42:00+00:00</updated>
<author>
<name>Dan Schult</name>
<email>dschult@colgate.edu</email>
</author>
<published>2015-01-18T02:42:00+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/networkx.git/commit/?id=bbd42197b0c9342cc46658035e8055a08766f34c'/>
<id>bbd42197b0c9342cc46658035e8055a08766f34c</id>
<content type='text'>
When data=True, the whole data dictionary is returned for each edge.
When data=False, no data is returned.
Otherwise data is used as the attribute name of the edge data to return.
&gt;&gt;&gt; [ (u,v,edata['weight']) for u,v,edata in G.edges(data=True) ]
becomes
&gt;&gt;&gt; G.edges(data='weight')

&gt;&gt;&gt; for n,nbrs in G.adjacency_iter():
...     for nbr,ddict in nbrs.items():
...         print (n,nbr,ddict.get('weight',1))
becomes
&gt;&gt;&gt; G.edges(data='weight', default=1)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
When data=True, the whole data dictionary is returned for each edge.
When data=False, no data is returned.
Otherwise data is used as the attribute name of the edge data to return.
&gt;&gt;&gt; [ (u,v,edata['weight']) for u,v,edata in G.edges(data=True) ]
becomes
&gt;&gt;&gt; G.edges(data='weight')

&gt;&gt;&gt; for n,nbrs in G.adjacency_iter():
...     for nbr,ddict in nbrs.items():
...         print (n,nbr,ddict.get('weight',1))
becomes
&gt;&gt;&gt; G.edges(data='weight', default=1)
</pre>
</div>
</content>
</entry>
<entry>
<title>Add tests to classes to cover missing cases.</title>
<updated>2011-11-19T00:48:04+00:00</updated>
<author>
<name>Aric Hagberg</name>
<email>aric.hagberg@gmail.com</email>
</author>
<published>2011-11-19T00:48:04+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/networkx.git/commit/?id=b124677365f31a67e5a199b7c7a410b05139aa1a'/>
<id>b124677365f31a67e5a199b7c7a410b05139aa1a</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Split Graph class tests that rely on data structure or edge attributes.</title>
<updated>2011-07-29T03:53:53+00:00</updated>
<author>
<name>Dan Schult</name>
<email>dschult@colgate.edu</email>
</author>
<published>2011-07-29T03:53:53+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/networkx.git/commit/?id=7cbf43c1ab6fdc28a977f4f2741243f6e18bee7c'/>
<id>7cbf43c1ab6fdc28a977f4f2741243f6e18bee7c</id>
<content type='text'>
This helps trying out different data structures.
Addresses #206, #457, #608
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This helps trying out different data structures.
Addresses #206, #457, #608
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix typos in tests for edge methods that call neighbors.</title>
<updated>2011-06-19T00:19:59+00:00</updated>
<author>
<name>Dan Schult</name>
<email>dschult@colgate.edu</email>
</author>
<published>2011-06-19T00:19:59+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/networkx.git/commit/?id=09b4536031725c3101b9cbcc2c7cdf4acf4d36f6'/>
<id>09b4536031725c3101b9cbcc2c7cdf4acf4d36f6</id>
<content type='text'>
Fixes #575
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fixes #575
</pre>
</div>
</content>
</entry>
<entry>
<title>Change degree() and friends to accept weight= keyword instead of weighted=</title>
<updated>2011-06-18T05:27:18+00:00</updated>
<author>
<name>Dan Schult</name>
<email>dschult@colgate.edu</email>
</author>
<published>2011-06-18T05:27:18+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/networkx.git/commit/?id=570509b772159dab14c582f39eb578c3802888b1'/>
<id>570509b772159dab14c582f39eb578c3802888b1</id>
<content type='text'>
weight gives the edge attribute.  weighted was simply boolean.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
weight gives the edge attribute.  weighted was simply boolean.
</pre>
</div>
</content>
</entry>
<entry>
<title>Make Graph.name a property that sets/gets Graph.graph['name']</title>
<updated>2011-05-16T12:43:59+00:00</updated>
<author>
<name>Aric Hagberg</name>
<email>aric.hagberg@gmail.com</email>
</author>
<published>2011-05-16T12:43:59+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/networkx.git/commit/?id=3550c993445ebb12f9558b79b32726733a33acdb'/>
<id>3550c993445ebb12f9558b79b32726733a33acdb</id>
<content type='text'>
Fixes #544
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fixes #544
</pre>
</div>
</content>
</entry>
<entry>
<title>More imports cleanup and exceptions fixed.</title>
<updated>2011-02-11T02:27:49+00:00</updated>
<author>
<name>Loïc Séguin-C.</name>
<email>loicseguin@gmail.com</email>
</author>
<published>2011-02-11T02:27:49+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/networkx.git/commit/?id=d41d15f94e4efd0979f2551bc00c1216fc59e111'/>
<id>d41d15f94e4efd0979f2551bc00c1216fc59e111</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Merging py3k-1.2 branch into trunk. Addresses #348</title>
<updated>2010-08-02T14:50:33+00:00</updated>
<author>
<name>loicseguin</name>
<email>none@none</email>
</author>
<published>2010-08-02T14:50:33+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/networkx.git/commit/?id=c585bf422f2ff040d2182c272f4dd3351626b9e9'/>
<id>c585bf422f2ff040d2182c272f4dd3351626b9e9</id>
<content type='text'>
--HG--
extra : convert_revision : svn%3A3ed01bd8-26fb-0310-9e4c-ca1a4053419f/networkx/trunk%401832
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
--HG--
extra : convert_revision : svn%3A3ed01bd8-26fb-0310-9e4c-ca1a4053419f/networkx/trunk%401832
</pre>
</div>
</content>
</entry>
<entry>
<title>Remove with_labels keyword from *degree() methods.</title>
<updated>2010-04-15T04:30:57+00:00</updated>
<author>
<name>aric</name>
<email>none@none</email>
</author>
<published>2010-04-15T04:30:57+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/networkx.git/commit/?id=4addc97325c44e51a976498593afd2e8106ce667'/>
<id>4addc97325c44e51a976498593afd2e8106ce667</id>
<content type='text'>
Addresses #337

--HG--
extra : convert_revision : svn%3A3ed01bd8-26fb-0310-9e4c-ca1a4053419f/networkx/trunk%401690
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Addresses #337

--HG--
extra : convert_revision : svn%3A3ed01bd8-26fb-0310-9e4c-ca1a4053419f/networkx/trunk%401690
</pre>
</div>
</content>
</entry>
<entry>
<title>Revert "view" testing - now moved to branch</title>
<updated>2010-04-14T00:09:12+00:00</updated>
<author>
<name>aric</name>
<email>none@none</email>
</author>
<published>2010-04-14T00:09:12+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/networkx.git/commit/?id=9cc7a8efc018d9820b8cf79e92200bb608f94253'/>
<id>9cc7a8efc018d9820b8cf79e92200bb608f94253</id>
<content type='text'>
--HG--
extra : convert_revision : svn%3A3ed01bd8-26fb-0310-9e4c-ca1a4053419f/networkx/trunk%401686
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
--HG--
extra : convert_revision : svn%3A3ed01bd8-26fb-0310-9e4c-ca1a4053419f/networkx/trunk%401686
</pre>
</div>
</content>
</entry>
</feed>
