| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
--HG--
extra : convert_revision : svn%3A3ed01bd8-26fb-0310-9e4c-ca1a4053419f/networkx/trunk%40482
|
|
|
|
|
| |
--HG--
extra : convert_revision : svn%3A3ed01bd8-26fb-0310-9e4c-ca1a4053419f/networkx/trunk%40481
|
|
|
|
|
| |
--HG--
extra : convert_revision : svn%3A3ed01bd8-26fb-0310-9e4c-ca1a4053419f/networkx/trunk%40480
|
|
|
|
|
| |
--HG--
extra : convert_revision : svn%3A3ed01bd8-26fb-0310-9e4c-ca1a4053419f/networkx/trunk%40479
|
|
|
|
|
| |
--HG--
extra : convert_revision : svn%3A3ed01bd8-26fb-0310-9e4c-ca1a4053419f/networkx/trunk%40478
|
|
|
|
|
| |
--HG--
extra : convert_revision : svn%3A3ed01bd8-26fb-0310-9e4c-ca1a4053419f/networkx/trunk%40477
|
|
|
|
|
| |
--HG--
extra : convert_revision : svn%3A3ed01bd8-26fb-0310-9e4c-ca1a4053419f/networkx/trunk%40476
|
|
|
|
|
| |
--HG--
extra : convert_revision : svn%3A3ed01bd8-26fb-0310-9e4c-ca1a4053419f/networkx/trunk%40475
|
|
|
|
|
|
|
|
|
|
|
| |
The code is cleaner and no longer checks for disjoint input sets.
Docstring updated to reflect this "added feature".
Should be much faster to find Cheeger values now.
These work for DiGraph, XGraph, XDiGraph as well for what it is worth.
--HG--
extra : convert_revision : svn%3A3ed01bd8-26fb-0310-9e4c-ca1a4053419f/networkx/trunk%40474
|
|
|
|
|
|
|
|
|
|
|
|
| |
Operators did try to use it, but the docstring
contradicted what was actually done. For node_labels
the docstring said the new labels were stored in
self.node_labels while the code/tests looked for it
in self.dna['node_labels']. I changed the code to
match the docstring.
--HG--
extra : convert_revision : svn%3A3ed01bd8-26fb-0310-9e4c-ca1a4053419f/networkx/trunk%40473
|
|
|
|
|
|
|
|
| |
Removed methods that were the same as the inherited code.
Minor docstring changes in wording may result--but not in meaning.
--HG--
extra : convert_revision : svn%3A3ed01bd8-26fb-0310-9e4c-ca1a4053419f/networkx/trunk%40472
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
It might be marginally slower, but simplifies inheritance
considerably.
digraph.py: removed rewrite of __getitem__ no longer needed.
xdigraph.py: removed code that is the same as digraph.py
Some comments are thus changed in wording but not meaning.
--HG--
extra : convert_revision : svn%3A3ed01bd8-26fb-0310-9e4c-ca1a4053419f/networkx/trunk%40471
|
|
|
|
|
|
|
| |
Minor change to digraph docs.
--HG--
extra : convert_revision : svn%3A3ed01bd8-26fb-0310-9e4c-ca1a4053419f/networkx/trunk%40470
|
|
|
|
|
| |
--HG--
extra : convert_revision : svn%3A3ed01bd8-26fb-0310-9e4c-ca1a4053419f/networkx/trunk%40469
|
|
|
|
|
|
|
|
|
| |
multiple sections that introduce XGraph and XDiGraph.
I didn't attempt to combine them. Not sure if it
would be better combined or left separate.
--HG--
extra : convert_revision : svn%3A3ed01bd8-26fb-0310-9e4c-ca1a4053419f/networkx/trunk%40468
|
|
|
|
|
| |
--HG--
extra : convert_revision : svn%3A3ed01bd8-26fb-0310-9e4c-ca1a4053419f/networkx/trunk%40467
|
|
|
|
|
| |
--HG--
extra : convert_revision : svn%3A3ed01bd8-26fb-0310-9e4c-ca1a4053419f/networkx/trunk%40466
|
|
|
|
|
| |
--HG--
extra : convert_revision : svn%3A3ed01bd8-26fb-0310-9e4c-ca1a4053419f/networkx/trunk%40465
|
|
|
|
|
| |
--HG--
extra : convert_revision : svn%3A3ed01bd8-26fb-0310-9e4c-ca1a4053419f/networkx/trunk%40464
|
|
|
|
|
| |
--HG--
extra : convert_revision : svn%3A3ed01bd8-26fb-0310-9e4c-ca1a4053419f/networkx/trunk%40463
|
|
|
|
|
|
|
|
|
|
| |
networkx/base.py -> networkx/graph.py, networkx/digraph.py,
networkx/exception.py, networkx/function.py
networkx/xbase.py -> networkx/xgraph.py, networkx/xdigraph.py
--HG--
extra : convert_revision : svn%3A3ed01bd8-26fb-0310-9e4c-ca1a4053419f/networkx/trunk%40462
|
|
|
|
|
| |
--HG--
extra : convert_revision : svn%3A3ed01bd8-26fb-0310-9e4c-ca1a4053419f/networkx/trunk%40461
|
|
|
|
|
|
|
| |
Fixes #74.
--HG--
extra : convert_revision : svn%3A3ed01bd8-26fb-0310-9e4c-ca1a4053419f/networkx/trunk%40460
|
|
|
|
|
|
|
|
|
|
|
|
| |
degree method so it is inherited from DiGraph.
Changed docstring of degree_iter for DiGraph and XDiGraph to be accurate.
Addresses #75.
Addresses #76.
--HG--
extra : convert_revision : svn%3A3ed01bd8-26fb-0310-9e4c-ca1a4053419f/networkx/trunk%40456
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
so that they call degree_iter and friends. This allows the new
result that the order of the degree values sent back in a list is
the same as the order of the nodes in nbunch. see ticket 75.
Added tests using a simple 3-node case when the order is not the
same using dict.values().
This is not finished work however because XDiGraph doesn't have
degree_iter (and iter friends). I think that means that XDiGraph's
degree_iter has been broken all along. That was more than I wanted
to mess with tonight.
--HG--
extra : convert_revision : svn%3A3ed01bd8-26fb-0310-9e4c-ca1a4053419f/networkx/trunk%40455
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- component.py : connected components etc.
- distance.py : diameter, radius, eccentricity
- shortest_path.py : bfs, dfs, dijkstra, floyd, etc.
- dag.py: topological sort, is_directed_acyclic...
side effects in
M networkx/__init__.py
M networkx/tree.py
M networkx/centrality.py
--HG--
extra : convert_revision : svn%3A3ed01bd8-26fb-0310-9e4c-ca1a4053419f/networkx/trunk%40451
|
|
|
|
|
|
|
| |
clean up threshold test imports
--HG--
extra : convert_revision : svn%3A3ed01bd8-26fb-0310-9e4c-ca1a4053419f/networkx/trunk%40450
|
|
|
|
|
| |
--HG--
extra : convert_revision : svn%3A3ed01bd8-26fb-0310-9e4c-ca1a4053419f/networkx/trunk%40449
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
I am following when I can Sedgewick's book on graph algorithms
that adjacency matrix is for both weighted and unweighted graphs.
Using numpy it is very easy to make a 0|1 adjacency matrix out of
a 1|weight adjacency matrix e.g.
>>> A=adj_matrix(X) # X is a weighted XGraph
>>> B=numpy.where(A,0,1)
--HG--
extra : convert_revision : svn%3A3ed01bd8-26fb-0310-9e4c-ca1a4053419f/networkx/trunk%40448
|
|
|
|
|
|
|
|
| |
specification dictionary value (e.g. use edge_data=1 to
make an adjacency matrix type representation).
--HG--
extra : convert_revision : svn%3A3ed01bd8-26fb-0310-9e4c-ca1a4053419f/networkx/trunk%40447
|
|
|
|
|
|
|
| |
single node to tree
--HG--
extra : convert_revision : svn%3A3ed01bd8-26fb-0310-9e4c-ca1a4053419f/networkx/trunk%40446
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Some reasons for removing:
- I think there could be confusion between add_edge and add_edges
if we keep it.
- >>> for v in nodelist:
G.add_edge(u,v)
is pretty simple to write
Some reasons against:
- G.add_edges_from(zip([u]*len(nodelist),nodelist))
is not that simple to write
--HG--
extra : convert_revision : svn%3A3ed01bd8-26fb-0310-9e4c-ca1a4053419f/networkx/trunk%40445
|
|
|
|
|
|
|
|
| |
It might be advantageous to have union be a method of the graph
classes instead of a separate function though.
--HG--
extra : convert_revision : svn%3A3ed01bd8-26fb-0310-9e4c-ca1a4053419f/networkx/trunk%40444
|
|
|
|
|
| |
--HG--
extra : convert_revision : svn%3A3ed01bd8-26fb-0310-9e4c-ca1a4053419f/networkx/trunk%40443
|
|
|
|
|
|
|
|
|
|
|
| |
if the graph is unweighted.
In addition, add flag to request weights or not. (I.e., do we want
the adjacency matrix or the weight matrix in sparse form.) Default is
the old behavior of providing the weight matrix.
--HG--
extra : convert_revision : svn%3A3ed01bd8-26fb-0310-9e4c-ca1a4053419f/networkx/trunk%40442
|
|
|
|
|
|
|
|
| |
Add support for union of two graphs (and so adding subtrees to trees).
Add add_edges method.
--HG--
extra : convert_revision : svn%3A3ed01bd8-26fb-0310-9e4c-ca1a4053419f/networkx/trunk%40441
|
|
|
|
|
| |
--HG--
extra : convert_revision : svn%3A3ed01bd8-26fb-0310-9e4c-ca1a4053419f/networkx/trunk%40440
|
|
|
|
|
| |
--HG--
extra : convert_revision : svn%3A3ed01bd8-26fb-0310-9e4c-ca1a4053419f/networkx/trunk%40439
|
|
|
|
|
| |
--HG--
extra : convert_revision : svn%3A3ed01bd8-26fb-0310-9e4c-ca1a4053419f/networkx/trunk%40438
|
|
|
|
|
| |
--HG--
extra : convert_revision : svn%3A3ed01bd8-26fb-0310-9e4c-ca1a4053419f/networkx/trunk%40437
|
|
|
|
|
|
|
|
| |
laplacian routines now return numpy matrix
add laplacian_spectrum() and adjacency_spectrum()
--HG--
extra : convert_revision : svn%3A3ed01bd8-26fb-0310-9e4c-ca1a4053419f/networkx/trunk%40436
|
|
|
|
|
| |
--HG--
extra : convert_revision : svn%3A3ed01bd8-26fb-0310-9e4c-ca1a4053419f/networkx/trunk%40435
|
|
|
|
|
| |
--HG--
extra : convert_revision : svn%3A3ed01bd8-26fb-0310-9e4c-ca1a4053419f/networkx/trunk%40434
|
|
|
|
|
| |
--HG--
extra : convert_revision : svn%3A3ed01bd8-26fb-0310-9e4c-ca1a4053419f/networkx/trunk%40433
|
|
|
|
|
|
|
|
| |
>>> import networkx
>>> networkx.test()
--HG--
extra : convert_revision : svn%3A3ed01bd8-26fb-0310-9e4c-ca1a4053419f/networkx/trunk%40432
|
|
|
|
|
|
|
| |
to match XGraph/XDiGraph
--HG--
extra : convert_revision : svn%3A3ed01bd8-26fb-0310-9e4c-ca1a4053419f/networkx/trunk%40431
|
|
|
|
|
|
|
|
|
| |
exists or 0 otherwise. Should also help simplify shortest path functions.
M convert.py: Simplify to_dict_of_dicts with get_edge
--HG--
extra : convert_revision : svn%3A3ed01bd8-26fb-0310-9e4c-ca1a4053419f/networkx/trunk%40430
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
M networkx/drawing/nx_pylab.py
Uses new ScalarMapable LineCollection only available in
matplotlib >=0.87.7
Example of use
AM doc/examples/draw_edge_colormap.py
Addresses #73.
--HG--
extra : convert_revision : svn%3A3ed01bd8-26fb-0310-9e4c-ca1a4053419f/networkx/trunk%40429
|
|
|
|
|
| |
--HG--
extra : convert_revision : svn%3A3ed01bd8-26fb-0310-9e4c-ca1a4053419f/networkx/trunk%40427
|
|
|
|
|
| |
--HG--
extra : convert_revision : svn%3A3ed01bd8-26fb-0310-9e4c-ca1a4053419f/networkx/trunk%40426
|