How To Install libjung-free-java on Ubuntu 18.04

In this tutorial we learn how to install libjung-free-java on Ubuntu 18.04. libjung-free-java is Java Universal Network/Graph Framework

Introduction

In this tutorial we learn how to install libjung-free-java on Ubuntu 18.04.

What is libjung-free-java

libjung-free-java is:

JUNG provides a common and extendible language for the modeling, analysis, and visualization of data that can be represented as a graph or network.

This package does not contain the jung jai classes (Java Advanced Imaging) for licensing reasons.

The JUNG architecture is designed to support a variety of representations of entities and their relations, such as directed and undirected graphs, multi-modal graphs, graphs with parallel edges, and hypergraphs. It provides a mechanism for annotating graphs, entities, and relations with metadata. This facilitates the creation of analytic tools for complex data sets that can examine the relations between entities as well as the metadata attached to each entity and relation.

The current distribution of JUNG includes implementations of a number of algorithms from graph theory, data mining, and social network analysis, such as routines for clustering, decomposition, optimization, random graph generation, statistical analysis, and calculation of network distances, flows, and importance measures (centrality, PageRank, HITS, etc.).

JUNG also provides a visualization framework that makes it easy to construct tools for the interactive exploration of network data. Users can use one of the layout algorithms provided, or use the framework to create their own custom layouts. In addition, filtering mechanisms are provided which allow users to focus their attention, or their algorithms, on specific portions of the graph.

There are three methods to install libjung-free-java on Ubuntu 18.04. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install libjung-free-java Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install libjung-free-java using apt-get by running the following command:

sudo apt-get -y install libjung-free-java

Install libjung-free-java Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install libjung-free-java using apt by running the following command:

sudo apt -y install libjung-free-java

Install libjung-free-java Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install libjung-free-java using aptitude by running the following command:

sudo aptitude -y install libjung-free-java

How To Uninstall libjung-free-java on Ubuntu 18.04

To uninstall only the libjung-free-java package we can use the following command:

sudo apt-get remove libjung-free-java

Uninstall libjung-free-java And Its Dependencies

To uninstall libjung-free-java and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove libjung-free-java

Remove libjung-free-java Configurations and Data

To remove libjung-free-java configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge libjung-free-java

Remove libjung-free-java configuration, data, and all of its dependencies

We can use the following command to remove libjung-free-java configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge libjung-free-java

References

Summary

In this tutorial we learn how to install libjung-free-java package on Ubuntu 18.04 using different package management tools: apt, apt-get and aptitude.