<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/python-packages/networkx.git/networkx/classes/tests/test_special.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>Meld special classes with base classes.</title>
<updated>2015-01-02T05:18:11+00:00</updated>
<author>
<name>Dan Schult</name>
<email>dschult@colgate.edu</email>
</author>
<published>2015-01-02T05:18:11+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/networkx.git/commit/?id=3b7c58a84409d780e22d7972406270fbe9c926c5'/>
<id>3b7c58a84409d780e22d7972406270fbe9c926c5</id>
<content type='text'>
This provides the ability to use OrderedGraph or ThinGraph by
simple subclassing of Graph.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This provides the ability to use OrderedGraph or ThinGraph by
simple subclassing of Graph.
</pre>
</div>
</content>
</entry>
<entry>
<title>Better proposed structure for OrderedGraph and co.</title>
<updated>2015-01-02T00:20:53+00:00</updated>
<author>
<name>Dan Schult</name>
<email>dschult@colgate.edu</email>
</author>
<published>2015-01-02T00:20:53+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/networkx.git/commit/?id=cf6d0e3b650b5b43980b9fb608c5216756b0ea98'/>
<id>cf6d0e3b650b5b43980b9fb608c5216756b0ea98</id>
<content type='text'>
This supercedes #1268 as a proposed structure for OrderedGraph and
ThinGraph class structures. It is based on discussion from #980 and
has also been discussed in #1181, #1244, #1267, #1267

This implementation includes examples (in docs and in tests) for 1)
ordered nodes, 2) ordered nodes and edges and 3) thin (low RAM) graphs
that don't need edge attributes [not related to ordered nodes].

In this proposal, the dict-like arguments are assigned in a new class
structure rather than assigning them to an instance of the SpecialGraph
class. Something similar to:

class OrderedGraph(SpecialGraph):
    node_dict_factory=OrderedDict
G=OrderedGraph()

If all goes well with this version (including reasonable speed)
it might be reasonable to include it in the base classes Graph, etc.
I think @ysitu prefers a more flexible base class than adding yet
more graph classes, and all else equal (or almost equal) I agree.

This pull request may be useful for people who wish OrderedGraph
or ThinGraph and don't want to wait for 2.0
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This supercedes #1268 as a proposed structure for OrderedGraph and
ThinGraph class structures. It is based on discussion from #980 and
has also been discussed in #1181, #1244, #1267, #1267

This implementation includes examples (in docs and in tests) for 1)
ordered nodes, 2) ordered nodes and edges and 3) thin (low RAM) graphs
that don't need edge attributes [not related to ordered nodes].

In this proposal, the dict-like arguments are assigned in a new class
structure rather than assigning them to an instance of the SpecialGraph
class. Something similar to:

class OrderedGraph(SpecialGraph):
    node_dict_factory=OrderedDict
G=OrderedGraph()

If all goes well with this version (including reasonable speed)
it might be reasonable to include it in the base classes Graph, etc.
I think @ysitu prefers a more flexible base class than adding yet
more graph classes, and all else equal (or almost equal) I agree.

This pull request may be useful for people who wish OrderedGraph
or ThinGraph and don't want to wait for 2.0
</pre>
</div>
</content>
</entry>
</feed>
