| 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.
|
| |
|
|
| |
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
|
| | |
|
| |
|
|
|
|
|
| |
multiedges.
--HG--
extra : rebase_source : 67b261bf1d622af0e14f6e9787acbc5b052db253
|
| |
|
|
| |
Addresses #469
|
| |
|
|
| |
Fixes #460
|
| |
|
|
|
|
|
|
|
| |
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%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
|
| |
|
|
|
|
|
|
|
|
| |
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%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
|
| |
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
|
|
|
|
| |
make it easier to read.
Simplify remove_edges_from code to rely on remove_edge more and avoid
checking for the edge twice.
Addresses #284
--HG--
extra : convert_revision : svn%3A3ed01bd8-26fb-0310-9e4c-ca1a4053419f/networkx/trunk%401484
|
| |
|
|
|
|
|
| |
Addresses #284
--HG--
extra : convert_revision : svn%3A3ed01bd8-26fb-0310-9e4c-ca1a4053419f/networkx/trunk%401483
|
| |
|
|
|
|
|
| |
Addresses #284
--HG--
extra : convert_revision : svn%3A3ed01bd8-26fb-0310-9e4c-ca1a4053419f/networkx/trunk%401482
|
| |
|
|
|
|
|
|
| |
to remove a single edge when no key is specified.
Addresses #284
--HG--
extra : convert_revision : svn%3A3ed01bd8-26fb-0310-9e4c-ca1a4053419f/networkx/trunk%401481
|
| |
|
|
|
|
|
| |
in selfloop_edges()
--HG--
extra : convert_revision : svn%3A3ed01bd8-26fb-0310-9e4c-ca1a4053419f/networkx/trunk%401460
|
| |
|
|
|
| |
--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
|
| |
|
|
|
|
|
|
| |
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
|
| |
|
|
|
| |
--HG--
extra : convert_revision : svn%3A3ed01bd8-26fb-0310-9e4c-ca1a4053419f/networkx/trunk%401180
|
| |
|
|
|
| |
--HG--
extra : convert_revision : svn%3A3ed01bd8-26fb-0310-9e4c-ca1a4053419f/networkx/trunk%401162
|
| |
|
|
|
|
|
| |
multigraph when specifying non-matching data.
--HG--
extra : convert_revision : svn%3A3ed01bd8-26fb-0310-9e4c-ca1a4053419f/networkx/trunk%401120
|
| |
|
|
|
|
|
|
| |
edges are removed (the last two) when only one should
be removed. Add tests for this case. Fixes #217.
--HG--
extra : convert_revision : svn%3A3ed01bd8-26fb-0310-9e4c-ca1a4053419f/networkx/trunk%401118
|
| |
|
|
|
|
|
|
|
|
|
|
| |
a default if no edge is found.
Change function of has_edge() to take two aguments (nodes).
It has exactly the same behavior now as has_neighbor()
Addresses #203
--HG--
extra : convert_revision : svn%3A3ed01bd8-26fb-0310-9e4c-ca1a4053419f/networkx/trunk%401099
|
| |
|
|
|
|
|
|
|
|
| |
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
|