The Lie algebra L can be provided either from their structure constants or their infinitesimal generator representation.
The nilradical NR of a Lie algebra is the maximal nilpotent ideal.
Depending of the input, NilRadical will return the base which spans the ideal either by using the representation provided or the syntax for the subspaces using the symbol X.