Home

Awesome

DOI

Radalib

Ada library and tools for the analysis of Complex Networks and more.

Description

Radalib is a library originally developed by Sergio Gómez (sergio.gomez@urv.cat) and Alberto Fernández (alberto.fernandez@urv.cat), which we have continuously been updating for our research within the Alephsys research group, led by Alex Arenas, at Universitat Rovira i Virgili (URV), Tarragona, since 2004. Previous experience showed that the continuous reuse of code was a painful task, thus we decided to be more structured and separate general purpose code (e.g. manipulation of networks and partitions) from the specific details of particular applications (e.g. Monte Carlo simulation of epidemic spreading). The result was the development of a general purpose library, mostly devoted to complex networks, and developed around abstract data types. This means the types are defined as "private", with public subprograms operating on them and encapsulating their implementations, thus allowing for future enhancements without having to modify the programs already using them. We could have used object oriented programming, but we believe polymorphism and inheritance are basically useless for this kind of applications.

The selected language was Ada, for several reasons: performance (it is a compiled language, not interpreted), readable code, support for abstract data types, strict data type system (allows catching many errors at compile time), advanced support of generics, high level support for concurrent programming (just in case it is needed), availability of high quality compilers for the main platforms (Windows, Linux, MacOS), and the confidence in your code when using it. The main drawback was the absence of code from other people we could reuse, but that was not a problem since we wanted full control and detailed understanding of every line of code used for our research.

Radalib is structured in three parts: source (the library itself), test and tools. Tools are programs which solve a certain problem, e.g. community detection, partitions comparison, network properties, connected components, file format conversion, etc., and which are basically mere interfaces to functionalities given by the library. The requests to make public implementations of some of the algorithms presented in our scientific papers led to the publication of Radatools, which are just executables for Windows, Linux and MacOS of some of the Radalib tools.

Webs

Structure

Radalib is distributed in a single compressed file containing the following folders or directories:

The size of Radalib at version radalib-20230326-194808 is:

Compilation

Radalib has been programmed using the Ada language, and with the aid of the GNAT Ada GPL Edition compilers from Adacore. Follow the indications in your corresponding "howto" file to install GNAT and compile Radalib:

Radalib library

The main packages and sets of packages in Radalib are:

Many of the packages are just instantiations of the generic packages above for elements of simple types such as Integer, Float, Double or String.

Radalib tools

The tools in Radalib are:

License

Radalib, Copyright (c) 2023 by Sergio Gómez (sergio.gomez@urv.cat), Alberto Fernández (alberto.fernandez@urv.cat)

This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License version 2.1 as published by the Free Software Foundation.

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this library (see LICENSE.txt); if not, see https://www.gnu.org/licenses/

Acknowledgements

We thank Javier Borge-Holthoefer for his important contributions to Radalib, Clara Granell and Pau Erola for their influence in its development, Albert Solé-Ribalta for discovering and helping to solve some bugs, and Alex Arenas for leading the Alephsys research group at Universitat Rovira i Virgili (URV), Tarragona, in which all this software has become useful for our research.

Authors