IntersectionAlgebra(R [, F]) returns the intersection algebra of R over
the field F.
If F is not given, then the function assume that the coefficient field is the
rational number field.
This algebra is isomorphic to the adjacency algebra, but the size of matrices is smaller.