Incidence matrices

4 views
Skip to first unread message

Nicholas Dronen

unread,
Jun 29, 2011, 8:33:54 PM6/29/11
to networkx...@googlegroups.com
I don't find a function for creating incidence matrices in the
NetworkX docs. Would it be handy?

Regards,

Nick

Aric Hagberg

unread,
Jun 29, 2011, 9:14:28 PM6/29/11
to networkx...@googlegroups.com
On Wed, Jun 29, 2011 at 6:33 PM, Nicholas Dronen <ndr...@gmail.com> wrote:
> I don't find a function for creating incidence matrices in the
> NetworkX docs.  Would it be handy?

If you want a Numpy matrix you can use adj_matrix().
See http://networkx.lanl.gov/reference/generated/networkx.linalg.spectrum.adj_matrix.html

Aric

Nicholas Dronen

unread,
Jun 30, 2011, 8:32:23 AM6/30/11
to networkx...@googlegroups.com

Sorry, I was speaking too generally. What I had in mind are (possibly
signed) edge-vertex incidence matrices, not vertex-vertex ones.

Regards,

Nick

Aric Hagberg

unread,
Jun 30, 2011, 9:11:45 AM6/30/11
to networkx...@googlegroups.com
Sorry, I read that as adjacency.  Yes, we could add incidence matrices.  If you want to contribute some code you can post it here or better yet open a ticket at networkx.lanl.gov/trac.

Aric
Reply all
Reply to author
Forward
0 new messages