| Commit message (Collapse) | Author | Age | Files | Lines |
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
>>> [ (u,v,edata['weight']) for u,v,edata in G.edges(data=True) ]
becomes
>>> G.edges(data='weight')
>>> for n,nbrs in G.adjacency_iter():
... for nbr,ddict in nbrs.items():
... print (n,nbr,ddict.get('weight',1))
becomes
>>> G.edges(data='weight', default=1)
|
| | |
|
| |
|
|
|
| |
This provides the ability to use OrderedGraph or ThinGraph by
simple subclassing of Graph.
|
| | |
|
| | |
|
| |
|
|
|
|
|
|
|
|
| |
Addresses #741
There may still be more that need fixing since
1) NumPy and some other optional packages do not yet work with Python3.3 so those tests weren't checked
2) Finding these errors by running the tests is nondeterministic itself (e.g. passes 4 times and fails on the 5th). And inspecting all of the tests by hand is error-prone too.
|
| |
|
|
| |
doesn't depend on data ordering.
|
| |
|
|
| |
Fixes #686
|
| |
|
|
|
|
|
| |
This should help a small amount when playing with alternate
data structures.
Addreses: #206, #583
|
| |
|
|
|
|
| |
In this case all changes were either only used in a for loop,
or iter(dict.keys()).
Addresses #560
|
| |
|
|
| |
Addresses #573
|
| |
|
|
| |
weight gives the edge attribute. weighted was simply boolean.
|
| |
|
|
|
|
| |
of the graph.
Addresses #567
|
| |
|
|
| |
Tidy style in graph classes.
|
| |
|
|
| |
Fixes #544
|
| |
|
|
|
| |
Addresses #544
Fixes #543
|
| | |
|
| |
|
|
|
|
|
|
|
| |
Addreses #441
* * *
Add tests for to_undirected(reciprocal=).
--HG--
extra : rebase_source : 136efa36d3d30d7b2cd90255219a224ad55783dc
|
| |
|
|
|
| |
--HG--
extra : convert_revision : svn%3A3ed01bd8-26fb-0310-9e4c-ca1a4053419f/networkx/trunk%401862
|
| |
|
|
|
| |
--HG--
extra : convert_revision : svn%3A3ed01bd8-26fb-0310-9e4c-ca1a4053419f/networkx/trunk%401832
|
| |
|
|
|
|
|
| |
Slight speedup (5-10%) in degree methods.
--HG--
extra : convert_revision : svn%3A3ed01bd8-26fb-0310-9e4c-ca1a4053419f/networkx/trunk%401743
|
| |
|
|
|
| |
--HG--
extra : convert_revision : svn%3A3ed01bd8-26fb-0310-9e4c-ca1a4053419f/networkx/trunk%401741
|
| |
|
|
|
| |
--HG--
extra : convert_revision : svn%3A3ed01bd8-26fb-0310-9e4c-ca1a4053419f/networkx/trunk%401708
|
| |
|
|
|
|
|
|
| |
so we don't need nose test plugin to handle doctest
strings in modules.
--HG--
extra : convert_revision : svn%3A3ed01bd8-26fb-0310-9e4c-ca1a4053419f/networkx/trunk%401706
|
| |
|
|
|
|
|
| |
Addresses #337
--HG--
extra : convert_revision : svn%3A3ed01bd8-26fb-0310-9e4c-ca1a4053419f/networkx/trunk%401690
|
| |
|
|
|
|
|
|
|
|
| |
remove the copy of graph attributes in subgraph.
This way the attribute treatement is consistent.
Fixes #314
--HG--
extra : convert_revision : svn%3A3ed01bd8-26fb-0310-9e4c-ca1a4053419f/networkx/trunk%401687
|
| |
|
|
|
| |
--HG--
extra : convert_revision : svn%3A3ed01bd8-26fb-0310-9e4c-ca1a4053419f/networkx/trunk%401686
|
| |
|
|
|
|
|
|
|
|
|
|
| |
subgraphview() This returns a read-only view on the subgraph
induced by a set of nodes. No attributes processing is attempted
so it should be faster than .subgraph()
Chris can you test it? I haven't done anything fancy for
MultiGraphs edge keys here either.
--HG--
extra : convert_revision : svn%3A3ed01bd8-26fb-0310-9e4c-ca1a4053419f/networkx/trunk%401684
|
| |
|
|
|
| |
--HG--
extra : convert_revision : svn%3A3ed01bd8-26fb-0310-9e4c-ca1a4053419f/networkx/trunk%401667
|
| |
|
|
|
| |
--HG--
extra : convert_revision : svn%3A3ed01bd8-26fb-0310-9e4c-ca1a4053419f/networkx/trunk%401666
|
| |
|
|
|
| |
--HG--
extra : convert_revision : svn%3A3ed01bd8-26fb-0310-9e4c-ca1a4053419f/networkx/trunk%401658
|
| |
|
|
|
|
|
|
| |
Fixes #315
Address #329 (more doc changes needed)
--HG--
extra : convert_revision : svn%3A3ed01bd8-26fb-0310-9e4c-ca1a4053419f/networkx/trunk%401604
|
| |
|
|
|
|
|
| |
digraph, multigraph and multidigraph.
--HG--
extra : convert_revision : svn%3A3ed01bd8-26fb-0310-9e4c-ca1a4053419f/networkx/trunk%401559
|
| |
|
|
|
|
|
|
|
| |
but still point to attr from the original graph.
Remove copy keyword argument because in_place subgraph
can be done using remove_nodes_from. Update tests accordingly
--HG--
extra : convert_revision : svn%3A3ed01bd8-26fb-0310-9e4c-ca1a4053419f/networkx/trunk%401543
|
| |
|
|
|
|
|
|
|
|
|
|
| |
Implement multi and di versions of the subgraph method speedups.
It's still about 4 times slower to subgraph with edgedata than
without edgedata. Could speed up edgedata case by making a shallow
copy version perhaps controlled by an optional argument.
Addresses #314
--HG--
extra : convert_revision : svn%3A3ed01bd8-26fb-0310-9e4c-ca1a4053419f/networkx/trunk%401527
|
| |
|
|
|
| |
--HG--
extra : convert_revision : svn%3A3ed01bd8-26fb-0310-9e4c-ca1a4053419f/networkx/trunk%401446
|
| |
|
|
|
| |
--HG--
extra : convert_revision : svn%3A3ed01bd8-26fb-0310-9e4c-ca1a4053419f/networkx/trunk%401429
|
| |
|
|
|
| |
--HG--
extra : convert_revision : svn%3A3ed01bd8-26fb-0310-9e4c-ca1a4053419f/networkx/trunk%401381
|
| |
|
|
|
| |
--HG--
extra : convert_revision : svn%3A3ed01bd8-26fb-0310-9e4c-ca1a4053419f/networkx/trunk%401378
|
| |
|
|
|
| |
--HG--
extra : convert_revision : svn%3A3ed01bd8-26fb-0310-9e4c-ca1a4053419f/networkx/trunk%401377
|
| |
|
|
|
|
|
|
| |
Fixed bug in remove_edges_from when a selfloop edge is removed.
Added tests for removing selfloop edges.
--HG--
extra : convert_revision : svn%3A3ed01bd8-26fb-0310-9e4c-ca1a4053419f/networkx/trunk%401376
|
| |
|
|
|
|
|
| |
Fixes #255
--HG--
extra : convert_revision : svn%3A3ed01bd8-26fb-0310-9e4c-ca1a4053419f/networkx/trunk%401370
|
| |
|
|
|
|
|
| |
in favor of G.add_path() to unify the docstrings a little.
--HG--
extra : convert_revision : svn%3A3ed01bd8-26fb-0310-9e4c-ca1a4053419f/networkx/trunk%401368
|
| |
|
|
|
| |
--HG--
extra : convert_revision : svn%3A3ed01bd8-26fb-0310-9e4c-ca1a4053419f/networkx/trunk%401364
|
| |
|
|
|
|
|
| |
that neighbors and successors are the same for DiGraphs.
--HG--
extra : convert_revision : svn%3A3ed01bd8-26fb-0310-9e4c-ca1a4053419f/networkx/trunk%401192
|
| |
|
|
|
| |
--HG--
extra : convert_revision : svn%3A3ed01bd8-26fb-0310-9e4c-ca1a4053419f/networkx/trunk%401180
|
| |
|
|
|
|
|
|
|
|
| |
Alias out_edges_iter() and out_edges() to edges() in DiGraph and
MultiDiGraph
Fixes #205
--HG--
extra : convert_revision : svn%3A3ed01bd8-26fb-0310-9e4c-ca1a4053419f/networkx/trunk%401098
|
| |
|
|
|
| |
--HG--
extra : convert_revision : svn%3A3ed01bd8-26fb-0310-9e4c-ca1a4053419f/networkx/trunk%401070
|
| |
|
|
|
| |
--HG--
extra : convert_revision : svn%3A3ed01bd8-26fb-0310-9e4c-ca1a4053419f/networkx/trunk%40923
|