================================================================
README.  Quick installations instructions for nauty under MuPAD.
================================================================


   nauty-module is a dynamic module for interfacing nauty with
MuPAD. Nauty (No AUTomorphism Yes) is a set of program by Brendan
McKay (bdm@cs.anu.edu.au) for dealing with finite graphs and
especially designed to deal with automorphisms problems.

   For the moment, only a small part of nauty is interfaced, but this
can be easily extended. A simple interface is provided by the MuPAD
library combinat::graphs.


Requirements
============

   To install module you need all what is required by MuPAD-Combinat
(see README in the main source directory) plus
- MuPAD version minimal 3.0.0.

- the source code of nauty minimal version: nauty-2.2 with file geng.c
at least version 1.9, may 2004 (Brendan used to call nauty22 many
different versions of its package). It can be freely downloaded at

   http://cs.anu.edu.au/~bdm/nauty .


Download and Installation
=========================
 
   In the following, we call MuPAD-Combinat/ the main directory of
your MuPAD-Combinat source installation. We suppose that you have
downloaded the nauty archive unded the name
   MuPAD-Combinat/nauty22.tar.gz
You have to extract the nauty archive in the directory
MuPAD-Combinat/src/nauty, with a command like
   cd MuPAD-Combinat/src/
   tar xzvf ../../nauty22.tar.gz
   mv nauty22 nauty
Then go to MuPAD-Combinat/ and type
   ./configure
Normally the presence of the nauty source is automatically detected
and the compilation of the module is turned on. If not try
   ./configure --enable-nauty

!!!! !!!! !!!! !!!! !!!! !!!! WARNING !!!! !!!! !!!! !!!! !!!! !!!! 
During the configuration the sources of nauty are slightly
modified. You may want to work outside of MuPAD with the non modified
version of nauty, then please make a copy rather than a link. Please
have a look at the file
   MuPAD-Combinat/src/nauty-module/nauty.patch
!!!! !!!! !!!! !!!! !!!! !!!! WARNING !!!! !!!! !!!! !!!! !!!! !!!! 

After that you only need to lauch compilation with
   make
If you only want to compile the dynamic module, you don't need to
compile nauty itself so it's sufficient to lauch make in
   MuPAD-Combinat/src/nauty-module.



Test if the installation is working
===================================

To test the module itself:
   cd MuPAD-Combinat/src/nauty-module
   make check
To test the MuPAD interface
   cd MuPAD-Combinat/test/
   make COMBINAT/graphs.res

   

Bugs and limitation
===================

The correct handling of external (EXT) object with non trivial memory
part needed to embed c/c++ object into MuPAD cells is only possible
MuPAD version >= 3.0.0. In all the other version the comparison of two
graphs is broken.

The current interface is designed for dealing only with graph of size
(number of vertices) <= 32. 

 
