networkx/networkx — pull request #8 by pengyu (2012-05-26 17:28:31+00:00)
Title: Add the algorithm to compress path

Given

```
1
|
V
A->B->C->D->E->F
^
|
2
```

convert it to

~~~
1
|
V
A->B->C,D->E->F
^
|
2
~~~

Given
```
1
|
V
A->B->C->D->E->F->G
^
|
2
```

convert it to

```
1
|
V
A->B->C,D,E->F->G
^
|
2
```