Giter Club home page Giter Club logo

fraciso's Introduction

Algorithms for fractional graph isomorphism

This package contains algorithms for deciding if two graphs are fractionally isomorphic. It requires Python 3.

This file was last updated on March 25, 2014.

Copyright license

This package is distributed under the terms of the GNU General Public License version 3. For more information, see the file LICENSE in this directory.

Basic usage

from networkx import Graph
from fraciso import are_fractionally_isomorphic

# Create a NetworkX Graph objects G and H.
#G = ...
#H = ...

print('G is fractionally isom. to H?', are_fractionally_isomorphic(G, H))

Using linear programming solvers

The fractional graph isomorphism problem can be solved via linear programming. In order to use a supported linear programming solver, it must be installed on the system (see installation requirements below). In order to instruct this package to use a linear programming solver, use the algorithm keyword argument to the are_fractionally_isomorphic function. For example:

print('G is fractionally isom. to H?',
      are_fractionally_isomorphic(G, H, algorithm='lp.ecos'))

Installation requirements

In order to install the Python libraries required to use this package:

pip install -r requirements.txt

If you want to use the PuLP library with the GLPK backend to solve the linear programming formulation of the fractional graph isomorphism problem, install GLPK:

  sudo aptitude install glpk-utils

If you want to use the PuLP library with the COIN-OR CBC backend to solve the linear programming formulation of the fractional graph isomorphism problem, install COIN-OR CBC:

  sudo aptitude install coinor-libcbc0

Testing

pip install -r requirements-test.txt
nosetests

Release instructions

This is a reminder for the maintainer of this package.

python setup.py egg_info sdist upload --sign

Contact

Jeffrey Finkelstein [email protected]

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.