« Previous | Next » 

Revision 4e1630e1

ID4e1630e126a4e942d7836a8717d9af1798109f07
Parent 40b13c28
Child e5d7b380

Added by Brandon Heller almost 8 years ago

topo: add getitem for Graph

Commit 65c35b65 'Remove networkx dependency' broke this line from RipL:

nodes = [n for n in self.g[name] if self.layer(n)  layer]

To work around this, RipL code would have to be changed to something
like this:

nodes = [n for n in self.g.data[name] if self.layer(n)  layer]

...which would use an internal variable, data.

It seems cleaner to add this one little feature from NetworkX Graph objects.

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences