This class is an abstract class to standardize the way of creating a network graph in networkx
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:
This class also has some helpful methods like (use help function to get more info about them):
- calculate_nodes_positions(using the most common algorithms to calculate nodes positions in a network graph)
The following directory Example shows a concrete example about how to use the class
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Hashes for network_interface-0.0.3-py3-none-any.whl