Nodes are represented by characters. When a random catNetwork object is constructed,
it takes the default node names N#,
where # are node indices. The function returns the node names with indices given by parameter which,
and all node names if which is not specified.