NetworkL is a Python package which extends the scope of the NetworkX package to eXtra-Large time-varying graphs. It supports the manipulation and efficient longitudinal analysis of complex networks
Project description
NetworkL is a Python package which extends the scope of the NetworkX package to eXtra-Large time-varying graphs. It supports the manipulation and efficient longitudinal analysis of complex networks
- Documentation
- Development
A quick example that update the all-pairs shortest path lengths in an undirected graph by using the SparseGeodesicMatrix data structure:
>>> import networkx as nx >>> import networkl as nl >>> from random import randrange >>> >>> N=1000 >>> G = nx.erdos_renyi_graph(N,0.1) #create a graph >>> SparseD = nl.sparse_distance_matrix(G) #compute the Sparse Distance Matrix >>> >>> new_edges = [(randrange(N),randrange(N)) for c in range(100)] #add edges and update Distance Matrix >>> for i,j in new_edges: >>> if G.has_edge(i,j) or i==j: >>> continue >>> nl.update_distance_matrix(G,SparseD,i,j,mode='add') >>> >>> print SparseD[1][1] #accessing distance values
Distributed under the GNU v2 license; see LICENSE.txt:
Copyright (C) 2015 NetworkL Developers Moreno Bonaventura <m.bonaventura@qmul.ac.uk>
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
networkl-0.2.13.tar.gz
(4.3 kB
view hashes)
Built Distributions
Close
Hashes for networkl-0.2.13.macosx-10.3-fat.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4bc9b21bc05ae715329bfb5db3a6e47cc40e861c89235baa1ae75085af7858ac |
|
MD5 | d11bd2c58113d392b8c502161be5feab |
|
BLAKE2b-256 | 491b45d883ae63f154c46bb7a5a0c87f6c8a695b63c11fa884a37ee55210046a |
Close
Hashes for networkl-0.2.13.macosx-10.3-fat.exe
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9fd5733403f690caf5c870e39f944985169ed6c50ea38029b4c0e6a6f8c28c7d |
|
MD5 | 8c22c948f2ad47e74b44c4271158d5f5 |
|
BLAKE2b-256 | 4f932ee20fb1d3b6e42d58b74666a60c39ec4e0e8dbc9eacdfb7b9f50d96e8f2 |