// Copyright (C) 2005 Alexander Ushakov
// Contents: Example for class FreeGroup
//
// Principal Authors: Alexander Ushakov
//
// Revision History:
//
#include "FPGroup.h"
#include "Alphabet.h"
int main( )
{
FiniteAlphabet a;
cout << "Enter an alphabet (Example: {a,b,c})" << endl;
cin >> a;
cout << "Enter relators (Example: { [a,b] , (c b)^2 })" << endl;
vector r = a.readVector(cin);
// How do I create a Finitely Presented Group
FPGroup G( a,r );
// How do I output a Finitely Presented Group into a stream
cout << G << endl;
// How do I read a Finitely Presented Group from a stream
cout << "Enter a presentation (Example: ) " << endl;
cin >> G;
cout << G << endl;
return 0;
}
|