[graph-tool-tickets] [graph-tool] Ticket #177: Graph Creation from Adjacency Matrix [Status -> closed]

graph-tool webmaster at skewed.de
Sat Jun 28 19:26:46 UTC 2014


#177: Graph Creation from Adjacency Matrix
closed enhancement
---------------------------------------------------------------------
Reporter: anonymous
Owner: tiago peixoto
Priority: trivial
Milestone: 2.2
---------------------------------------------------------------------
Changes (by tiago peixoto): 

 * Status from 'new' to 'closed'
 * Resolution from '' to 'invalid'
---------------------------------------------------------------------
Comment:

Yes, you should do:

{{{#!python
    adj = numpy.array(matrix)
    g = Graph()
    g.add_edge_list(transpose(adj.nonzero()))
}}}
--
Ticket URL: <URL:http://graph-tool.skewed.de/ticket/177>
graph-tool <URL:http://graph-tool.skewed.de>
An efficient python module for graph analysis and manipulation.


More information about the graph-tool-tickets mailing list