-
released this
2020-08-09 08:48:56 +00:00 | 90 commits to main since this releaseVersion 2.1 further extends the normalized graph analysis methods with the addition of partial clustering coefficient for directed graphs.
It also notably improves plotting and support of undirected networks.New features:
- Added cycle, middleman, fan-in and fan-out clustering versions for directed graphs.
Enhancements:
connect_*
functions now return only the newly created edges when some edges are dropped due toignore_invalid
argumentmake_spatial
now works properly when only positions are provided during graph initialization.- improved graph drawings:
- corrected
restrict nodes
- add
restrict_edges
- improved fast plot (markers)
- add colorbar label
- improved color support (html, vectors)
- corrected
Bugfixes:
lattice_rewire
now works for undirected networks for any number of edges (and not only when the edge number matches that of a regular lattice)- correct weight initialization with distributions and loading
- Fixed the
copy
method:- correct initialization of edge attributes upon graph copy
- solved issue with copy of undirected graphs becoming directed upon copy
- use of copy is now forbidden with MPI
Downloads
-
released this
2020-06-29 11:58:45 +00:00 | 95 commits to main since this releaseThis patch simply fixes the installation on Windows as well as random generators seeding on this platform.
For an overview of the latest changes associated to the move to major version 2.0, please see the 2.0.0 release.Downloads
-
released this
2020-06-22 09:45:20 +00:00 | 98 commits to main since this releaseWith the 2.0 release, NNGT moves from inheritance to composition for the underlying graphs.
This enables improved support of both directed and undirected networks on all backends.
The second major feature is the introduction of "normalized" graph analysis tools with explicit definitions so that the results returned are always the same regardless of the backend.New features
- New graph generation methods:
circular_graph
,from_degree_list
, andwatts_strogatz
. - Rewiring functions (randomization and latticization).
- New analysis functions:
connected_components
provides detailed information on the nodes in each component,is_connected
function (check for single component), shortest paths and distance algorithms,neighbours
method,small_world_propensity
for directed weighted graphs. - Clustering methods for weighted and directed graphs.
- Graph visualization using the libraries' methods.
- Underlying library graph is now freely accessible via the
graph
property (use responsibly) - "total-degree" constraint is available for degree-generation methods
- Complete versatility of the
new_edge
/new_edges
functions for the checks:- for existing edges or duplicates in the list
- for self-loops
- possibility to silently ignore invalid edges
Enhancement
- RNG and seeds.
- NEST import is now lazy.
- Format choice for adjacency matrix (dense matrix and all scipy.sparse formats).
- Improved I/O: support for GML format and custom edge-list files.
- Automatic addition of the edge distances for
SpatialGraph
objects.
Breaking changes
Under the hood, the library underwent some major restructuring, which led to the decision of introducing some important breaking changes.
- Drop support for Python 2.
- Removal of
num_wcc
andnum_scc
in favour ofconnected_components
. - replaced "syn_type" arguments by "edge_type".
- replaced "use_weights" arguments by "weights".
Bugfixes
- Weight change with nngt backend.
- Proper support for undirected graphs.
- Corrected generation functions for undirected graphs (notably Newman-Watts and Erdos-Renyi).
- Fixed all functions raising errors with networkx.
- Errors in edge/node attributes handling with some backends.
Downloads
- New graph generation methods:
-
released this
2020-03-30 17:06:24 +00:00 | 124 commits to main since this releaseThis patch fixes an issue affecting the "nngt" backend (for users not using any of the standard graph libraries) that led to weights set after edge creation (using
set_weights
) to be incorrectly updated in some cases, notably when using NNGT with NEST.(note that the Travis test for graph-tool on Python 2 fails solely because Tiago is no longer supporting it and removed the package from his repo, it is not linked to any issue with this release)
Downloads
-
released this
2020-03-16 15:56:18 +00:00 | 126 commits to main since this releaseThis patch fixes a bug using the
fixed_degree
orgaussian_degree
methods on different sources and target neurons with one of the following functions:connect_groups
,connect_neural_groups
connect_neural_types
connect_nodes
It also deprecates
connect_neural_groups
in favour ofconnect_groups
.Downloads
-
released this
2020-03-09 10:18:04 +00:00 | 128 commits to main since this releaseNB: this release will be the last one supporting python 2 and NEST 2, starting NNGT 2.0, only python 3 and NEST 3 will be supported.
EDIT: due to delays in the release of NEST3, support for NEST2 was maintained in NNGT 2.Improvements:
- support for networkx 2.4
- added
MetaGroup
class - added excitatory/inhibitory access for
NeuralPop
andMetaGroup
Bugfixes:
- corrected betweenness for all backends
- corrected multiple node access for degrees in "nngt" backend
- corrected plot import for
simulation
module
Deprecations:
- sunsetting Python 2
- deprecated
nest_gid
in favor ofnest_gids
Under the hood:
- Improved testing and coverage
- switched to sets in generation algorithms
Downloads
- Source Code (ZIP)
- Source Code (TAR.GZ)
- 1.6 MiB NNGT_1.3.0.tar.gz
- 1.7 MiB NNGT_1.3.0.zip
-
released this
2019-11-25 13:47:17 +00:00 | 135 commits to main since this releaseBreaking change:
decimate
converted todecimate_connections
in plot functions.Various corrections:
- improved setup for NEST loading
- set binsize to int in
total_firing_rate
- improved data management and pip install correction
Downloads
- Source Code (ZIP)
- Source Code (TAR.GZ)
- 1.4 MiB nngt-1.2.1.tar.gz
- 1.5 MiB nngt-1.2.1.zip
-
released this
2019-09-08 14:52:33 +00:00 | 137 commits to main since this releaseThis new version vastly improves the support of the backends with respect to node and edges attributes.
It also introduces new metagroup objects for even better network generation.
Finally, it comes with a refreshed and enriched documentation.Breaking changes:
ntype
was switched toneuron_type
forNeuralGroup
andNeuralPop
create_group
takesneurons
as first parameters andname
as second
Improvements:
- full attributes support (including strings and objects) for all backends
- addition of metagroups
- new
get_nodes
andget_edges
functions - improved plotting and histogram readded
- enriched and updated documentation and tutorials
- larger coverage (now at 30%)
Bugfix:
- corrected multiple issues with networkx and nngt backends
- fixed all attribute-related issues
- corrected IO for
Network
withNeuralPop
Downloads
- Source Code (ZIP)
- Source Code (TAR.GZ)
- 1.6 MiB nngt-1.2.0.tar.gz
- 1.6 MiB nngt-1.2.0.zip
-
released this
2018-11-23 14:33:58 +00:00 | 140 commits to main since this releaseThis new version provides a working multithreading install on Windows, as well as several improvements and bugfixes.
Breaking change: for interactions with NEST, the
set_minis
has been change to have independent weight for the noise.Improvements:
- Improved and corrected draw_network, plot_activity, and animation
- IO now save and load properly the areas of a Shape
Bugfix:
- Corrected error in distance-rule with OpenMP
- Corrected error in betweenness with igraph
- Corrected neighbors with networkx
- Fixed crash with sorting method
Notes:
- I realized that GitHub does not include the submodules in the release archives; starting now, I will also include the .tar.gz and .zip archives containing the same files as the corresponding version of NNGT on PyPi.
- For installation, it is now recommended to install directly through
pip
.
To install via
pip
, use eitherpip install --user nngt
or
sudo pip install nngt
Downloads
- Source Code (ZIP)
- Source Code (TAR.GZ)
- 1.4 MiB nngt-1.1.0.tar.gz
- 1.5 MiB nngt-1.1.0.zip
-
Patch 1.0.1 Stable
released this
2018-05-14 13:06:49 +00:00 | 141 commits to main since this releaseVarious corrections and improvements.
Improvements
- plot_activity has axis keyword and better color handling
- get_weights/delays/types support partial edges query
- draw_network with colorbar
Bugfix
- edge_list and neighbour_list attributes saving
- problems with network saving in db
- get_weights
- get_node_attributes
- nx edges_attributes and BaseGraph new_edge_attr
- inverted in/out neighbours for igraph
Downloads