Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

UNKNOWN

Project Description
##What is Mathgraph?

Mathgraph is an open source Python package for calculating topological indices and energy of graphs.

The source code is avalalble at: https://pypi.python.org/pypi/mathgraph

##Usage

~~~~~~~~~~~~~~~~~~ {.python .numberLines}
python
>>> import mathgraph as mg
>>> G = mg.MathGraph()
>>> G.add_edge(0,1)
>>> G.add_edge(1,2)
>>> G.add_edge(2,0)
>>> G.minimal_covering_energy()

Triangular graph, covering sets/energy for the same is as follows
[set([0, 1]), set([1, 2]), set([0, 2])]
[4.1307682818044205, 4.0, 4.0]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

##Structure

Mathgraph is a container of mathchem and networkx objects.
def NX_graph(self):
""" Return NetworkX graph object """
return self.__NX_graph

def Mol_graph(self):
""" Return Mathchem graph object """
if self.__Mol_graph is None:
nxg = self.NX_graph()
self.__Mol_graph = mc.Mol(nx.generate_graph6(nxg))
return self.__Mol_graph

##Functionality
degree_matrix
complementary_subset
dominating_set
minimal_dominating_set
minimal_dominating_energy
covering_set
minimal_covering_set
minimal_covering_energy
min_laplacian_dominating_energy
atom_bond_connectivity_index2
atom_bond_connectivity_index4
seidel_energy
maximum_degree_energy
common_neighbourhood
atom_bond_connectivity_index5

##Installation

###As Python module
For any UNIX-like system the installation process is trivial:

pip install mathgraph

####Depends on:
numpy mathchem networkx

##About

Mathgraph package written by Sudharsan Vijayaraghavan and Ananda Kumar MR

###TODO:
optimizations of code
double dominating set and so on
Release History

Release History

History Node

0.0.5

History Node

0.0.4

History Node

0.0.3

This version
History Node

0.0.2

History Node

0.0.1

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
mathgraph-0.0.2.tar.gz (1.8 kB) Copy SHA256 Checksum SHA256 Source Mar 29, 2015

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting