Skip to main content

This class is an abstract class to standardize the way of creating a network graph in networkx

Project description

network-interface

In order to install, open the command prompt and type:

pip install network_interface

In order to import:

from network_interface import NetworkInterface

In this module you will find NetworkInterface class which is an abstract class to standardize the way of creating a network graph in networkx.

Once you install this library, you have to install igraph library where:

In order to use the class, you have to inherit this class and define the following abstract methods according to your dataset:

  • get_nodes
  • get_edges

This class also has some helpful methods like (use help function to get more info about them):

  • get_nodes_list
  • get_edges_list
  • create_network_graph
  • nodes_df_to_nodes_list
  • calculate_nodes_positions(using the most common algorithms to calculate nodes positions in a network graph)
  • append_nodes_positions_to_nodes_attributes
  • get_nodes_pos_dict

The following directory Example shows a concrete example about how to use the class

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

network-interface-0.0.3.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

network_interface-0.0.3-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

Details for the file network-interface-0.0.3.tar.gz.

File metadata

  • Download URL: network-interface-0.0.3.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.40.0 CPython/3.6.8

File hashes

Hashes for network-interface-0.0.3.tar.gz
Algorithm Hash digest
SHA256 b81097a89087ceaf0049e454808c6349da750d154fbd2c7a920b0bddb7aebba5
MD5 10c1b8c05966cabf1fee453db2b6574c
BLAKE2b-256 d04982a78382564dc649388d1df0e854fc5feaab8e5f4cc67fd5fe0fde66ffc3

See more details on using hashes here.

File details

Details for the file network_interface-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: network_interface-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 4.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.40.0 CPython/3.6.8

File hashes

Hashes for network_interface-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 2e6cbaa5c05646b9661ca77260a45063ad85dde8b5d9a91ba6f5e54ac255f431
MD5 b5319c2524d767d057ad293695fe2b03
BLAKE2b-256 1a6f9ca345f585538036a32fdcaba3c19008f63d24749db5493c70d24541df22

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page