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:
- Refer to igraph/python if you are a linux or mac user
- Refer to stackoverflow if you are a windows user
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
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
Built Distribution
Hashes for network_interface-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1744f7ddf687acea5f5f56c0d73acc0cff3daa47b03ff00e884dcafa9ce1ddfa |
|
MD5 | 77b8db50a5ba92040637740eb365ad6a |
|
BLAKE2b-256 | e1d6062ea4030bebf482050d7699b646d209ff4d0a0ab5b2a612aa866b18312a |