Two new algorithms for cycles and extension of cycle_basis

I have merged my algorithms with networkx. I tried to follow coding standards by looking at other files.
I have added tests. 
I would like to know how to create demos to show the use of cycle_basis and cycle_basis_matrix to generate Kirchhof equations for a given circuit (directed multigraph).

Thanks